Building Bullet on iOS - by including sources directly

Spaddlewit
Posts: 28
Joined: Fri Sep 04, 2009 8:23 pm

Building Bullet on iOS - by including sources directly

Post by Spaddlewit »

I want to build bullet directly into my project, not as a 'framework'.

On Visual Studio 2010, I just had to copy the relevant sources files and everything worked dandy. Doing the same in XCode gives me trouble when I reach the linker stage:

Code: Select all

Undefined symbols for architecture armv7:
  "btCollisionDispatcher::btCollisionDispatcher(btCollisionConfiguration*)", referenced from:
      Collision::Init(World::polygon_t*, int) in p_collision.o
  "vtable for btSphereShape", referenced from:
      btSphereShape::btSphereShape(float) in p_collision.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "btSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver()", referenced from:
      Collision::Init(World::polygon_t*, int) in p_collision.o
  "btCollisionObject::activate(bool) const", referenced from:
      Collision::SetThingPosition(Object::object_s*) in p_collision.o
      Object::SetScale(Object::object_s*, float) in p_object.o
And so forth. Am I missing something in the compiler settings?
Spaddlewit
Posts: 28
Joined: Fri Sep 04, 2009 8:23 pm

Re: Building Bullet on iOS - by including sources directly

Post by Spaddlewit »

The issue was that the files were added as 'blue folders' when I dragged & dropped them - I guess in this sense, XCode treats them like resources and doesn't compile them. I had to manually create yellow 'Group' folders and add the files individually to each. Now it works!