If I understood this correctly I should first make a library, this I have managed to do using the iphone sdk library template and just add the bullet/src folder. This project produces a library file called "libbullet.a". My project is named "bullet" hence the name.
Then in a new iPhone app project I include this lib in the "Targets/link binary with libraries" tab. I also set the search path to my bullet-2.75/src folder as well as the search path for the library in the "Edit project settings" window. When I try to compile I get these three link errors:
- ld warning: in /Users/daniel/Documents/bullet/build/Release-iphoneos/libbullet.a, file is not of required architecture
Undefined symbols:
"btAlignedFreeInternal(void*)", referenced from:
btAxisSweep3Internal<unsigned short>::operator delete(void*)in EAGLView.o
"btAxisSweep3::btAxisSweep3(btVector3 const&, btVector3 const&, unsigned short, btOverlappingPairCache*, bool)", referenced from:
-[EAGLView startAnimation] in EAGLView.o
"btAlignedAllocInternal(unsigned long, int)", referenced from:
btAxisSweep3Internal<unsigned short>::operator new(unsigned long)in EAGLView.o
ld: symbol(s) not found
collect2: ld returned 1 exit status