Skip to content

Cannot compile on Mac OS X #8

Description

@thomasleese

I can't seem to get this to compile on Mac OS X (10.11). At the linking stage, I get this:

[100%] Linking CXX executable BulletTester
Undefined symbols for architecture x86_64:
  "btAngularLimit::set(double, double, double, double, double)", referenced from:
      btHingeConstraint::setLimit(double, double, double, double, double) in bulletWorld.cpp.o
  "btRaycastVehicle::applyEngineForce(double, int)", referenced from:
      BulletWorld::CommandRaycastVehicle(double, double, double) in bulletWorld.cpp.o
  "btRaycastVehicle::setSteeringValue(double, int)", referenced from:
      BulletWorld::CommandRaycastVehicle(double, double, double) in bulletWorld.cpp.o
  "btRaycastVehicle::addWheel(btVector3 const&, btVector3 const&, btVector3 const&, double, double, btRaycastVehicle::btVehicleTuning const&, bool)", referenced from:
      bullet_vehicle::bullet_vehicle(double*, double*, double*, btDynamicsWorld*) in bulletWorld.cpp.o
  "btStaticPlaneShape::btStaticPlaneShape(btVector3 const&, double)", referenced from:
      bullet_heightmap::bullet_heightmap(int, int, double, double, double, double*, double*, double*, double*) in bulletWorld.cpp.o
  "btTriangleIndexVertexArray::btTriangleIndexVertexArray(int, int*, int, int, double*, int)", referenced from:
      bullet_heightmap::bullet_heightmap(int, int, double, double, double, double*, double*, double*, double*) in bulletWorld.cpp.o
  "btGeneric6DofSpring2Constraint::setDamping(int, double, bool)", referenced from:
      BulletWorld::Hinge2(double, double, double*, double*, double*, double, double, double) in bulletWorld.cpp.o
  "btGeneric6DofSpring2Constraint::setStiffness(int, double, bool)", referenced from:
      BulletWorld::Hinge2(double, double, double*, double*, double*, double, double, double) in bulletWorld.cpp.o
  "_glutMainLoopEvent", referenced from:
      BulletWorld::StepGUI() in bulletWorld.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [BulletTester] Error 1
make[1]: *** [CMakeFiles/BulletTester.dir/all] Error 2
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions