Page 1 of 1

Compiling Error : Checking FreeAlut... failed

Posted: Fri Aug 11, 2006 5:25 pm
by Dave Ridic

I'm trying to install blender with scons but... There's a strange error about the freealut lib.
I can't fix it alone !

I send to you an extract of the compiling history :

Compiling ==> 'SND_OpenALDevice.cpp'
intern/SoundSystem/openal/SND_OpenALDevice.cpp:48:21: 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' u ndeclared (first use this function)
intern/SoundSystem/openal/SND_OpenALDevice.cpp:433: error: (Each undeclared iden tifier is reported only once for each function it appears in.)
intern/SoundSystem/openal/SND_OpenALDevice.cpp:448: error: `alutLoadWAVFile' und eclared (first use this function)
intern/SoundSystem/openal/SND_OpenALDevice.cpp:476: error: `alutUnloadWAV' undec lared (first use this function)
scons: *** [/root/Desktop/Blender/build/linux2/intern/SoundSystem/openal/SND_Ope nALDevice.o] Error 1
scons: building terminated because of errors.

If somebody has an idea... please, help me.

I thank you in advance


Posted: Fri Aug 11, 2006 5:36 pm
by lguillaume
Do you have openal source installed on your system?

If you want you can compile without this, in your blender source root there is a directory called config, inside copy in the blender source root, rename it

In this file you can setup what you want, and for openal set false to the line : WITH_BF_OPENAL =

Now you can continu to compile

Posted: Fri Aug 11, 2006 6:25 pm
by Dave Ridic
Well, this fixed the first problem... Thank you

But now, there is a hurricane of errors during the BPY_interface.c compilation...
This is the firt five errors :

Compiling ==> 'BPY_interface.c'
source/blender/python/BPY_interface.c:34:20: Python.h: No such file or directory
source/blender/python/BPY_interface.c:36:59: compile.h: No such file or directory
source/blender/python/BPY_interface.c:37:58: eval.h: No such file or directory
In file included from source/blender/python/BPY_interface.c:56:
source/blender/python/api2_2x/constant.h:36:20: Python.h: No such file or directory
In file included from source/blender/python/BPY_interface.c:56:
source/blender/python/api2_2x/constant.h:41: error: syntax error before "constant_Type"

Do you know what the problem is?

Posted: Fri Aug 11, 2006 6:37 pm
by lguillaume
Do you download the lib directory in CVS or the dev package of python, I don't know I compile under windows

Posted: Fri Aug 11, 2006 6:43 pm
by Dave Ridic
:) ... It's already installed... I think...

Posted: Fri Aug 11, 2006 6:50 pm
by Dave Ridic
I use Synaptic... So I think I downloaded the dev package... Is that a problem ?

Posted: Fri Aug 11, 2006 7:22 pm
by Dave Ridic
Je crois que tu es français... n'est-ce pas ?
C'est tout de même mieux de parler dans sa langue maternelle... :D
Bon... Lorsque j'ai installé Linux, Python était déjà installé... Faudrait-il le réinstaller autrement ? J'avoue ne pas bien comprendre pourquoi tout est si compliqué...

Well... When I installed Linux on my PC, Python was already installed... Should I install it again ? You know, really, I don't understand why it is so complex...

Posted: Fri Aug 11, 2006 7:51 pm
by lguillaume
Oui je suis français, mais ça n'aidera pas les autres et les non francophones ne pourront pas t'aidés.

Python est installé mais peut être pas les paquets pour les développeurs, regarde si tu as le paquet dev de python d'installé.
Et je n'ai jamais utilisé synaptic donc peut pas t'aider pour le choix du paquet.

Python is installed but perhaps not the dev package, look to see if you have it.
I never used Synaptic so I can't help you for what package you have to take.

Posted: Fri Aug 11, 2006 9:00 pm
by kidb
If you are on debian/ubuntu an apt-get build-dep blender will help a lot. apt-get install apt-file, apt-file update, apt-file search al.h will find libalut-dev.
you should have too, libopenal-del, libsdl1.2-dev.

Posted: Sat Aug 12, 2006 11:27 am
by angel75

Posted: Mon Aug 14, 2006 1:39 pm
by Dave Ridic
Thank you for your help...

You were right, I have not installed the python-dev package.
This error was fixed. But there is an other compiling error about openEXR library...
But I think I am able to fix it by myself... thanks to you.

I hope you'll be here if there is an other problem. :wink:

Thank you very much guys