cmake errors, cant find bullet root?

1,153 views
Skip to first unread message

flintFred

unread,
Mar 15, 2012, 10:39:38 AM3/15/12
to osgbullet-users
trying to build osgbullet, cmake is displaying errors:

what are the needed enviroment vars? or anything else?

cheers.


Could NOT find Bullet (missing: BULLET_DYNAMICS_LIBRARY
BULLET_COLLISION_LIBRARY BULLET_MATH_LIBRARY BULLET_SOFTBODY_LIBRARY
BULLET_INCLUDE_DIR)
CMake Error: The following variables are used in this project, but
they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
BULLET_COLLISION_LIBRARY (ADVANCED)
linked by target "collision" in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/collision
linked by target "osgbCollision" in directory E:/Cloud/lib/
osgBullet_02_00_00/src/osgbCollision
BULLET_INCLUDE_DIR (ADVANCED)
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/applications
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/applications/osgbpp
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/basicdemo
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/centerofmass
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/collision
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/dice
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/handphysics
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/hinge
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/multithreaded
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/slider
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/saverestore
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/data
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/src/osgbCollision
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/src/osgbDynamics
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/src/osgbInteraction
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/src/plugins
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/src/plugins/osgdb_osgbDynamics
used as include directory in directory E:/Cloud/lib/
osgBullet_02_00_00/src/plugins/osgdb_sgb
BULLET_MATH_LIBRARY (ADVANCED)
linked by target "collision" in directory E:/Cloud/lib/
osgBullet_02_00_00/examples/collision
linked by target "osgbCollision" in directory E:/Cloud/lib/
osgBullet_02_00_00/src/osgbCollision

Paul Martz

unread,
Mar 15, 2012, 10:47:19 AM3/15/12
to osgbull...@googlegroups.com
I'm assuming you got past your osgWorks build issue?

For info on finding Bullet, see the wiki:
http://code.google.com/p/osgbullet/wiki/BuildingOsgBullet#Finding_the_OSG_and_Bullet_Dependencies

Updates would be appreciated, if you find any info is out of date.
-Paul

flintFred

unread,
Mar 15, 2012, 11:00:20 AM3/15/12
to osgbullet-users


On Mar 15, 2:47 pm, Paul Martz <pma...@skew-matrix.com> wrote:
> I'm assuming you got past your osgWorks build issue?
>
> For info on finding Bullet, see the wiki:http://code.google.com/p/osgbullet/wiki/BuildingOsgBullet#Finding_the...
>
> Updates would be appreciated, if you find any info is out of date.
>     -Paul
>
> On 3/15/2012 8:39 AM, flintFred wrote:
>
>
>
>
>

yes osgWorks now build fine.

if i manually set the bullet lib and include directorys within cmake,
then when i come to visual studio i get errors with the bullet
headers,

#include <somebulletheader>
if i change the include to #include "somebulletheader" (change <> to
""'s)
then it will compile, but theres a lot of headers to change.

So im guessing its all about environment vars.

I have BULLET_ROOT and BULLET_HOME and BULLET_INCLUDE_DIR set within
my enviroment vars.

anything else?

Paul Martz

unread,
Mar 15, 2012, 11:29:41 AM3/15/12
to osgbull...@googlegroups.com
If you think you need to change the source code just to get it to compile,
please look for another solution. osgBullet builds fine as it is for several
users on all three major platforms.

The FindBullet.cmake script that comes with CMake (which osgBullet uses) is
usually in a location like this on Windows:
C:\Program Files\CMake 2.8\share\cmake-2.8\Modules\FindBullet.cmake
I do believe it supports environment variables to help find Bullet.

In that script, you can see that it sets BULLET_INCLUDE_DIR to the directory
that contains the file btBulletCollisionCommon.h. osgBullet's CMake script just
adds ${BULLET_INCLUDE_DIR} to the list of directories to search for header
files. So, osgBullet source might have something like this:
#include <BulletCollision/CollisionDispatch/btCollisionObject.h>
I believe this is correct because BulletCollision is a subdirectory of the
directory that contains btBulletCollisionCommon.h.

Does that help?
-Paul

flintFred

unread,
Mar 15, 2012, 3:31:31 PM3/15/12
to osgbullet-users
Thanks.

I managed to get osgBullet to compile, I manual added the bullet lib
and headers.
I was adding C:\Program Files (x86)\BULLET_PHYSICS\include when it
should be C:\Program Files (x86)\BULLET_PHYSICS\include\bullet

It works, that will do , am happy now.

Thanks Paul.
Reply all
Reply to author
Forward
0 new messages