what exactly to include

User avatar
shotgunnutter
Posts: 17
Joined: Thu Nov 01, 2007 2:13 am

what exactly to include

Post by shotgunnutter »

Hi,

I've sucessfully compiled the OSX package using Cmake and finished it with Xcode. The demos work. Now, i want to add this to an existing project but am unsure of what to include. According to the user manual i need the bullet /src folder. However, there are quite a lot of files in there. Here is a directory listing of the /src folder

Code: Select all

total 40k
-rwxr-xr-x   1 shotgunn shotgunn     6.9k Oct 21  2007 Bullet-C-Api.h
drwxr-xr-x  15 shotgunn shotgunn      510 Apr 26 23:46 BulletCollision
drwxr-xr-x  13 shotgunn shotgunn      442 Apr 26 23:46 BulletDynamics
drwxr-xr-x  24 shotgunn shotgunn      816 Apr 26 23:46 BulletSoftBody
drwxr-xr-x   2 shotgunn shotgunn       68 Apr 26 13:39 CMakeFiles
-rwxr-xr-x   1 shotgunn shotgunn       68 Apr 11 11:41 CMakeLists.txt
-rwxr-xr-x   1 shotgunn shotgunn      190 Apr 11 11:41 Jamfile
drwxr-xr-x  37 shotgunn shotgunn     1.2k Apr 26 23:46 LinearMath
-rwxr-xr-x   1 shotgunn shotgunn     9.9k Dec 15  2006 Makefile.am
-rwxr-xr-x   1 shotgunn shotgunn     3.2k Mar 15 21:30 btBulletCollisionCommon.h
-rwxr-xr-x   1 shotgunn shotgunn     2.1k Apr  4 18:06 btBulletDynamicsCommon.h
-rw-r--r--   1 shotgunn shotgunn     1.5k Apr 26 13:39 cmake_install.cmake
drwxr-xr-x   3 shotgunn shotgunn      102 Apr 14 01:03 ibmsdk
/Users/shotgunnutter/Downloads/programming/bullet-2.68/src
Should I make a copy of this folder and delete the jamfile and cmake info? what would the correct directory structure look like? I want to create a folder of only the required libs and source files.

Thanks.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: what exactly to include

Post by Erwin Coumans »

Should I make a copy of this folder and delete the jamfile and cmake info?
Yes, you need at least files from the Bullet/src folder. It is up to you to remove anything from there (feel free to removed build files if you have your own).

You should keep the directory structure from Bullet/src intact.

Dependencies are BulletSoftBody -> BulletDynamics -> BulletCollision -> LinearMath.

So if you only want collision detection, you can delete the BulletDynamics and BulletSoftBody folders. If you only need rigid body dynamics (no soft), just delete BulletSoftBody.
Hope this helps,
Erwin
User avatar
shotgunnutter
Posts: 17
Joined: Thu Nov 01, 2007 2:13 am

Re: what exactly to include

Post by shotgunnutter »

Thats great, I've made a copy, and left the directory structure intact and stripped out all the remains of cmake make jam etc.

Thanks for the advice.