Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Oct 14, 2011 11:27 am 
Offline

Joined: Mon Jul 25, 2011 1:21 am
Posts: 9
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????? :? :? :?


Top
 Profile  
 
PostPosted: Fri Oct 14, 2011 1:17 pm 
Offline
User avatar

Joined: Fri Feb 19, 2010 7:09 pm
Posts: 17
Your first question gives me an opportunity to address an issue that bullet has. Internally the bullet itself includes its own headers like:

Code:
#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:
#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


Top
 Profile  
 
PostPosted: Fri Oct 14, 2011 2:05 pm 
Offline

Joined: Mon Jul 25, 2011 1:21 am
Posts: 9
there are a folder named "local" in "usr" folder.
bullet tak install here "usr/local/lib" , "usr/local/include" instead "usr/include" & "usr/lib".


Top
 Profile  
 
PostPosted: Fri Oct 14, 2011 2:43 pm 
Offline
User avatar

Joined: Fri Feb 19, 2010 7:09 pm
Posts: 17
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:
cmake -DCMAKE_INSTALL_PREFIX=/usr path/to/bullet/trunk


If you are using autof*ck... sorry autotools

Code:
./configure --prefix=/usr


Haven't tested them to tell you for sure but Im pretty sure the work ok


Top
 Profile  
 
PostPosted: Sat Oct 15, 2011 7:35 am 
Offline

Joined: Mon Jul 25, 2011 1:21 am
Posts: 9
thank's, now it fine with:
Code:
sudo make install usr


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group