why bullet take install in local repo ubuntu!!!!!!!

Post Reply
curoro
Posts: 9
Joined: Mon Jul 25, 2011 1:21 am

why bullet take install in local repo ubuntu!!!!!!!

Post by curoro »

q1:i've installed bullet with make install in ubuntu but the destination of installer take local repo"usr/local" instead of "usr".
where i compile new project , give me " error: btBulletDynamicsCommon.h: No such file or directory ", but bullet is already installed!!!!!!! :!: :!: :!:
q2:How to make the bullet folder within my program folder????? :? :? :?
User avatar
godlike
Posts: 20
Joined: Fri Feb 19, 2010 7:09 pm
Contact:

Re: why bullet take install in local repo ubuntu!!!!!!!

Post by godlike »

Your first question gives me an opportunity to address an issue that bullet has. Internally the bullet itself includes its own headers like:

Code: Select all

#include "btBulletDynamicsCommon.h"
In order to use the library in your application you have to add an extra include path. This path is the one that contains the bullet headers. Other libraries traditionally dont have that restriction because internally they use something like this:

Code: Select all

#include "bullet/btBulletDynamicsCommon.h"
Maybe Erwin should change the structure of the library a little bit:
  • Add a "bullet/" in every include
  • Rename the src directory to bullet so it can be compiled
  • Change the CMakeLists.txt a little bit
curoro
Posts: 9
Joined: Mon Jul 25, 2011 1:21 am

Re: why bullet take install in local repo ubuntu!!!!!!!

Post by curoro »

there are a folder named "local" in "usr" folder.
bullet tak install here "usr/local/lib" , "usr/local/include" instead "usr/include" & "usr/lib".
User avatar
godlike
Posts: 20
Joined: Fri Feb 19, 2010 7:09 pm
Contact:

Re: why bullet take install in local repo ubuntu!!!!!!!

Post by godlike »

curoro wrote:there are a folder named "local" in "usr" folder.
bullet tak install here "usr/local/lib" , "usr/local/include" instead "usr/include" & "usr/lib".
If you are using cmake just override the CMAKE_INSTALL_PREFIX option

Code: Select all

cmake -DCMAKE_INSTALL_PREFIX=/usr path/to/bullet/trunk
If you are using autof*ck... sorry autotools

Code: Select all

./configure --prefix=/usr
Haven't tested them to tell you for sure but Im pretty sure the work ok
curoro
Posts: 9
Joined: Mon Jul 25, 2011 1:21 am

Re: why bullet take install in local repo ubuntu!!!!!!!

Post by curoro »

thank's, now it fine with:

Code: Select all

sudo make install usr
Post Reply