Game Development Community

1.4rc1: Audio::OpenALDLLInit uses wrong filename

by Kenneth Porter · in Torque Game Engine · 07/14/2005 (3:28 pm) · 3 replies

This procedure in x86UNIXOpenAL.cc should be loading libopenal.so.0, not libopenal.so. For more info, see the GCC HOWTO section on linking and how shared library version numbers work:

www.faqs.org/docs/Linux-HOWTO/GCC-HOWTO.html#AEN575

The name without the ".0" is what you link against at compile time. It's equivalent to an import library on Windows. The ".0" is what you link against at runtime.

#1
07/14/2005 (10:05 pm)
Good call. In the bug database. Thanks!
#2
07/15/2005 (9:47 am)
I actually submitted a patch to fix this last October, but it hasn't made it's way into cvs yet. My code actually did a loop that would first try to load libopenal.so.0 and then libopenal.so and looped over the different lookup directories that you were originally looking in.
#3
07/19/2005 (11:46 am)
James please resend your patch to me

john@bravetree.com