Let's go...
I use:
Mac os 10.6.3
Xcode 3.2.2
bullet-2.76.tgz from here: http://code.google.com/p/bullet/downloads/list
cmake 2.8-1 (useless if I follow the "Creating a project from scratch using XCode")
I read this: http://bulletphysics.org/mediawiki-1.5. ... om_scratch ("Creating a project from scratch using XCode")
and do exactly what they said...
Xcode 3.2 is a bit different from the one in the "Creating a project from scratch using XCode"
So, In Xcode 3.2 I choose "command line tool" in type I choose "C++ stdc++"
I add the #include "btBulletDynamicsCommon.h" line
I edit and modify "project settings" as they say
And when I try to I build :
Code: Select all
Ld build/essai2.build/Release/essai2.build/Objects-normal/x86_64/essai2 normal x86_64
cd /Users/name/Documents/Bullet/essai2
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/g++-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/name/Documents/Bullet/essai2/build/Release -F/Users/name/Documents/Bullet/essai2/build/Release -filelist /Users/name/Documents/Bullet/essai2/build/essai2.build/Release/essai2.build/Objects-normal/x86_64/essai2.LinkFileList -mmacosx-version-min=10.6 -o /Users/name/Documents/Bullet/essai2/build/essai2.build/Release/essai2.build/Objects-normal/x86_64/essai2
ld: warning: directory '/Users/name/Documents/Bullet/essai2/build/Release' following -L not found
ld: warning: directory '/Users/name/Documents/Bullet/essai2/build/Release' following -F not found
Undefined symbols:
"btTypedConstraint::serialize(void*, btSerializer*) const", referenced from:
vtable for btTypedConstraintin main.o
"btAlignedFreeInternal(void*)", referenced from:
btAlignedObjectArray<btTriangleInfo>::clear() in main.o
btAlignedObjectArray<int>::clear() in main.o
btHashMap<btHashInt, btTriangleInfo>::~btHashMap()in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit statusI can't find the solution