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

You might experience the following error during make:
/bin/sh ../../../libtool --mode=link gcc  -O2 -g -mmmx -msse -msse2   -o   x86_cpu_caps_detect_prk.lo memcpy_mmx_prk.lo  -ldl
rm -fr  .libs/
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 directory
make[4]: *** [] Fehler 1
make[4]: Leaving directory `/home/jonas/src/portable/src/arch/i386'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/jonas/src/portable/src/arch'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/jonas/src/portable/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/jonas/src/portable'
make: *** [all] Fehler 2
This is caused by an erroneous Makefile. This is a workaround:
$ cd src/arch/i386/
$ make x86_cpu_caps_detect_prk.o
$ make memcpy_mmx_prk.o
$ cd ../../..
$ make
You might also experience this error:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common/include -I../include -I../src/arch/i386 -Wall -ansi -pedantic -finline-functions -ffast-math -fomit-frame-pointer -fvisibility=hidden -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=199309 -pthread -I/usr/include/alsa -I/usr/include/SDL -D_REENTRANT -O2 -g -mmmx -msse -msse2 -MT libopenal_la-al_buffer.lo -MD -MP -MF .deps/libopenal_la-al_buffer.Tpo -c al_buffer.c -o libopenal_la-al_buffer.o
In file included from al_buffer.c:14:
../include/AL/alext.h:97: error: syntax error before 'ALfloat'
../include/AL/alext.h:97: warning: type defaults to 'int' in declaration of 'alcGetAudioChannel_LOKI'
../include/AL/alext.h:97: warning: data definition has no type or storage class
../include/AL/alext.h:98: error: syntax error before 'void'

(... lots and lots more errors ...)
It is caused by wrongly including old OpenAL headers installed on your system. To fix it, you have to call configure again. But this time, add -I../../include to the CFLAGS.

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

Lost Password?