Linking problem if BenchmarkDemo disabled

elLolo
Posts: 14
Joined: Thu Dec 11, 2008 2:18 pm

Linking problem if BenchmarkDemo disabled

Post by elLolo »

Hi!

On Fedora 13 - 64 bits, I can't link the AppAllBulletDemos executable of Bullet from SVN (since a few weeks to be honest) if USE_GRAPHICAL_BENCHMARK is not defined:

Code: Select all

Linking CXX executable AppAllBulletDemos
cd /local/laguerre/Prog/Bullet/Demos/AllBulletDemos && /usr/bin/cmake -E cmake_link_script CMakeFiles/AppAllBulletDemos.dir/link.txt --verbose=1
/usr/bin/c++   -fPIC -O3 -DNDEBUG  -pthread -lGLEW CMakeFiles/AppAllBulletDemos.dir/Main.o CMakeFiles/AppAllBulletDemos.dir/DemoEntries.o CMakeFiles/AppAllBulletDemos.dir/__/CcdPhysicsDemo/CcdPhysicsDemo.o CMakeFiles/AppAllBulletDemos.dir/__/BasicDemo/BasicDemo.o CMakeFiles/AppAllBulletDemos.dir/__/BspDemo/BspDemo.o CMakeFiles/AppAllBulletDemos.dir/__/BspDemo/BspConverter.o CMakeFiles/AppAllBulletDemos.dir/__/BspDemo/BspLoader.o CMakeFiles/AppAllBulletDemos.dir/__/DynamicControlDemo/MotorDemo.o CMakeFiles/AppAllBulletDemos.dir/__/ConcaveDemo/ConcavePhysicsDemo.o CMakeFiles/AppAllBulletDemos.dir/__/ConcaveRaycastDemo/ConcaveRaycastDemo.o CMakeFiles/AppAllBulletDemos.dir/__/ConcaveConvexcastDemo/ConcaveConvexcastDemo.o CMakeFiles/AppAllBulletDemos.dir/__/ConvexDecompositionDemo/ConvexDecompositionDemo.o CMakeFiles/AppAllBulletDemos.dir/__/SliderConstraintDemo/SliderConstraintDemo.o CMakeFiles/AppAllBulletDemos.dir/__/RagdollDemo/RagdollDemo.o CMakeFiles/AppAllBulletDemos.dir/__/GimpactTestDemo/GimpactTestDemo.o CMakeFiles/AppAllBulletDemos.dir/__/Raytracer/Raytracer.o CMakeFiles/AppAllBulletDemos.dir/__/GjkConvexCastDemo/LinearConvexCastDemo.o CMakeFiles/AppAllBulletDemos.dir/__/ForkLiftDemo/ForkLiftDemo.o CMakeFiles/AppAllBulletDemos.dir/__/SoftDemo/SoftDemo.o CMakeFiles/AppAllBulletDemos.dir/__/ConstraintDemo/ConstraintDemo.o CMakeFiles/AppAllBulletDemos.dir/__/Benchmarks/BenchmarkDemo.o CMakeFiles/AppAllBulletDemos.dir/__/Box2dDemo/Box2dDemo.o  -o AppAllBulletDemos -rdynamic ../../Extras/glui/libGLUI.a ../../Extras/GIMPACTUtils/libGIMPACTUtils.a ../../Extras/ConvexDecomposition/libConvexDecomposition.a ../../src/BulletMultiThreaded/libBulletMultiThreaded.a ../OpenGL/libOpenGLSupport.a ../../Extras/Serialize/BulletWorldImporter/libBulletWorldImporter.a ../../src/BulletSoftBody/libBulletSoftBody.a ../../src/BulletDynamics/libBulletDynamics.a ../../src/BulletCollision/libBulletCollision.a ../../Extras/Serialize/BulletFileLoader/libBulletFileLoader.a ../../src/LinearMath/libLinearMath.a -lglut -lGL -lGLU 
../OpenGL/libOpenGLSupport.a(DemoApplication.o): In function `DemoApplication::localCreateRigidBody(float, btTransform const&, btCollisionShape*)':
DemoApplication.cpp:(.text+0xa40): multiple definition of `DemoApplication::localCreateRigidBody(float, btTransform const&, btCollisionShape*)'
CMakeFiles/AppAllBulletDemos.dir/__/Benchmarks/BenchmarkDemo.o:BenchmarkDemo.cpp:(.text+0x300): first defined here
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [Demos/AllBulletDemos/AppAllBulletDemos] Erreur 1
make[2]: quittant le répertoire « /local/laguerre/Prog/Bullet »
if I define USE_GRAPHICAL_BENCHMARK through CMake, it's ok.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Linking problem if BenchmarkDemo disabled

Post by Erwin Coumans »

We will try to sort out those build issues for the upcoming Bullet 2.77 release.

I added your feedback to this issue: http://code.google.com/p/bullet/issues/detail?id=421
Thanks for the feedback,
Erwin
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Linking problem if BenchmarkDemo disabled

Post by Erwin Coumans »

The benchmark demo has been removed from 'AllBulletDemos' in latest trunk, so there should be no problem anymore.

Thanks,
Erwin