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?????
why bullet take install in local repo ubuntu!!!!!!!
-
- Posts: 9
- Joined: Mon Jul 25, 2011 1:21 am
-
- Posts: 20
- Joined: Fri Feb 19, 2010 7:09 pm
Re: why bullet take install in local repo ubuntu!!!!!!!
Your first question gives me an opportunity to address an issue that bullet has. Internally the bullet itself includes its own headers like:
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:
Maybe Erwin should change the structure of the library a little bit:
Code: Select all
#include "btBulletDynamicsCommon.h"
Code: Select all
#include "bullet/btBulletDynamicsCommon.h"
- Add a "bullet/" in every include
- Rename the src directory to bullet so it can be compiled
- Change the CMakeLists.txt a little bit
-
- Posts: 9
- Joined: Mon Jul 25, 2011 1:21 am
Re: why bullet take install in local repo ubuntu!!!!!!!
there are a folder named "local" in "usr" folder.
bullet tak install here "usr/local/lib" , "usr/local/include" instead "usr/include" & "usr/lib".
bullet tak install here "usr/local/lib" , "usr/local/include" instead "usr/include" & "usr/lib".
-
- Posts: 20
- Joined: Fri Feb 19, 2010 7:09 pm
Re: why bullet take install in local repo ubuntu!!!!!!!
If you are using cmake just override the CMAKE_INSTALL_PREFIX optioncuroro 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".
Code: Select all
cmake -DCMAKE_INSTALL_PREFIX=/usr path/to/bullet/trunk
Code: Select all
./configure --prefix=/usr
-
- Posts: 9
- Joined: Mon Jul 25, 2011 1:21 am
Re: why bullet take install in local repo ubuntu!!!!!!!
thank's, now it fine with:
Code: Select all
sudo make install usr