creating a openglES project from scratch using xcode

sefiroths
Posts: 21
Joined: Thu Nov 11, 2010 1:45 pm

creating a openglES project from scratch using xcode

Post by sefiroths »

i have readed "creating a project from scratch using xcode" and tried to make this one in openglES, i have created a openglES project,
placed in edit project setting->build->header file the directory where i have downloaded bullet-2.77,
in main i have putted "#import <btBulletDynamicsCommon.h>"
i have, for any files.m, right click and->get info ->filetype sourcecode.cpp.objcpp to cross compile
but when i compile i get this error:

Ld build/Debug-iphonesimulator/provaphys1.app/provaphys1 normal i386
cd /Users/sefi/Documents/provaphys1
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/Users/sefi/Documents/provaphys1/build/Debug-iphonesimulator -L/Users/sefi/Documents/provaphys1/bullet-2.77/Glut -F/Users/sefi/Documents/provaphys1/build/Debug-iphonesimulator -filelist /Users/sefi/Documents/provaphys1/build/provaphys1.build/Debug-iphonesimulator/provaphys1.build/Objects-normal/i386/provaphys1.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -o /Users/sefi/Documents/provaphys1/build/Debug-iphonesimulator/provaphys1.app/provaphys1

Undefined symbols:
"btAlignedFreeInternal(void*)", referenced from:
btAlignedAllocator<btHashInt, 16u>::deallocate(btHashInt*) in main.o
btAlignedAllocator<btTriangleInfo, 16u>::deallocate(btTriangleInfo*)in main.o
btAlignedAllocator<int, 16u>::deallocate(int*) in main.o
"btTypedConstraint::serialize(void*, btSerializer*) const", referenced from:
vtable for btTypedConstraintin main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

i have readed similar topic on this board but i hadn't understood the solution
can someone help me please?
thanks
sefiroths
Posts: 21
Joined: Thu Nov 11, 2010 1:45 pm

Re: creating a openglES project from scratch using xcode

Post by sefiroths »

solved.
i have compiled with cmake all libraries and added as static library on the xcode project
hope that helps someone