|
Video files in Allgro? |
Martano
Member #6,536
October 2005
|
Quote:
I said: Where can I get a sh-compatible shell? |
gnolam
Member #2,030
March 2002
|
Kitty Cat said: such as the one that comes with MSys
-- |
Martano
Member #6,536
October 2005
|
But....what is MSys? |
Zaphos
Member #1,468
August 2001
|
MSYS is a part of MinGW: http://www.mingw.org/msys.shtml
|
Martano
Member #6,536
October 2005
|
Ok, thanks, I downloaded MSys.
|
Zaphos
Member #1,468
August 2001
|
Use what? MSYS? It's a shell. You run it. It gives you a prompt. You type "cd c:", then us cd to navigate to the library directory. Then you type "./configure".
|
Martano
Member #6,536
October 2005
|
OHHHHHHHHHHHH! Thanks! I was typing "c:" only. It is too late here, need to sleep. ------------------------------------------ EDIT: Ok, compiled ogg using the "./configure" and "make" commands. --backup[=CONTROL] make a backup of each existing destination file The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. none, off never make backups (even if --backup is given) Report bugs to <bug-fileutils@gnu.org>. I tried the 3 formats, but only 3rd format worked. But it only created an empty folder. |
Kitty Cat
Member #2,815
October 2002
|
Quote: I tried to run "install" in the ogg folder, but got an error about "few arguments". Run "make install" (without quotes) in the Ogg folder (as well as the Vorbis and Theora folders after running configure and make in them). -- |
Martano
Member #6,536
October 2005
|
I used: ./configure inside the "ogg" folder. checking for Ogg... no My folders: C:\Hangar6\apeg (Apeg folder) Do I need to change anything about the folders? |
Kitty Cat
Member #2,815
October 2002
|
Quote:
./configure Run 'make install", not 'install". -- |
Martano
Member #6,536
October 2005
|
Opsss. ------------- It looks like that theora wants the "ogg.h". |
Kitty Cat
Member #2,815
October 2002
|
In the Ogg folder, run "make uninstall". Then run "./configure --prefix=/mingw" and then "make install" again. -- |
Martano
Member #6,536
October 2005
|
Thanks! (I had to use "./configure --prefix=/mingw" in theora folder too.) Then tried the same at vorbis, and worked. collect2: ld returned 1 exit status Tried "make install after that, but got the same error. Then I checked the "C:\1.0\mingw\" folder to see the installed files. There are include and lib files for ogg and theora, but no vorbis and only one dll (libogg-0.dll). |
Kitty Cat
Member #2,815
October 2002
|
I think libtheora is currently broken. You should be able to disable libvorbisfile and/or build static-only libs instead. Check ./configure --help for the switches. -- |
Victor Williams Stafusa da Silva
Member #4,212
January 2004
|
I'm gotting the same problem with allog, but i'm using only libogg and libvorbis. Trying to compile that for 12 or 13 now, and it just don't work. Libvorbis doesn't focken compiles even by the hell! And ./configure --help doesn't give any useful flagss. EDIT (some hours later): I was very stressed and angry with that, let's try again... [The attack of the space bugs - Speedhack 2005] [Rambananas - Speedhack 2006] [Make clean - Speedhack 2009] [The source god - TINS 2010] |
Martano
Member #6,536
October 2005
|
Which switch should I use? "--disable-vorbistest"? |
Kitty Cat
Member #2,815
October 2002
|
I think it was --enable-static and/or --disable-dynamic, or something along those lines. You can also send an email to libvorbis's maintainers and inform them of the problem. -- |
Victor Williams Stafusa da Silva
Member #4,212
January 2004
|
Ohhh. FINALLY!!!! I COMPILED THAT LIBVORBIS! After trying to understand the structure of that horrible messy, confusing, large and incompreensible makefiles, i could fix it with that script: cd ./lib /bin/sh ../libtool --tag=CC --mode=link gcc -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H -o libvorbisfile.la -no-undefined -version-info 4:0:1 vorbisfile.lo libvorbis.la sys_lib_search_path_spec=" =c:/Dev-Cpp/lib/gcc/mingw32/3.4.2/ c:/Dev-Cpp/lib/gcc/mingw32/ c:/Dev-Cpp/lib/gcc/ c:/Dev-Cpp/mingw32/lib/ c:/Dev-Cpp/lib/" rm -fr .libs/libvorbisfile.dll.a gcc -shared .libs/vorbisfile.o -logg -logg.dll ./.libs/libvorbis.dll.a -o .libs/libvorbisfile-3.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libvorbisfile.dll.a Save this in some file called, say "fixthatsh1t". So, first of all: Install Ogg, which is "./configure --prefix=/mingw", then "make" and "make install". Second, install Vorbis: "./configure --prefix=/mingw", "make", you'll get some errors about make, so run "./fixthatsh1t", run "make" again and then "make install". Third, install Theora: I will try this later, but if we are luck it will be the same to install Ogg. Forth (finally): Install Apeg. But, i still need know something. When i compile my game (in Alogg), i get that: Info: resolving _allegro_errno by linking to __imp__allegro_errno (auto-import) fu000001.o:: undefined reference to `lib_mingw32_liballeg_a_iname' nmth000000.o:: undefined reference to `_nm__allegro_errno' collect2: ld returned 1 exit status make.exe: *** [Asmodan.exe] Error 1 We are almost there! [The attack of the space bugs - Speedhack 2005] [Rambananas - Speedhack 2006] [Make clean - Speedhack 2009] [The source god - TINS 2010] |
Martano
Member #6,536
October 2005
|
Weeeeeeeeeeeeeeeeeeeeeeeeeeeew! It worked! GREAT THANKS TO EVERYONE!!!! I needed to reconfigure ogg to "mingw32" (it was set to "mingw"). -lapeg But got no "linker error"! Now I just need to learn Apeg's commands. ----------------------------------- EDIT: I need to play an .ogg music. SAMPLE *apeg_preload_audio(const char *filename); I tried: SAMPLE *apeg_preload_audio("15.ogg"); But it complained about "bad conversion - const chat to SAMPLE*". So tried: SAMPLE *musica = load_sample("15.ogg"); SAMPLE *apeg_preload_audio(musica); play_sample(apeg_preload_audio, 255, 128, 1000, 0); It compiles, but closes the program when I click to load it. PS.: Does anyone know a good AVI->MPG converter? |
Evert
Member #794
November 2000
|
Sure, it'll compile, but it should die horribly when run. Quote:
SAMPLE *spl = apeg_preload_audio("somefilename.someextension"); Don't take this the wrong way, but do you even know C? |
Martano
Member #6,536
October 2005
|
Quote: Don't take this the wrong way, but do you even know C? In real all I know about C, I learnt reading one or two tutorials over the internet. -- I tested: SAMPLE *spl = apeg_preload_audio("example.ogg"); But happened the same as before. Is it possible to be using an incompatible ogg format? |
Kitty Cat
Member #2,815
October 2002
|
Its possible apeg_preload_audio is buggy. Everytime I think I fix it, I find something else wrong. It might also be that the file isn't loading, so check if it's NULL before calling play_sample. If it crashes before it ever gets to play_sample, try using apeg_play_mpg instead (yes, the name is a misnomer; it's a hold-over from before Ogg support was added ). If that plays, doesn't crash, and doesn't return an error, then it's a problem in apeg_preload_audio. -- |
Martano
Member #6,536
October 2005
|
apeg_play_mpg worked. But it shows a black screen. I need to show another images, and make the music to fade out after sometime. |
Kitty Cat
Member #2,815
October 2002
|
apeg_play_mpg was just a test to make sure it wasn't a problem with the file. I think I found the problem, so I'll upload a new version of APEG (1.1.2). Delete your current APEG directory and extract the new archive. -- |
Martano
Member #6,536
October 2005
|
NEW? Don't tell me that I will need to recompile that thing! hehe Downloading.... ------------------------------- EDIT: Recompiled APEG, and updated the "libapeg.a". SAMPLE *spl = apeg_preload_audio("15.ogg"); //++++++++++ if(spl == NULL) { set_gfx_mode(GFX_TEXT,0,0,0,0); allegro_message("Could not load 15.ogg!"); exit(EXIT_FAILURE); } //++++++++++ play_sample(spl, 255, 128, 1000, 0); This time it closes the program without the error message. So I think the problem is in the last command. |
|
|