Linux installation

Post Reply
arrevalk
Posts: 3
Joined: Fri Oct 15, 2010 9:41 am

Linux installation

Post by arrevalk »

There are some linux instalation issues with Bullet 2.77 source package.
I unpack source code, create a working directory. Start cmake-gui and configure source in my working dir.
Installation path is set /usr/local/lib for libraries and /usr/local/include/bullet for include files.
Then in working dir i issue make command, library is build without a error, all demos/libraries are build.
But when i do:
sudo make install
there is some trouble, libraries and headers arent copied to their instalation paths. Only one file is copied: /usr/local/lib/pkconf/bullet.pc. I had to copy them manualy.

Anyone knows why?
Last edited by arrevalk on Sat Oct 16, 2010 9:53 am, edited 1 time in total.
User avatar
gennoevus
Posts: 39
Joined: Sun Oct 10, 2010 4:39 am

Re: Linux installation

Post by gennoevus »

I wish I could download 2.77 and test it, but my net is too slow! (dial-up! in this day and age!! damn this stupid country I live in ...)

Is there any reason that you have to use that version? 2.75 compiled without any trouble on my machine - I'm running Ubuntu, lucid lynx. If I get access to a proper Internet connection again I'll test.

BTW what distro are you using?
arrevalk
Posts: 3
Joined: Fri Oct 15, 2010 9:41 am

Re: Linux installation

Post by arrevalk »

Well i wanted to try bullet, so i picked up newest source package from download area, will check if the same thing happens with 2.75.
gennoevus wrote:I'm running Ubuntu, lucid lynx.
Same here.

I did a test build of version 2.77 on Vista system, and everything went fine.
User avatar
sharavsambuu
Posts: 1
Joined: Mon Oct 25, 2010 8:27 pm
Location: Mongolia
Contact:

Re: Linux installation

Post by sharavsambuu »

hi. Here is my configuration on ubuntu.
open your terminal and go to bullet director then
$cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebugInfo . -G "Unix Makefiles"
$make
$sudo make install

now let's do test
// main.cpp
#include <btBulletDynamicsCommon.h>
int main()
{
return 0;
}

try to compile
sorry for my bad english.
$g++ -o main main.cpp -lBulletDynamics
if no error occurred, everything is fine

now lets run it
$./main
if your setup first time maybe it gives you following error
cannot open shared object file: No such file or directory bla bla bla

if so, let's fix it
$su
password: [u need ur root pass, if it's not configured you can do $sudo passwd root]
$echo "/usr/local/lib" >> /etc/ld.so.conf
$/sbin/ldconfig

done.
now let's run your compiled program again
$./main
it mustn't have error.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Linux installation

Post by Erwin Coumans »

Could you try the latest SVN trunk of http://code.google.com/p/bullet? There was some issue with install/dynamic libraries, that was fixed after Bullet 2.77 release.

In general, it is recommended not to 'install' Bullet system-wide but simply use static libraries as part of your program. That should work.
Thanks,
Erwin
arrevalk
Posts: 3
Joined: Fri Oct 15, 2010 9:41 am

Re: Linux installation

Post by arrevalk »

Well i will try to install latest sourcecode. I generaly dont install libraries system wide, because sometimes i use different versions of them (same goes to compilers). I tried to install them to /usr/lib because my normal install procedure didnt work, and i thought thats the issue.
Post Reply