Error building bullet-2.75-beta1

mhack
Posts: 2
Joined: Tue May 19, 2009 3:44 pm

Error building bullet-2.75-beta1

Post by mhack »

Got a build error on my Macbook w/ Mac OS 10.5.7 for bullet-2.75-beta1. Version 2.74 built ok. Here is the error:
--------
lmx
mkdir .libs
g++ -I../../src -I../../Extras/GIMPACTUtils -I../../Extras/ConvexDecomposition -I../../Extras -I../../Demos/OpenGL -I../../Demos/SoftDemo -I../../Demos/Benchmarks -g -O2 -g -O2 -g -O2 -g -O2 -o .libs/AllBulletDemo AllBulletDemo-SoftDemo.o AllBulletDemo-BenchmarkDemo.o AllBulletDemo-ConstraintDemo.o AllBulletDemo-ForkLiftDemo.o AllBulletDemo-RagdollDemo.o AllBulletDemo-BasicDemo.o AllBulletDemo-CcdPhysicsDemo.o AllBulletDemo-SliderConstraintDemo.o AllBulletDemo-ConcaveRaycastDemo.o AllBulletDemo-Raytracer.o AllBulletDemo-BspDemo.o AllBulletDemo-BspLoader.o AllBulletDemo-BspConverter.o AllBulletDemo-ConcaveConvexcastDemo.o AllBulletDemo-ConvexDecompositionDemo.o AllBulletDemo-GimpactTestDemo.o AllBulletDemo-LinearConvexCastDemo.o AllBulletDemo-ConcavePhysicsDemo.o AllBulletDemo-MotorDemo.o AllBulletDemo-DemoEntries.o AllBulletDemo-Main.o -framework AGL -framework OpenGL -framework GLUT -Wl,-bind_at_load -L/Users/williamknight/swtools/game/bullet/bullet-2.75-beta1/Demos/OpenGL -lbulletopenglsupport -L/Users/williamknight/swtools/game/bullet/bullet-2.75-beta1/src -L/Users/williamknight/swtools/game/bullet/bullet-2.75-beta1/Extras -lgimpactutils -lconvexdecomposition /Users/williamknight/swtools/game/bullet/bullet-2.75-beta1/src/.libs/libbulletsoftbody.0.0.0.dylib /Users/williamknight/swtools/game/bullet/bullet-2.75-beta1/src/.libs/libbulletdynamics.0.0.0.dylib /Users/williamknight/swtools/game/bullet/bullet-2.75-beta1/src/.libs/libbulletcollision.0.0.0.dylib /Users/williamknight/swtools/game/bullet/bullet-2.75-beta1/src/.libs/libbulletmath.0.0.0.dylib -lglui -lmx
Undefined symbols:
"btGeneric6DofSpringConstraint::enableSpring(int, bool)", referenced from:
ConstraintDemo::initPhysics() in AllBulletDemo-ConstraintDemo.o
ConstraintDemo::initPhysics() in AllBulletDemo-ConstraintDemo.o
"btGeneric6DofSpringConstraint::setStiffness(int, float)", referenced from:
ConstraintDemo::initPhysics() in AllBulletDemo-ConstraintDemo.o
ConstraintDemo::initPhysics() in AllBulletDemo-ConstraintDemo.o
"btHinge2Constraint::btHinge2Constraint(btRigidBody&, btRigidBody&, btVector3&, btVector3&, btVector3&)", referenced from:
ConstraintDemo::initPhysics() in AllBulletDemo-ConstraintDemo.o
"btGeneric6DofSpringConstraint::btGeneric6DofSpringConstraint(btRigidBody&, btRigidBody&, btTransform const&, btTransform const&, bool)", referenced from:
ConstraintDemo::initPhysics() in AllBulletDemo-ConstraintDemo.o
"btUniversalConstraint::btUniversalConstraint(btRigidBody&, btRigidBody&, btVector3&, btVector3&, btVector3&)", referenced from:
ConstraintDemo::initPhysics() in AllBulletDemo-ConstraintDemo.o
"btGeneric6DofSpringConstraint::setEquilibriumPoint()", referenced from:
ConstraintDemo::initPhysics() in AllBulletDemo-ConstraintDemo.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [AllBulletDemo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
mhackslab:bullet-2.75-beta1 $
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Error building bullet-2.75-beta1

Post by Erwin Coumans »

Both CMake and jam should build fine on all platforms (and so do visual studio projectfiles on Windows).

Are you using autotools/automake (./autogen.sh, ./configure, make)? Autotools/make doesn't seem to be actively maintained. It is likely a matter of adding a few files to one of the Makefile.am files (check Bullet/src/BulletDynamics folder. The missing files seems to be from the constraint solver in ConstraintSolver.

If you get it to work, can you please submit a patch in the tracker?
Thanks,
Erwin
mhack
Posts: 2
Joined: Tue May 19, 2009 3:44 pm

Re: Error building bullet-2.75-beta1

Post by mhack »

At your suggestion, I looked for and added new files in Bullet/src/BulletDynamics to the src/Makefile.am and that fixed the problem. Patch is submitted in Issue 226 in the tracker.