OpenAL error During compile

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Napoleon
Posts: 0
Joined: Tue Jan 27, 2004 6:08 pm

OpenAL error During compile

Post by Napoleon » Sat Apr 15, 2006 11:12 am

Hi all, i get these errors when i try to compile blender from CVS. I run Archlinux -Testing (if it makes any sense). i have been able to build Blender from CVS up to ver 2.41.

Code: Select all

scons: done reading SConscript files.
scons: Building targets ...
Compiling ==> 'SND_OpenALDevice.cpp'
intern/SoundSystem/openal/SND_OpenALDevice.cpp:48:21: error: AL/alut.h: No such file or directory
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function 'virtual SND_WaveSlot* SND_OpenALDevice::LoadSample(const STR_String&, void*, int)':
intern/SoundSystem/openal/SND_OpenALDevice.cpp:433: error: 'alutLoadWAVMemory' was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:448: error: 'alutLoadWAVFile' was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:476: error: 'alutUnloadWAV' was not declared in this scope
scons: *** [/home/napoleon/blenderdev/build/linux2/intern/SoundSystem/openal/SND_OpenALDevice.o] Error 1
scons: building terminated because of errors.
[napoleon@archlinux blender]$
Whats going on here and how may i fix it? Thnx all.

lordloki
Posts: 2
Joined: Thu Oct 17, 2002 12:36 am

Post by lordloki » Sun Apr 16, 2006 11:14 pm

You have to install freealut
http://archlinux.org/packages.php?id=10733

Napoleon
Posts: 0
Joined: Tue Jan 27, 2004 6:08 pm

Post by Napoleon » Tue Apr 18, 2006 12:10 am

Thanks for the tip i installed the freealut and it seems to have caused the compile to go a bit further but i now get the following error:

Code: Select all

/home/napoleon/blenderdev/build/linux2/lib/libbf_soundsystem.a(SND_OpenALDevice.o): In function `SND_OpenALDevice::LoadSample(STR_String const&, void*, int)':
SND_OpenALDevice.cpp:(.text+0x4ca): undefined reference to `alutLoadWAVMemory'
SND_OpenALDevice.cpp:(.text+0x565): undefined reference to `alutUnloadWAV'
SND_OpenALDevice.cpp:(.text+0x5d2): undefined reference to `alutLoadWAVFile'
collect2: ld returned 1 exit status
scons: *** [/home/napoleon/blenderdev/build/linux2/bin/blender] Error 1
scons: building terminated because of errors.
[napoleon@archlinux blender]$ scons
thanks

lordloki
Posts: 2
Joined: Thu Oct 17, 2002 12:36 am

Post by lordloki » Tue Apr 18, 2006 10:40 pm

Try a "make clean" and after "make" if you are using the make system or a "scons clean" and after "scons" if you are using scons

Post Reply