Openal issues with 1.4.2 RC 1
by Jim Goddard · in Torque Game Engine · 06/10/2006 (11:07 pm) · 8 replies
I am relatively inexperienced with Linux, but really hope to do most of my development work under it. I just purchased the engine, and am having the same problem that the demo was giving me. I have a post under the public Linux forums:
www.garagegames.com/mg/forums/result.thread.php?qt=35129
I am not getting openal to initialize with Torque. I am running Fedora Core 4 x86_64 kernel 2.6.14-1.1653_FC4 (x86_64), on an Athlon 64, and I have installed the Fedora openal package version openal-0.0.9-0.4.20060204
I have downloaded the 0.0.8 source from the openal website, and I have been trying to build the i386 version to see if that might be the issue, however make for openal keeps barfing on me because for some reason it can't get past this part of make:
I haven't tried to get the cvs version or anything, I am trying to wade in gently. Any help or advice would be greatly appreciated. I am incredibly excited by this engine, and am really looking forward to building games with it. Not to start a flame war, but what distributions are in use here? I have always been reasonably happy with RedHat, but would be interested in people's non-religious distro opinions :)
Thanks,
Jim
www.garagegames.com/mg/forums/result.thread.php?qt=35129
I am not getting openal to initialize with Torque. I am running Fedora Core 4 x86_64 kernel 2.6.14-1.1653_FC4 (x86_64), on an Athlon 64, and I have installed the Fedora openal package version openal-0.0.9-0.4.20060204
I have downloaded the 0.0.8 source from the openal website, and I have been trying to build the i386 version to see if that might be the issue, however make for openal keeps barfing on me because for some reason it can't get past this part of make:
/bin/sh ../../../libtool --mode=link gcc -g -O2 -o libx86_asm_routines.la x86_cpu_caps_detect_prk.lo memcpy_mmx_prk.lo -ldl ar cru .libs/libx86_asm_routines.a x86_cpu_caps_detect_prk.o memcpy_mmx_prk.o ar: x86_cpu_caps_detect_prk.o: No such file or directoryHowever the .o file is there.
I haven't tried to get the cvs version or anything, I am trying to wade in gently. Any help or advice would be greatly appreciated. I am incredibly excited by this engine, and am really looking forward to building games with it. Not to start a flame war, but what distributions are in use here? I have always been reasonably happy with RedHat, but would be interested in people's non-religious distro opinions :)
Thanks,
Jim
#2
I have tried substituting various versions of the openal library, all with no luck.
I checked out the latest HEAD, but of course I cannot compile it yet due to 64-bit issues. I have been looking over all the forums here and other places, and have LOTS of places to start, but am a little overwhelmed. I am going to try and get all the 32-bit dev packages that I need to build the TGE soon, but haven't started yet. I have seen a number of issues with openal, but nobody seems to have directly addressed this initialization issue.
I have installed libopenal-dev version 1:0.0.8-1ubuntu1, as well as libopenal0a (same ver.).
I would really like to figure out what is going on. Is there a way to force any of the common ubuntu multimedia apps to use the openal libraries, so that I can at least test that they are working outside of torque. I was hoping to be able to start by playing around inside the world editor, etc. before I started trying to build everything myself (I USED to program pretty will in C++ but 3 years of working in VB/MS Access has thoroughly rotted my brain).
In the meantime, I guess I will jump in the fire of trying to get TGE to compile. Wish me luck...
06/13/2006 (6:10 pm)
I am pretty frustrated at this point. To make a long story short, I am now running Ubuntu Dapper x86_64, and I still get the exact same issues initializing openal.I have tried substituting various versions of the openal library, all with no luck.
I checked out the latest HEAD, but of course I cannot compile it yet due to 64-bit issues. I have been looking over all the forums here and other places, and have LOTS of places to start, but am a little overwhelmed. I am going to try and get all the 32-bit dev packages that I need to build the TGE soon, but haven't started yet. I have seen a number of issues with openal, but nobody seems to have directly addressed this initialization issue.
I have installed libopenal-dev version 1:0.0.8-1ubuntu1, as well as libopenal0a (same ver.).
I would really like to figure out what is going on. Is there a way to force any of the common ubuntu multimedia apps to use the openal libraries, so that I can at least test that they are working outside of torque. I was hoping to be able to start by playing around inside the world editor, etc. before I started trying to build everything myself (I USED to program pretty will in C++ but 3 years of working in VB/MS Access has thoroughly rotted my brain).
In the meantime, I guess I will jump in the fire of trying to get TGE to compile. Wish me luck...
#3
From the dump from runtorque.sh, and ldd torqueDemo.bin (runtorque.sh right now)
LD_LIBRARY_PATH=.:./lib:../lib/openal/LINUX:../lib/xiph/linux: (not sure how that jibes with above search pattern)
+ ldd ./torqueDemo.bin
linux-gate.so.1 => (0xffffe000)
libogg.so.0 => ./lib/libogg.so.0 (0x5556e000)
libvorbis.so.0 => ./lib/libvorbis.so.0 (0x55574000)
libtheora.so.0 => ./lib/libtheora.so.0 (0x5559b000)
libSDL-1.2.so.0 => ./lib/libSDL-1.2.so.0 (0x555b9000)
libpthread.so.0 => /lib32/libpthread.so.0 (0x55635000)
libdl.so.2 => /lib32/libdl.so.2 (0x55647000)
libXft.so.2 => /usr/lib32/libXft.so.2 (0x5564b000)
libstdc++.so.6 => ./lib/libstdc++.so.6 (0x5565d000)
libm.so.6 => /lib32/libm.so.6 (0x55743000)
libgcc_s.so.1 => ./lib/libgcc_s.so.1 (0x55765000)
libc.so.6 => /lib32/libc.so.6 (0x55770000)
libX11.so.6 => /usr/lib32/libX11.so.6 (0x558a0000)
libXext.so.6 => /usr/lib32/libXext.so.6 (0x55986000)
/lib/ld-linux.so.2 (0x55555000)
libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0x55993000)
libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0x559c1000)
libz.so.1 => /usr/lib32/libz.so.1 (0x55a2a000)
libXrender.so.1 => /usr/lib32/libXrender.so.1 (0x55a3f000)
libXau.so.6 => /usr/lib32/libXau.so.6 (0x55a47000)
libexpat.so.1 => /usr/lib32/libexpat.so.1 (0x55a4a000)
Hope this is helpful. Thanks, Jim
06/13/2006 (6:45 pm)
A little more information about the openal initialization. I wasn't checking the console logs very well yet. Here is what little is says about the openal initialzation:OpenAL Driver Init: OpenAL ^^Searching for OpenAl at location : /home/monkey/Torque/example/lib/libopenal.so ^^Searching for OpenAl at location : /home/monkey/Torque/example/tplib/libopenal.so ^^Searching for OpenAl at location : /home/monkey/Torque/example//libopenal.so Error loading OpenAL Library: libasound.so.2: cannot open shared object file: No such file or directory Failed to initialize driver.
From the dump from runtorque.sh, and ldd torqueDemo.bin (runtorque.sh right now)
LD_LIBRARY_PATH=.:./lib:../lib/openal/LINUX:../lib/xiph/linux: (not sure how that jibes with above search pattern)
+ ldd ./torqueDemo.bin
linux-gate.so.1 => (0xffffe000)
libogg.so.0 => ./lib/libogg.so.0 (0x5556e000)
libvorbis.so.0 => ./lib/libvorbis.so.0 (0x55574000)
libtheora.so.0 => ./lib/libtheora.so.0 (0x5559b000)
libSDL-1.2.so.0 => ./lib/libSDL-1.2.so.0 (0x555b9000)
libpthread.so.0 => /lib32/libpthread.so.0 (0x55635000)
libdl.so.2 => /lib32/libdl.so.2 (0x55647000)
libXft.so.2 => /usr/lib32/libXft.so.2 (0x5564b000)
libstdc++.so.6 => ./lib/libstdc++.so.6 (0x5565d000)
libm.so.6 => /lib32/libm.so.6 (0x55743000)
libgcc_s.so.1 => ./lib/libgcc_s.so.1 (0x55765000)
libc.so.6 => /lib32/libc.so.6 (0x55770000)
libX11.so.6 => /usr/lib32/libX11.so.6 (0x558a0000)
libXext.so.6 => /usr/lib32/libXext.so.6 (0x55986000)
/lib/ld-linux.so.2 (0x55555000)
libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0x55993000)
libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0x559c1000)
libz.so.1 => /usr/lib32/libz.so.1 (0x55a2a000)
libXrender.so.1 => /usr/lib32/libXrender.so.1 (0x55a3f000)
libXau.so.6 => /usr/lib32/libXau.so.6 (0x55a47000)
libexpat.so.1 => /usr/lib32/libexpat.so.1 (0x55a4a000)
Hope this is helpful. Thanks, Jim
#4
looks like you do not have the ALSA library development files installed
for ubuntu they can be easily installed via System->Administration->Synaptic Package Manager
the click search and type in libasound2, install both libasound2 and libasound2-dev
-Ron
06/13/2006 (7:11 pm)
Check you /usr/lib directory for libasound*looks like you do not have the ALSA library development files installed
for ubuntu they can be easily installed via System->Administration->Synaptic Package Manager
the click search and type in libasound2, install both libasound2 and libasound2-dev
-Ron
#5
I had checked that already. I have libasound.so, libasound.so.2 and libasound.so.2.0.0 in /usr/lib. The first two are symlinks to the *.0.0 file, but that shouldn't be an issue?
I also noticed that libopenal.so is the only library in the libs folder that doesn't have a .0 at the end. However, the console log does appear to be looking for the .so. I have tried using the openal.so from CVS, and even built openal from source, and always get the same errors.
I have successfully ran a couple of basic openal test apps now, and they work fine. When I try to run "./runtorque -log 2", I get a really early message in the console saying cannot open file "-log" with a file i/o error. In fact a variation on that theme happens when I tried to save a journal. Any ideas? However, it is saving the journal files, and doing what I want to with the log.
I know, build from the source, and come back then... :)
Thanks a lot, even though I am frustrated I am really really pleased by what I am seeing, on the forums as well as what I someday hope to be able to do with the engine.
Jim
06/13/2006 (9:07 pm)
Hi Ron,I had checked that already. I have libasound.so, libasound.so.2 and libasound.so.2.0.0 in /usr/lib. The first two are symlinks to the *.0.0 file, but that shouldn't be an issue?
I also noticed that libopenal.so is the only library in the libs folder that doesn't have a .0 at the end. However, the console log does appear to be looking for the .so. I have tried using the openal.so from CVS, and even built openal from source, and always get the same errors.
I have successfully ran a couple of basic openal test apps now, and they work fine. When I try to run "./runtorque -log 2", I get a really early message in the console saying cannot open file "-log" with a file i/o error. In fact a variation on that theme happens when I tried to save a journal. Any ideas? However, it is saving the journal files, and doing what I want to with the log.
I know, build from the source, and come back then... :)
Thanks a lot, even though I am frustrated I am really really pleased by what I am seeing, on the forums as well as what I someday hope to be able to do with the engine.
Jim
#6
in the windows console i have the folowing message :
Now If i rename the directory lib in lib-hide , I get the folowing message :
In the directory of torque.bin the directory lib does not exist or libopenal.so does not exist in the directory lib.
But I wonder why it is not the same library name ?
06/14/2006 (12:02 pm)
Jim,in the windows console i have the folowing message :
OpenAL Driver Init: OpenAL ^^Searching for OpenAl at location : /home/philippe/boomboom/lib/libopenal.so Loading OpenAL: /home/philippe/boomboom/lib/libopenal.so Setting OpenAL output frequency to 22050 Vendor: J. Valenzuela Version: 0.0.6 Renderer: Software Extensions: AL_LOKI_quadriphonic AL_LOKI_play_position AL_LOKI_WAVE_format AL_LOKI_IMA_ADPCM_format AL_LOKI_buffer_data_callback ALC_LOKI_audio_channel %
Now If i rename the directory lib in lib-hide , I get the folowing message :
OpenAL Driver Init: OpenAL ^^Searching for OpenAl at location : /home/philippe/boomboom/lib/libopenal.so ^^Searching for OpenAl at location : /home/philippe/boomboom/tplib/libopenal.so ^^Searching for OpenAl at location : /home/philippe/boomboom//libopenal.so Error loading OpenAL Library: libopenal.so: cannot open shared object file: No such file or directory Failed to initialize driver.
In the directory of torque.bin the directory lib does not exist or libopenal.so does not exist in the directory lib.
But I wonder why it is not the same library name ?
#7
philippe@Josie:~/boomboom$ ldd torqueDemo.bin
linux-gate.so.1 => (0xffffe000)
libogg.so.0 => /usr/lib/libogg.so.0 (0xb7f88000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7f60000)
libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb7f43000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7ebb000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ea9000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7ea5000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb7e93000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dbe000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d9c000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7d92000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c63000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7b7c000)
libasound.so.2 => /usr/lib/libasound.so.2 (0xb7ac7000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7aba000)
/lib/ld-linux.so.2 (0xb7f9d000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7a8c000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7a23000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7a0e000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7a06000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7a03000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb79e4000)
philippe@Josie:~/boomboom$
06/14/2006 (12:07 pm)
For your information the library used by torquedemo.bin as you can see libasound.so.2 is listedphilippe@Josie:~/boomboom$ ldd torqueDemo.bin
linux-gate.so.1 => (0xffffe000)
libogg.so.0 => /usr/lib/libogg.so.0 (0xb7f88000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7f60000)
libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb7f43000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7ebb000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ea9000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7ea5000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb7e93000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dbe000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d9c000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7d92000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c63000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7b7c000)
libasound.so.2 => /usr/lib/libasound.so.2 (0xb7ac7000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7aba000)
/lib/ld-linux.so.2 (0xb7f9d000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7a8c000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7a23000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7a0e000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7a06000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7a03000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb79e4000)
philippe@Josie:~/boomboom$
#8
but the full sdk does, it works with sound, by default, i didnt change anything
im on ubuntu dapper drake
06/14/2006 (2:00 pm)
The demo didnt have any sound for me for some reasonbut the full sdk does, it works with sound, by default, i didnt change anything
im on ubuntu dapper drake
Torque Owner Philippe C
I used during 2 years redhat partially with windows , now i use ubuntu fully since the begining of the year
for more information : eviwo.free.fr/torque.html
Philippe