Erwin Coumans wrote:Code: Select all
Is this an oversight, or is there some reason it shouldn't be in there?
Installing Bullet system wide (using shared libraries or frameworks) is not actively supported, so it relies on people contributing.
If you have a patch, can you consider sharing it through the issue tracker?
https://code.google.com/p/bullet/issues/list
For most users, it is recommended to simply add the Bullet source code files to your project and build and link it statically, along with other C++ source code files.
OK Thanks. I have also been trying to add the source files instead, and am having some issues compiling. That may be my lack of Xcode experience however. I thought I'd finally got most of them solved, but am getting some "Undefined symbols for architecture x86_64:" errors such as
Code: Select all
"_maxdot_large(float const*, float const*, unsigned long, float*)", referenced from:
__ZL17FindMaxSeparationPiPK12btBox2dShapeRK11btTransformS2_S5_ in btBox2dBox2dCollisionAlgorithm.o
btConvexHullShape::localGetSupportingVertexWithoutMargin(btVector3 const&) const in btConvexHullShape.o
btConvexHullShape::batchedUnitVectorGetSupportingVertexWithoutMargin(btVector3 const*, btVector3*, int) const in btConvexHullShape.o
btConvexPointCloudShape::localGetSupportingVertexWithoutMargin(btVector3 const&) const in btConvexPointCloudShape.o
btConvexPointCloudShape::batchedUnitVectorGetSupportingVertexWithoutMargin(btVector3 const*, btVector3*, int) const in btConvexPointCloudShape.o
__ZL17convexHullSupportRK9btVector3PS0_iS1_ in btConvexShape.o
btMultiSphereShape::localGetSupportingVertexWithoutMargin(btVector3 const&) const in btMultiSphereShape.o
...
"_mindot_large(float const*, float const*, unsigned long, float*)", referenced from:
__ZL14EdgeSeparationPK12btBox2dShapeRK11btTransformiS1_S4_ in btBox2dBox2dCollisionAlgorithm.o
"btAlignedFreeInternal(void*)", referenced from:
setupRigidBody(S3DX::AIVariable, float, btCollisionShape*, S3DX::AIVariable) in sbPhysics.o
Callback_sbPhysics_createShape2D(int, S3DX::AIVariable const*, S3DX::AIVariable*) in sbPhysics.o
Callback_sbPhysics_addHinge(int, S3DX::AIVariable const*, S3DX::AIVariable*) in sbPhysics.o
Callback_sbPhysics_addPivot(int, S3DX::AIVariable const*, S3DX::AIVariable*) in sbPhysics.o
Callback_sbPhysics_createCapsule(int, S3DX::AIVariable const*, S3DX::AIVariable*) in sbPhysics.o
Callback_sbPhysics_createCylinder(int, S3DX::AIVariable const*, S3DX::AIVariable*) in sbPhysics.o
Callback_sbPhysics_createBox2D(int, S3DX::AIVariable const*, S3DX::AIVariable*) in sbPhysics.o
and about 15 other similar errors. I'll keep working on it, but is this anything obvious?
*EDIT*
Well I got it to compile by changing the Mach-O type to "Static Library". Whether that means it actually works or not, I'm not sure.