digital janitor - 2010-02-24 21:52:00
[updated below]Something happened a few weeks back. While I try and update as much as I can, sometimes work gets in the way and I do check out the svn a few weeks later. So on my OSX machine I updated as usual and tried to compile (using gcc 4.0 and osx 10.5.8). I get this:
Compiling ==> 'AUD_C-API.cpp'
In file included from intern/audaspace/intern/AUD_C-API.cpp:54:
intern/audaspace/SDL/AUD_SDLDevice.h:31:17: error: SDL.h: No such file or directory
In file included from intern/audaspace/intern/AUD_C-API.cpp:58:
intern/audaspace/OpenAL/AUD_OpenALDevice.h:35:19: error: AL/al.h: No such file or directory
intern/audaspace/OpenAL/AUD_OpenALDevice.h:36:20: error: AL/alc.h: No such file or directory
intern/audaspace/intern/AUD_C-API.cpp:67:34: error: libavformat/avformat.h: No such file or directory
intern/audaspace/intern/AUD_I3DDevice.h:37: warning: 'class AUD_I3DDevice' has virtual functions but non-virtual destructor
intern/audaspace/SDL/AUD_SDLDevice.h:45: error: 'Uint8' has not been declared
intern/audaspace/OpenAL/AUD_OpenALDevice.h:49: error: ISO C++ forbids declaration of 'ALCdevice' with no type
intern/audaspace/OpenAL/AUD_OpenALDevice.h:49: error: expected ';' before '*' token
intern/audaspace/OpenAL/AUD_OpenALDevice.h:54: error: ISO C++ forbids declaration of 'ALCcontext' with no type
intern/audaspace/OpenAL/AUD_OpenALDevice.h:54: error: expected ';' before '*' token
intern/audaspace/OpenAL/AUD_OpenALDevice.h:124: error: 'ALenum' has not been declared
intern/audaspace/intern/AUD_C-API.cpp: In function 'int AUD_init(AUD_DeviceType, AUD_DeviceSpecs, int)':
intern/audaspace/intern/AUD_C-API.cpp:90: error: 'av_register_all' was not declared in this scope
scons: *** [/Users/sanders/blender-svn/build/darwin/intern/audaspace/intern/AUD_C-API.o] Error 1
scons: building terminated because of errors.
Apparently this is due to some 'JACK' thing, and right now I'm not able to compile at all. Both libs and blender trunk is checked out at revision 27128.
user-config.py has "WITH_BF_JACK = False".
Any ideas?
[solution]First install Xcode 3.1 if you are on Leopard (10.5.8), Xcode 3.2 is only for Snow Leopard.
Second, alter your user-config.py with these lines:
if MACOSX_ARCHITECTURE == 'x86_64':
REL_CFLAGS = REL_CFLAGS+['-mssse3']
REL_CCFLAGS = REL_CCFLAGS+['-mssse3']
Third, you need to fix your gcc links to use 4.2 instead of 4.0
in a terminal
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
now you (read "me") should be able to update and compile blender just fine :)