Compiling ==> 'AUD_Buffer.cpp'
intern/audaspace/intern/AUD_Buffer.cpp:29:19: error: cstring: No such file or directory
intern/audaspace/intern/AUD_Buffer.cpp:30:20: error: stdlib.h: No such file or directory
intern/audaspace/intern/AUD_Buffer.cpp: In constructor ‘AUD_Buffer::AUD_Buffer(int)’:
intern/audaspace/intern/AUD_Buffer.cpp:37: error: ‘malloc’ was not declared in this scope
intern/audaspace/intern/AUD_Buffer.cpp: In destructor ‘AUD_Buffer::~AUD_Buffer()’:
intern/audaspace/intern/AUD_Buffer.cpp:42: error: ‘free’ was not declared in this scope
intern/audaspace/intern/AUD_Buffer.cpp: In member function ‘void AUD_Buffer::resize(int, bool)’:
intern/audaspace/intern/AUD_Buffer.cpp:57: error: ‘malloc’ was not declared in this scope
intern/audaspace/intern/AUD_Buffer.cpp:61: error: ‘memcpy’ was not declared in this scope
intern/audaspace/intern/AUD_Buffer.cpp:63: error: ‘free’ was not declared in this scope
scons: *** [/Users/mats/svn/trunk/build/darwin/intern/audaspace/intern/AUD_Buffer.o] Error 1
scons: building terminated because of errors.
Again, I've tried all sorts of things but can't seem to find what's wrong...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o /Users/mats/svn/trunk/build/darwin/intern/audaspace/intern/AUD_Buffer.o -c -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -pipe -fPIC -funsigned-char -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -pipe -fPIC -funsigned-char -fpascal-strings -O2 -ftree-vectorize -msse -msse2 -msse3 -Wall -fpascal-strings -DWITH_SDL -I/Users/mats/svn/trunk/build/darwin/intern/audaspace -Iintern/audaspace -I/Users/mats/svn/trunk/build/darwin/intern/audaspace/intern -Iintern/audaspace/intern -I/Users/mats/svn/trunk/build/darwin/intern/audaspace/FX -Iintern/audaspace/FX -I/Users/mats/svn/trunk/build/darwin/intern/audaspace/SRC -Iintern/audaspace/SRC -I/Users/mats/svn/trunk/lib/darwin-8.x.i386/samplerate/include -I/Users/mats/svn/trunk/build/darwin/intern/audaspace/SDL -Iintern/audaspace/SDL -I/Users/mats/svn/trunk/lib/darwin-8.x.i386/sdl/include intern/audaspace/intern/AUD_Buffer.cpp
intern/audaspace/intern/AUD_Buffer.cpp:29:19: error: cstring: No such file or directory
intern/audaspace/intern/AUD_Buffer.cpp:30:20: error: stdlib.h: No such file or directory
intern/audaspace/intern/AUD_Buffer.cpp: In constructor ‘AUD_Buffer::AUD_Buffer(int)’:
intern/audaspace/intern/AUD_Buffer.cpp:37: error: ‘malloc’ was not declared in this scope
intern/audaspace/intern/AUD_Buffer.cpp: In destructor ‘AUD_Buffer::~AUD_Buffer()’:
intern/audaspace/intern/AUD_Buffer.cpp:42: error: ‘free’ was not declared in this scope
intern/audaspace/intern/AUD_Buffer.cpp: In member function ‘void AUD_Buffer::resize(int, bool)’:
intern/audaspace/intern/AUD_Buffer.cpp:57: error: ‘malloc’ was not declared in this scope
intern/audaspace/intern/AUD_Buffer.cpp:61: error: ‘memcpy’ was not declared in this scope
intern/audaspace/intern/AUD_Buffer.cpp:63: error: ‘free’ was not declared in this scope
scons: *** [/Users/mats/svn/trunk/build/darwin/intern/audaspace/intern/AUD_Buffer.o] Error 1
scons: building terminated because of errors.
If you use 10.4u.SDK it is mandatory to use gcc-4.0 !!
set: CC and CXX to gcc-4.0/g++-4.0
or
use gcc-4.0/g++-4.0 along with 10.5.SDK ( toolchain automatic 32bit )
or
Set SDK to 10.5 and gcc(-4.2) , but then you´ll have to add:
-m32 and -march=i386 to the c,cc ad linkflags, cause the standart-toolchain
for gcc-4.2 ( which is default now, symlinked !!! if you simply set gcc )
is 64bit now, which isn´t supported to build on OSX yet.
With -m32 and -march=i386 you define you are compiling 32bit-arch
on/for 32bit-mashine.
Humm.. under /Developer/SDKs/ I only have MacOSX10.5.sdk and MacOSX10.6.sdk. This is a clean osx 10.6 installation, and I installed the xcode tools that came with it (on the dvd). Why is it trying to use something 10.4?
On osx 10.5 building worked fine, so this seems to be a problem that was caused by 10.6, right? In that case many others should have the same problem.
I couldn't get this building with the SVN tree as of the 19th of September-- things failed for me at the OpenEXR libs during the link phase. Other people have had the issue and turned EXR off in their user configs, but I wanted EXRs.
For anyone who wants to get this working, I recommend installing OpenEXR through MacPorts. It installs a metric boatload of unnecessary stuff with it, but if you change the directories in the user_setup.py above it'll work.
Jens,
Would you mind re-posting that user-config? I'm interesting in trying to tinker and maybe put together a fairly robust darwin user-config.py. I'm good with python and know the Mac platform pretty well, but the intricacies of gcc flags is a little beyond me.
Wait a few days, i haven´t finished the new adaptions for scons yet.
I´ve put together now:
-64bit capable ( universal), libs ( in trunk )
-patch for building with cocoa
-user-config prepared for 10.5sdk
TODO:
-setup a choice for OSX_ARCHITECTURE in scons for unzipping
the right arch only ( saving diskspace not having all python-modules
multiarch in app-package )
If you wanna help us with that, visit us at IRC #blendercoders
Jens
ibis wrote:Jens,
Would you mind re-posting that user-config? I'm interesting in trying to tinker and maybe put together a fairly robust darwin user-config.py. I'm good with python and know the Mac platform pretty well, but the intricacies of gcc flags is a little beyond me.
I finished the patch for compiling all OSX-architectures including
new cocoa-stuff now. We should think about reorganizing the darwin-config.py, maybe setup the -arches more automatic, but due OSX is always multi-arch, this is a tricky task.
Be aware you have still to set -arch-flags depending on what platform and compiler you build ( default toolchain 64bit on SnowLeo but 32bit on other OSX ).
Don´t forget to checkout the new libs for darwin-9.x.universal in trunk.
Thanks for your recent patch. It Works For Me (TM) - OS X 10.6; default XCode install, etc. I was having a few problems prior to this, so thanks heaps for working on it!