Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Nightly Builds => Topic started by: chief1983 on December 18, 2008, 06:12:16 pm

Title: ERROR: Missing libopenal.so.1 problem (Workaround)
Post by: chief1983 on December 18, 2008, 06:12:16 pm
I've received a report that running the linux nightly build can generate a missing libopenal.so.0 error.  It appears that the box used for generating Linux nightly builds is compiling against libopenal0a and newer Ubuntu distributions have libopenal1 (which includes libopenal.so.1) in their repositories.  I'm not a Linux expert, so I don't know how to best deal with this, but I thought I would put this up as a sticky so that anyone else who gets it will realize this is a known issue.  If anyone has any suggestions let me know.

Edit:  Sounds like phreak's suggestion below this should work well enough.  Might need to get that into the Wiki.


Edit 2:

The nightly build box has been upgraded, from an older Ubuntu distro to a newer Debian one.  One change involved moving from the old OpenAL Sample Implementation (SI), which provided libopenal.so.0, to the newer OpenAL Soft, which provides libopenal.so.1.  So anyone who was not suffering from a missing OpenAL lib before, now likely will be, and anyone who was, now likely will not.  This assumes you have one or the other installed on your system, if not you need to install the runtime OpenAL libs provded by your distro :)

The workaround for this issue is essentially the same, just reverse the lib names, ie:

Code: [Select]
cd /usr/lib
(sudo) ln -s libopenal.so.0 libopenal.so.1
Title: Re: ERROR: Missing libopenal.so.0 problem
Post by: phreak on December 21, 2008, 11:00:38 pm
Don't know if this would work...

Code: [Select]
cd /usr/lib
(sudo) ln -s libopenal.so.1 libopenal.so.0
Title: Re: ERROR: Missing libopenal.so.0 problem
Post by: smurd on December 29, 2008, 11:15:00 am
Some time ago the old openal implementation used by Debian and Ubuntu from http://openal.org (http://openal.org) was replaced by a new one called OpenAL Soft from http://kcat.strangesoft.net/openal.html (http://kcat.strangesoft.net/openal.html). The new implementation is not totally compatible to the old one:

Quote
OpenAL Soft does not support the Vorbis and MP3 extensions, however those were considered deprecated even in the SI. It does, though, support some of the newer extensions like AL_EXT_FLOAT32 and AL_EXT_MCFORMATS for multi-channel and floating-point formats, as well as ALC_EXT_EFX for environmental audio effects, and others.

The library version was changed to reflect these incompatibilities. As far as FSO is concerned, the new library seems to replace the old one just fine, and the symlink works (tested on Debian Lenny).
Title: Re: ERROR: Missing libopenal.so.0 problem (Workaround)
Post by: futureshock on February 21, 2009, 02:12:23 pm
Hi, it doesn't work under Lenny 64 bit. 
I get an error telling me the library is 32bit?
Not exactly sure about the text of the error message since I can`t access the machine now.
Title: Re: ERROR: Missing libopenal.so.0 problem (Workaround)
Post by: chief1983 on April 06, 2009, 12:49:00 pm
I can't make any claims as to how well these binaries will work on 64bit distros, I'm not even sure how well they'll work on distros other than what they were compiled on.  They're provide mostly to ensure that building does continue to work properly on Linux.  As always with linux your best bet is compiling yourself or getting it put into the package manager (not very likely with nightly builds, but hopefully 3.6.10 final will be worth it).  We could probably use some package maintainers for the various distros...
Title: Re: ERROR: Missing libopenal.so.1 problem (Workaround)
Post by: chief1983 on July 10, 2018, 02:34:24 pm
I'm going to guess this doesn't warrant a sticky anymore?
Title: Re: ERROR: Missing libopenal.so.1 problem (Workaround)
Post by: niffiwan on July 11, 2018, 10:01:47 am
nope, stickybegone