Page 1 of 1

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

Posted: Fri Oct 14, 2011 11:27 am
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????? :? :? :?

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

Posted: Fri Oct 14, 2011 1:17 pm
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

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

Posted: Fri Oct 14, 2011 2:05 pm
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".

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

Posted: Fri Oct 14, 2011 2:43 pm
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

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

Posted: Sat Oct 15, 2011 7:35 am
by curoro
thank's, now it fine with:

Code: Select all

sudo make install usr