Bonjour,
Pour compiler j'ai pris les sources de http://www.blender.org/download/source-code/
Après décompression de blender-2.46.tar.gz
En effet, je veux compiler Blender sans accélération graphique: apparemment comme Debian et Fedora ou ça semble marcher même en nv .
J'ai: :~/blender-2.46> ls
bin CMake COPYING extern make po README source
blenderplayer CMakeLists.txt dlltool INSTALL Makefile projectfiles release tools
ChangeLog config doc intern obj projectfiles_vc7 SConstruct
Alors j'essaie de compiler en faisant:
~/blender-2.46> sudo scons
scons: Reading SConscript files ...
Command-line arguments
No command-line arguments given
Command-line targets
No targets given, using default
Using config file: config/linux2-config.py
user-config.py not found, no user overrides
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/peter/blender-2.46/SConstruct", line 224, in <module>
Linux platform detected:
checking for FreeAlut... no
Building in ../build/linux2/
Configuring library bf_soundsystem
Configuring library bf_string
Configuring library bf_ghost
Configuring library bf_guardedalloc
Configuring library bf_bmfont
Configuring library bf_moto
Configuring library blender_CTR
Configuring library bf_memutil
Configuring library bf_decimation
Configuring library blender_IK
Configuring library blender_bop
Configuring library blender_ONL
Configuring library bf_elbeem
Configuring library blender_BSP
Configuring library extern_bullet2linmath
Configuring library extern_bullet2dynamics
Configuring library extern_bullet2collision
Configuring library extern_ftgl
Configuring libx264...
(skipped, config.mak already exists)
Processing makefile: extern/x264/config.mak
Processing makefile: extern/x264/Makefile
Configuring library extern_x264
Configuring libmp3lame...
Processing makefile: extern/libmp3lame/Makefile.am
Configuring library extern_libmp3lame
Configuring libxvidcore...
(skipped, build/generic/platform.inc already exists)
Processing makefile: extern/xvidcore/build/generic/sources.inc
Processing makefile: extern/xvidcore/build/generic/platform.inc
Configuring library extern_xvidcore
Configuring ffmpeg...
(skipped, config.mak already exists)
Processing makefile: extern/ffmpeg/config.mak
Processing makefile: extern/ffmpeg/libavformat/Makefile
Configuring library extern_libavformat
Processing makefile: extern/ffmpeg/config.mak
Processing makefile: extern/ffmpeg/libavcodec/Makefile
Configuring library extern_libavcodec
Processing makefile: extern/ffmpeg/config.mak
Processing makefile: extern/ffmpeg/libswscale/Makefile
Configuring library extern_libswscale
Processing makefile: extern/ffmpeg/config.mak
Processing makefile: extern/ffmpeg/libavutil/Makefile
Configuring library extern_libavutil
Configuring library extern_binreloc
Configuring library bf_avi
Configuring library bf_blenkernel
Configuring library bf_blenlib
Configuring library bf_blenloader
Configuring library bf_blenpluginapi
Configuring library bf_imbuf
Configuring library bf_cineon
Configuring library bf_dna
Configuring library blender_python
Configuring library blender_radiosity
Configuring library bf_readblenfile
Configuring library blender_render
Configuring library src
Configuring library nodes
Configuring library bf_yafray
Configuring library bf_ftfont
Configuring library bf_dds
Configuring library bf_openexr
Configuring library bf_kernel
Configuring library blender_creator
Configuring program blender
>>> ../install/linux2 release/plugins Makefile
>>> ../install/linux2 release/plugins bmake
>>> ../install/linux2 release/plugins/texture clouds2.c
>>> ../install/linux2 release/plugins/texture Makefile
>>> ../install/linux2 release/plugins/texture tiles.c
>>> ../install/linux2 release/plugins/sequence scatter.c
>>> ../install/linux2 release/plugins/sequence Makefile
>>> ../install/linux2 release/plugins/sequence dnr.c
>>> ../install/linux2 release/plugins/sequence blur.c
>>> ../install/linux2 release/plugins/sequence gamma.c
>>> ../install/linux2 release/plugins/sequence color-correction-hsv.c
>>> ../install/linux2 release/plugins/sequence color-correction-yuv.c
scons: done reading SConscript files.
scons: Building targets ...
Compiling ==> 'SND_OpenALDevice.cpp'
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
intern/SoundSystem/openal/SND_OpenALDevice.cpp:48:19: error: AL/al.h: Aucun fichier ou dossier de ce type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:49:20: error: AL/alc.h: Aucun fichier ou dossier de ce type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:50:21: error: AL/alut.h: Aucun fichier ou dossier de ce type
In file included from intern/SoundSystem/openal/SND_OpenALDevice.cpp:35:
intern/SoundSystem/openal/SND_OpenALDevice.h:35: warning: ‘typedef’ was ignored in this declaration
In file included from intern/SoundSystem/openal/SND_OpenALDevice.cpp:37:
intern/SoundSystem/sdl/SND_SDLCDDevice.h:32: warning: ‘typedef’ was ignored in this declaration
intern/SoundSystem/openal/SND_OpenALDevice.cpp:69: error: ‘ALvoid’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:70: error: ‘ALvoid’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:74: error: ‘ALubyte’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:75: error: ‘ALsizei’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:76: error: ‘ALubyte’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:81: error: ‘ALushort’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:82: error: ‘ALushort’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:83: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:84: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:85: error: ‘ALushort’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:86: error: ‘ALushort’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:91: error: ‘ALushort’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:92: error: ‘ALushort’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:97: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:98: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:99: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:100: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:101: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:102: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:103: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:104: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:105: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:108: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:109: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:110: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:111: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:112: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:113: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:119: error: ‘ALubyte’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:120: error: ‘ALuint’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:123: error: ‘ALvoid’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp:198: error: ‘ALvoid’ does not name a type
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In constructor ‘SND_OpenALDevice::SND_OpenALDevice()’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:232: error: ‘ALCdevice’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:232: error: ‘dev’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:232: error: ‘alcOpenDevice’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:234: error: ‘alcCreateContext’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:240: error: ‘alcMakeContextCurrent’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:268: error: ‘alGenBuffers’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:273: error: ‘alIsBuffer’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:291: error: ‘ALenum’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:291: error: expected `;' before ‘alc_error’
intern/SoundSystem/openal/SND_OpenALDevice.cpp:295: error: ‘alc_error’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:295: error: ‘ALC_NO_ERROR’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:297: error: ‘alGenSources’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In destructor ‘virtual SND_OpenALDevice::~SND_OpenALDevice()’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:335: error: ‘alSourceStop’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:337: error: ‘alDeleteSources’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:343: error: ‘alDeleteBuffers’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:352: error: ‘alcDestroyContext’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:378: error: ‘ALCdevice’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:378: error: expected primary-expression before ‘)’ token
intern/SoundSystem/openal/SND_OpenALDevice.cpp:378: error: ‘alcCloseDevice’ was not declared in this scope
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:407: error: ‘ALenum’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:407: error: expected `;' before ‘al_error’
intern/SoundSystem/openal/SND_OpenALDevice.cpp:438: error: ‘alutLoadWAVMemory’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:443: error: ‘alBufferData’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:451: error: ‘ALbyte’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:451: error: expected primary-expression before ‘)’ token
intern/SoundSystem/openal/SND_OpenALDevice.cpp:451: error: ‘alutLoadWAVFile’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:454: error: ‘alBufferData’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:458: error: ‘al_error’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:458: error: ‘alGetError’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:459: error: ‘AL_NO_ERROR’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:479: error: ‘alutUnloadWAV’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetDopplerVelocity(MT_Scalar) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:501: error: ‘alDopplerVelocity’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetDopplerFactor(MT_Scalar) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:509: error: ‘alDopplerFactor’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetListenerGain(float) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:536: error: ‘AL_GAIN’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:536: error: ‘alListenerf’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::InitListener()’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:555: error: ‘AL_POSITION’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:555: error: ‘alListenerfv’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:556: error: ‘AL_VELOCITY’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:557: error: ‘AL_ORIENTATION’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectBuffer(int, unsigned int)’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:569: error: ‘AL_BUFFER’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:569: error: ‘alSourcei’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual int SND_OpenALDevice::GetPlayState(int)’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:583: error: ‘AL_SOURCE_STATE’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:583: error: ‘alGetSourceiv’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:588: error: ‘AL_INITIAL’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:593: error: ‘AL_PLAYING’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:598: error: ‘AL_PAUSED’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:603: error: ‘AL_STOPPED’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::PlayObject(int)’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:620: error: ‘alSourcePlay’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::StopObject(int) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:631: error: ‘AL_POSITION’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:631: error: ‘alSourcefv’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:632: error: ‘AL_VELOCITY’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:634: error: ‘AL_GAIN’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:634: error: ‘alSourcef’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:635: error: ‘AL_PITCH’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:636: error: ‘AL_FALSE’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:636: error: ‘alSourcei’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:637: error: ‘alSourceStop’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::StopAllObjects()’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:645: error: ‘alSourceStopv’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::PauseObject(int) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:653: error: ‘alSourcePause’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectPitch(int, MT_Scalar) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:665: error: ‘AL_PITCH’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:665: error: ‘alSourcef’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectGain(int, MT_Scalar) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:673: error: ‘AL_GAIN’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:673: error: ‘alSourcef’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectLoop(int, unsigned int) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:684: error: ‘AL_FALSE’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:684: error: ‘alSourcei’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:687: error: ‘AL_TRUE’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:687: error: ‘alSourcei’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectMinGain(int, MT_Scalar) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:699: error: ‘AL_MIN_GAIN’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:699: error: ‘alSourcef’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectMaxGain(int, MT_Scalar) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:706: error: ‘AL_MAX_GAIN’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:706: error: ‘alSourcef’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectRollOffFactor(int, MT_Scalar) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:713: error: ‘AL_ROLLOFF_FACTOR’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:713: error: ‘alSourcef’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectReferenceDistance(int, MT_Scalar) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:720: error: ‘AL_REFERENCE_DISTANCE’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:720: error: ‘alSourcef’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::ObjectIs2D(int) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:731: error: ‘AL_POSITION’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:731: error: ‘alSourcefv’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:732: error: ‘AL_VELOCITY’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectTransform(int, const MT_Vector3&, const MT_Vector3&, const MT_Matrix3x3&, const MT_Vector3&, const MT_Scalar&) const’:
intern/SoundSystem/openal/SND_OpenALDevice.cpp:751: error: ‘AL_POSITION’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:751: error: ‘alSourcefv’ was not declared in this scope
intern/SoundSystem/openal/SND_OpenALDevice.cpp:754: error: ‘AL_VELOCITY’ was not declared in this scope
scons: *** [/home/peter/build/linux2/intern/SoundSystem/openal/SND_OpenALDevice.o] Error 1
scons: building terminated because of errors.
peter@linux-uwcg:~/blender-2.46>
Que dois-je corriger?
ça? cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
Mais que mettre