IreneLing
05-03-2014 03:00:39
I followed this thread http://www.ogre3d.org/addonforums/viewtopic.php?f=12&t=13000(Thanks to the author) to install bullet and OgreBullet (expect that I didn't change the path)
And now I have bullet folder and OgreBullet folder under /usr/local/include. , and also /usr/include.
Before I install OgreBulletwhen I try to compile it keeps show error that xxx.h not found , and after that I found someone suggested that move files inside the 'bullet' folder under /usr/local/include , and it solves the problem,but now it's OgreBullet's turn,not sure if any mistake is made.
From the OgreBullet Tutorial 1, OgreBulletDynamicsRigidBody is included,and I also added two paths :
/usr/local/include/OgreBullet/Collisions
/usr/local/include/OgreBullet/Dynamics
under "Paths & Symbol".
The CMakeFile: (not sure how to add the directory path)
Console:
Is there anything wrong with my code or paths? I did restart,rebuild everything but still the same.
Thank you.
And now I have bullet folder and OgreBullet folder under /usr/local/include. , and also /usr/include.
Before I install OgreBulletwhen I try to compile it keeps show error that xxx.h not found , and after that I found someone suggested that move files inside the 'bullet' folder under /usr/local/include , and it solves the problem,but now it's OgreBullet's turn,not sure if any mistake is made.
From the OgreBullet Tutorial 1, OgreBulletDynamicsRigidBody is included,and I also added two paths :
/usr/local/include/OgreBullet/Collisions
/usr/local/include/OgreBullet/Dynamics
under "Paths & Symbol".
#include "ExampleApplication.h"
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#include "../res/resource.h"
#endif
#include "OgreBulletDynamicsRigidBody.h" // for OgreBullet
#include "Shapes/OgreBulletCollisionsStaticPlaneShape.h" // for static planes
#include "Shapes/OgreBulletCollisionsBoxShape.h" // for Boxes
The CMakeFile: (not sure how to add the directory path)
set(HDRS
./ExampleApplication.h
./OgreBullet_Collision_test.h
)
set(SRCS
./OgreBullet_Collision_test.cpp
)
include_directories( ${OIS_INCLUDE_DIRS}
${OGRE_INCLUDE_DIRS}
${OGRE_SAMPLES_INCLUDEPATH}
)
Console:
11:14:18 **** Incremental Build of configuration Default for project ogre ****
make all
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line
/home/emc/ogre/clean_ogre/CMakeLists.txt:29 (if)
closes on the line
/home/emc/ogre/clean_ogre/CMakeLists.txt:41 (endif)
-- Looking for OGRE...
with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Ogre Byatis (1.8.1)
-- Found OGRE: optimized;/usr/local/lib/libOgreMain.so;debug;/usr/local/lib/libOgreMain.so
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/local/lib/libOgrePaging.so;debug;/usr/local/lib/libOgrePaging.so
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/local/lib/libOgreTerrain.so;debug;/usr/local/lib/libOgreTerrain.so
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/local/lib/libOgreProperty.so;debug;/usr/local/lib/libOgreProperty.so
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/local/lib/libOgreRTShaderSystem.so;debug;/usr/local/lib/libOgreRTShaderSystem.so
-- Looking for OIS...
-- Found OIS: optimized;/usr/lib/libOIS.so;debug;/usr/lib/libOIS.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/emc/ogre/ogretestbuild
[100%] Building CXX object CMakeFiles/OgreApp.dir/OgreBullet_Collision_test.cpp.o
In file included from /home/emc/ogre/clean_ogre/OgreBullet_Collision_test.cpp:1:0:
/home/emc/ogre/clean_ogre/OgreBullet_Collision_test.h:9:64: fatal error: OgreBulletDynamicsRigidBody.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/OgreApp.dir/OgreBullet_Collision_test.cpp.o] Error 1
make[1]: *** [CMakeFiles/OgreApp.dir/all] Error 2
make: *** [all] Error 2
11:14:21 Build Finished (took 2s.835ms)
Is there anything wrong with my code or paths? I did restart,rebuild everything but still the same.
Thank you.