error at the compilation of GyroscopicDemo

Post Reply
nicoo
Posts: 7
Joined: Wed Apr 01, 2015 4:07 pm

error at the compilation of GyroscopicDemo

Post by nicoo »

hi,

I just have discovered bullet, I just svned it, and compiled it. I got this error :

Code: Select all

[ 83%] Building CXX object Demos/GyroscopicDemo/CMakeFiles/AppGyroscopicDemo.dir/GyroscopicDemo.o
/mnt/bullet3.git/trunk/Demos/GyroscopicDemo/GyroscopicDemo.cpp: In member function 'virtual void GyroscopicDemo::initPhysics()':
/mnt/bullet3.git/trunk/Demos/GyroscopicDemo/GyroscopicDemo.cpp:110:19: error: 'BT_ENABLE_GYROPSCOPIC_FORCE' was not declared in this scope
    body->setFlags(BT_ENABLE_GYROPSCOPIC_FORCE);
                   ^
Demos/GyroscopicDemo/CMakeFiles/AppGyroscopicDemo.dir/build.make:54: recipe for target 'Demos/GyroscopicDemo/CMakeFiles/AppGyroscopicDemo.dir/GyroscopicDemo.o' failed
make[2]: *** [Demos/GyroscopicDemo/CMakeFiles/AppGyroscopicDemo.dir/GyroscopicDemo.o] Error 1
CMakeFiles/Makefile2:1236: recipe for target 'Demos/GyroscopicDemo/CMakeFiles/AppGyroscopicDemo.dir/all' failed
make[1]: *** [Demos/GyroscopicDemo/CMakeFiles/AppGyroscopicDemo.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
I solved it, by adding BT_ENABLE_GYROPSCOPIC_FORCE = 1 to src/BulletDynamics/Dynamics/btRigidBody.h

then everything compiled.

plz, tell me if I mess with something or if I did good.

here my cmake settings :

Code: Select all

 BUILD_BULLET2_DEMOS              ON                                           
 BUILD_BULLET3                    OFF                                          
 BUILD_CPU_DEMOS                  ON                                           
 BUILD_EXTRAS                     ON                                           
 BUILD_OPENGL3_DEMOS              OFF                                          
 BUILD_SHARED_LIBS                OFF                                          
 BUILD_UNIT_TESTS                 ON                                           
 CMAKE_BACKWARDS_COMPATIBILITY    2.4                                          
 CMAKE_BUILD_TYPE                                                              
 CMAKE_INSTALL_PREFIX             /usr                                         
 EXECUTABLE_OUTPUT_PATH                                                        
 INCLUDE_INSTALL_DIR              include/bullet                               
 INSTALL_EXTRA_LIBS               OFF                                          
 INSTALL_LIBS                     ON                                           
 INTERNAL_UPDATE_SERIALIZATION_   OFF                                          
 LIBRARY_OUTPUT_PATH                                                           
 LIB_DESTINATION                  lib                                          
 LIB_SUFFIX                                                                    
 PKGCONFIG_INSTALL_PREFIX         lib/pkgconfig/                               
 USE_CUSTOM_VECTOR_MATH           OFF                                          
 USE_DOUBLE_PRECISION             ON                                           
 USE_GLUT                         ON                                           
 USE_GRAPHICAL_BENCHMARK          ON                                           
 USE_MSVC_INCREMENTAL_LINKING     OFF                                          
 USE_MSVC_RUNTIME_LIBRARY_DLL     OFF 
note : I got this question during the registration process : « What is the dot product of (4, -1, 0) and (5, 3, 20) times the number of toes on my right foot? »
I'm curious who my is in the last question, because if it's you, I can't know how many toes you have, I can't even know if you still have you right foot. If It's me, you can't know how many I have...
I was locked a while on this, I ask wolfram alpha, I googled the question, no answer... so I made the guess it's five
In the way to solve this problem, put a picture of the actual foot, thank you!
nicoo
Posts: 7
Joined: Wed Apr 01, 2015 4:07 pm

Re: error at the compilation of GyroscopicDemo

Post by nicoo »

*bump*
Post Reply