Game Development Community

No sound in Torque demo

by Andrew · in Technical Issues · 09/30/2005 (5:43 pm) · 19 replies

I don't have sound when I run the Torque demo in GNU/Linux. I get an error message saying that the openal drivers cannot be found, however I have already installed the openal package. How do I solve this problem. I am using Fedora Core 4.

#1
10/07/2005 (5:19 am)
Anyone?
#2
10/07/2005 (11:13 am)
What's the error more specifically, or is that all there is?

Try strace'ing the application [or read the source, but strace brings the code to you :-)], and see what specifically it's looking for. Specific path? Version? filename?

Also, check that your openal package is dynamic.

Gary (-;
#3
10/08/2005 (1:43 am)
That's all to the error. When the main demo menu boots up I get a small windows saying that error and referring me to www.openal.org to get the drivers, How do I check if my openal package is dynamic?
#4
10/10/2005 (11:57 am)
Can you strace the app and see where it's balking? If you don't know what that means, run torque with
strace -otorque_strace ./torque_DEBUG.bin
And exit as soon as you can :-)
Then look in torque_strace, and look for the library calls just before it outputs that error.

Gary (-;
#5
06/07/2006 (10:38 pm)
Hi,

I have just tried installing and running the Torque Demo. I am having the exact same problem that Andrew was having. I am also running Fedora Core 4 on an AMD x64 CPU, and I have installed the OpenAL package via yum. The version listed in the package that I installed is 0.0.9.

I ran the strace that you recommended (strace -otorque_strace ./demo.bin), and also ran the strace on the shell script.

I don't seen anything obvious. I see it looking all over for lots of libraries, but it eventually finds them all. Including ogg and vorbis, stdC++, X11, etc. I do not see it looking for the openal libraries at all, which I have verified are on my system.

If it would be helpful, I would be happy to put the file contents up here. I am pretty much an amateur with Linux, having forgotten most of what I learned in the mid 90's...

Thanks for any insight.

Jim
#6
06/07/2006 (10:50 pm)
Sorry to reply to myself, but I have one more piece of information that is probably not useful. A couple of times when I have launched the demo I have gotten console messages from OGG. I also always get a seg-fault before the splash screen even shows up when running the app through strace, but I have no idea if that means anything.

The ogg messages are like this:
OggS-SEEK: at 0 want 78328 got 68160 (diff-requested 78328)
OggS-SEEK: at 78400 want 520 got 0 (diff-requested -77880)
OggS-SEEK: at 0 want 78328 got 68160 (diff-requested 78328)
OggS-SEEK: at 78400 want 520 got 0 (diff-requested -77880)
OggS-SEEK: at 0 want 78328 got 68160 (diff-requested 78328)
OggS-SEEK: at 78400 want 520 got 0 (diff-requested -77880)

Thanks again,

Jim
#7
06/08/2006 (10:12 am)
Did you use the script runtorque.sh to launch torque ?

Philippe
#8
06/08/2006 (10:21 am)
Hi Philippe,

No I was running the demo.sh script. I also launched the binary directly (or rather strace'd it). If I remember correctly, when I ran the runtorque.sh script, it was looking for a different binary name. I will try it again this evening. Is there some special magic that the runtorque script is supposed to do? I looked at the demo.sh, and it didn't seem to do much more than just shutting down arts...

I am wondering if i might need to install the -dev version of openal. I ran into a similar issue trying to get Wine to work, as it needed the development library for tcl in order to run.

Thanks,

Jim
#9
06/08/2006 (10:27 am)
This script set the LD_LIBRARY_PATH for torque


LD_LIBRARY_PATH=.:${GAME_HOME_PATH}/lib:${LD_LIBRARY_PATH}:../lib/openal/LINUX:../lib/vorbis/linux


on my ubuntu dapper distro if i launch directly the binary , i get an error message with openal, but i set before the LD_LIBRARY_PATH as above , it works well

:)

Philippe
#10
06/08/2006 (10:53 pm)
Well, I am still having no luck getting openal to initialize with the demo.

I fixed the executable name in runtorque.sh (the script has it listed as "torque_Demo.bin"), and I even appended the path to my openal library (on my system it is installed to /usr/lib64), however, I still get the error message when launching the demo. I am not too worried as long as audio will work with the real engine, which I am planning on purchasing soon. I just wanted to play with the demo to check it out.

The LD_LIBRARY_PATH in runtorque.sh is exactly what you have listed above, but when I echo it back to the console, it comes out like this:
.:./lib::../lib/openal/LINUX:../lib/vorbis/linux

I was worried that the double colon was messing it up, and changed it to this, with no luck:
.:./lib:../lib/openal/LINUX:../lib/vorbis/linux:/usr/lib64

I don't have a lib directory in the demo folder at all?

Thanks,

Jim
#11
06/09/2006 (12:54 pm)
I have downloaded the demo on the web site in order to check what happen.

demos.garagegames.com/tge/TorqueGameEngineDemo-1.4.2-RC1.bin

It works fine , just launch demo.sh
#12
06/09/2006 (10:26 pm)
I re-downloaded the new version of the linux demo, version 1.4.2-RC1.bin, and I have the same issues as before.

runtorque.sh still has the wrong executable name in it (easy to fix), and neither script successfully initializes OpenAL. I uninstalled the demo, re-installed it, and then tried demo.sh alone, still with no luck. I have NO idea why the openal will not initialize, perhaps this is an issue with the Fedora core, and the rpms available through yum?

The new linux install DOES include a "lib" folder that has the openal library, etc. However it just will not cooperate with me. I have spent some time, to no avail, looking for another app to test my openal installation with. The .ogg test sample that comes with the Demo does work, abeit a little choppily. I am lost completely here. Aside from no audio, I am so completely stoked about this engine.

I really want to buy this engine and begin working on a few ideas I have been kicking around, but I am most excited about Linux compatibility, and while I have a WinXP-64 installation along with Visual Studio, I really want to get away from Micro$oft.

Thanks for all your help Philippe, and if your suggestions are an indication as to the quality of the community here, I am truly excited to get thoroughly confused again soon :)

