How do I compile OpenAL from CVS? Print
Written by Jonas   
Tuesday, 10 January 2006
Article Index
How do I compile OpenAL from CVS?
Page 2
Page 3

Compiling OpenAL
Aftern downloading has (hopefully) succeeded, the first step will be to compile OpenAL:
$ cd portable
$ ./autogen.sh
This is quite likely to produce a lot of warning messages, but in the end you should have a new file configure in the current directory. It is used to specify compilation options. This is what I used:
$ CFLAGS="-O2 -g -mmmx" ./configure --disable-shared --enable-static --enable-sdl --enable-alsa --disable-arts --disable-bsd --disable-esd --disable-irix --enable-linux --disable-morphos --disable-solaris --disable-windows --disable-mp3 --disable-vorbis
It is important to include the -mmmx flag (yes, that's 3 'm's) when compiling for PCs. Else, OpenAL might be built without special optimizations and you'll experience slowdowns when many sound sources are audible. The configure script generates a bunch of Makefiles for us, so we can start compilation the usual way:
$ make
As we were building a static version of the OpenAL library, there is no need to do make install afterwards. To get it included in a Thunder&Lightning build, you just pass the library's path (portable/src/.libs/libopenal.so) as the argument of --with-openal-libs to Thunder&Lightning's configure script.



Last Updated ( Wednesday, 22 August 2007 )
 
An Open Source Futuristic Action Flight Simulator Game Inspired By Carrier Command
Polls
TnL in 2015
 
Popular





Lost Password?