mccdo/osgbullet

Problem with compiling

Opened this issue · 3 comments

/usr/local/lib/libBulletSoftBody.a(btSoftBody.o): In function `btSoftBody::updatePose() [clone .part.101]':
btSoftBody.cpp:(.text+0xb7be): undefined reference to `btPolarDecomposition::decompose(btMatrix3x3 const&, btMatrix3x3&, btMatrix3x3&) const'
btSoftBody.cpp:(.text+0xbb23): undefined reference to `btPolarDecomposition::DEFAULT_MAX_ITERATIONS'
btSoftBody.cpp:(.text+0xbb33): undefined reference to `btPolarDecomposition::DEFAULT_TOLERANCE'
btSoftBody.cpp:(.text+0xbb3c): undefined reference to `btPolarDecomposition::btPolarDecomposition(float, unsigned int)'
/usr/local/lib/libBulletSoftBody.a(btSoftBody.o): In function `btSoftBody::updateClusters()':
btSoftBody.cpp:(.text+0xc927): undefined reference to `btPolarDecomposition::decompose(btMatrix3x3 const&, btMatrix3x3&, btMatrix3x3&) const'
btSoftBody.cpp:(.text+0xd093): undefined reference to `btPolarDecomposition::DEFAULT_MAX_ITERATIONS'
btSoftBody.cpp:(.text+0xd0a3): undefined reference to `btPolarDecomposition::DEFAULT_TOLERANCE'
btSoftBody.cpp:(.text+0xd0ac): undefined reference to `btPolarDecomposition::btPolarDecomposition(float, unsigned int)'
/usr/local/lib/libBulletSoftBody.a(btSoftBodyRigidBodyCollisionConfiguration.o): In function `btSoftBodyRigidBodyCollisionConfiguration::~btSoftBodyRigidBodyCollisionConfiguration()':
btSoftBodyRigidBodyCollisionConfiguration.cpp:(.text+0xa4): undefined reference to `btDefaultCollisionConfiguration::~btDefaultCollisionConfiguration()'
/usr/local/lib/libBulletSoftBody.a(btSoftBodyRigidBodyCollisionConfiguration.o): In function `btSoftBodyRigidBodyCollisionConfiguration::btSoftBodyRigidBodyCollisionConfiguration(btDefaultCollisionConstructionInfo const&)':
btSoftBodyRigidBodyCollisionConfiguration.cpp:(.text+0xdb): undefined reference to `btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(btDefaultCollisionConstructionInfo const&)'
btSoftBodyRigidBodyCollisionConfiguration.cpp:(.text+0x292): undefined reference to `btDefaultCollisionConfiguration::~btDefaultCollisionConfiguration()'
/usr/local/lib/libBulletSoftBody.a(btSoftBodyRigidBodyCollisionConfiguration.o): In function `btSoftBodyRigidBodyCollisionConfiguration::~btSoftBodyRigidBodyCollisionConfiguration()':
btSoftBodyRigidBodyCollisionConfiguration.cpp:(.text+0x99): undefined reference to `btDefaultCollisionConfiguration::~btDefaultCollisionConfiguration()'
/usr/local/lib/libBulletSoftBody.a(btSoftBodyRigidBodyCollisionConfiguration.o): In function `btSoftBodyRigidBodyCollisionConfiguration::getCollisionAlgorithmCreateFunc(int, int)':
btSoftBodyRigidBodyCollisionConfiguration.cpp:(.text+0x2da): undefined reference to `btDefaultCollisionConfiguration::getCollisionAlgorithmCreateFunc(int, int)'
/usr/local/lib/libBulletSoftBody.a(btSoftBodyRigidBodyCollisionConfiguration.o):(.data.rel.ro._ZTI41btSoftBodyRigidBodyCollisionConfiguration[_ZTI41btSoftBodyRigidBodyCollisionConfiguration]+0x10): undefined reference to `typeinfo for btDefaultCollisionConfiguration'
/usr/local/lib/libBulletSoftBody.a(btSoftRigidCollisionAlgorithm.o): In function `btSoftRigidCollisionAlgorithm::btSoftRigidCollisionAlgorithm(btPersistentManifold*, btCollisionAlgorithmConstructionInfo const&, btCollisionObjectWrapper const*, btCollisionObjectWrapper const*, bool)':
btSoftRigidCollisionAlgorithm.cpp:(.text+0xd0): undefined reference to `btCollisionAlgorithm::btCollisionAlgorithm(btCollisionAlgorithmConstructionInfo const&)'
/usr/local/lib/libBulletSoftBody.a(btSoftSoftCollisionAlgorithm.o): In function `btSoftSoftCollisionAlgorithm::btSoftSoftCollisionAlgorithm(btPersistentManifold*, btCollisionAlgorithmConstructionInfo const&, btCollisionObjectWrapper const*, btCollisionObjectWrapper const*)':
btSoftSoftCollisionAlgorithm.cpp:(.text+0x68): undefined reference to `btCollisionAlgorithm::btCollisionAlgorithm(btCollisionAlgorithmConstructionInfo const&)'
/usr/local/lib/libBulletSoftBody.a(btSoftBodyConcaveCollisionAlgorithm.o): In function `btSoftBodyConcaveCollisionAlgorithm::btSoftBodyConcaveCollisionAlgorithm(btCollisionAlgorithmConstructionInfo const&, btCollisionObjectWrapper const*, btCollisionObjectWrapper const*, bool)':
btSoftBodyConcaveCollisionAlgorithm.cpp:(.text+0x1518): undefined reference to `btCollisionAlgorithm::btCollisionAlgorithm(btCollisionAlgorithmConstructionInfo const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/patch-lowlevel] Error 1
make[1]: *** [examples/patch-lowlevel/CMakeFiles/patch-lowlevel.dir/all] Error 2
make: *** [all] Error 2

What's wrong?

I have the same problem. What is the problem?
My bullet version is 2.84, the newest one.

The Bullet developers have made many incompatible API changes throughout the 2.8x releases, and unfortunately, osgBullet will not build against the latest Bullet release.

The most recent Bullet version that osgBullet is known to build against is the 2.80-r2531 "snapshot" release from Google Code:

https://storage.googleapis.com/google-code-archive-downloads/v1/code.google.com/bullet/bullet-2.80-rev2531.tgz

By turning off the OSGBULLET_BUILD_EXAMPLES flag will pass the compilation