Jim
#13
06/09/2006 (10:48 pm)
Last try :

-Is xmms (music player) works on your distribution ? try this link to test it www.jamendo.com/get/track/id/track/audio/play/2170/?aue=mp31

-do this command => ldd torque-binary
I got that on my linux distro

$ ldd torqueDemo.bin
        linux-gate.so.1 =>  (0xffffe000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0xb7fd0000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7fa8000)
        libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb7f8b000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7f03000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ef1000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7eed000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0xb7edb000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e06000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7de4000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dda000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7cab000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7bc4000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0xb7b0f000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7b02000)
        /lib/ld-linux.so.2 (0xb7fe5000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7ad4000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7a6b000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7a56000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7a4e000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7a4b000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7a2c000)


-advise : install ubuntu .

Before to use torque I have done a lot of test with mandrake and redhat in order to use graphical application ( bmax BLITZ3D ), I have always issues. And one day I discover ubuntu , i install it , and this application which did not work on mandrake and redhat works on ubuntu( bmax BLITZ3D ) . Begining of this year I test the demo version on linux ubuntu and I was amazing . I bought torque and I am a happy linux user....

With Ubuntu everything works well and torque too : I don't know why, I can not explain. But it is a fact.
I definetevely forget windows

for more information on ubuntu/torque/jedit/quark/blender installation eviwo.free.fr/
#14
06/10/2006 (12:13 am)
Hi Philippe,

It is seeming more possible that this is a Fedora issue. I ran "ldd" against my binary (demo.bin, not torqueDemo.bin), and got basically the same results as you (the same libraries, and sensible links to them), however I noticed that neither of us has any mention of the openal library...

I tried your link, and Totem, which is the default media app for me appeared to buffer your playlist, but wouldn't play it. I installed xmms, but of course RedHat has it crippled by default ("copyright concerns with .mp3 files). Both apps will play audio CDs fine, but I don't see any idication that either app is using the openal libraries to do so.

I have a hunch that this might be an issue with the 64bit versions... I am going to force an install of the 32bit versions of the openal next. I will try this tomorrow, as I am DONE tonight.

Thanks again,

Jim
#15
09/07/2006 (9:01 am)
I am also having this problem on Slackware 10, even after installing the openAL drivers.
Sound runs ok on my Mandrake 9.2 box.
#16
12/05/2006 (3:05 am)
Hi

I had the problem too.

It was releated to missing libraries.
ldd torqueDemo.bin will show which libs are linked against the Demo but, the Demo uses libs, which also relate to other libs, which ldd doesn't shows.

So I did a ldd to the openal and vorbis libs and found out that libsmpeg was missing. I installed it, and I had Sound in the Torque Demo.

Hope it helps.
Regards
paines
#17
02/12/2007 (3:27 pm)
Great! Have Ubunty Edgy Eft installed, and a "apt-get install libsmpeg0" did the trick!

Thanks :)

-Trond
#18
04/30/2007 (5:36 pm)
How do i enable ALSA support?
#19
05/04/2007 (12:48 pm)
Try : alsamixer in terminal window