Problem installing on Linux

Furix64
Posts: 9
Joined: Thu Feb 12, 2009 8:57 am

Problem installing on Linux

Post by Furix64 »

Hello,

I need to install Bullet on Ubuntu 8.10 (arch : 64bits), but I have error.

I have download this version : bullet-2.73-sp1.tgz
I un-tar this.
I make the processes of installation describe here :
http://www.bulletphysics.com/mediawiki- ... stallation

And i have errors :

- for cmake, after "cmake .", "make" or "make all" don't find makefile or target

- for jam, after : "./autogen.sh", this :

Code: Select all

./autogen.sh: 13: aclocal: not found
An error occured, autogen.sh stopping.
Maybe install is not necessary for using functionality of Bullet. If I paste the directory "src/" in my project, and if i include the librairy (by #include "src/btBulletDynamicsCommon.h") maybe my project can run ?

Thanks for your help.


ps : sory for my bad english I'am french students
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway

Re: Problem installing on Linux

Post by ola »

Are you sure cmake and/or jam is installed on your system?

To install them and some other packages you might need, type

sudo apt-get update
sudo apt-get install cmake jam autoconf automake

Jam is in the "universe" Ubuntu repository, so make sure that you have that enabled (see package management in your administration menu).

You need to compile Bullet to get the libraries built, otherwise you won't be able to link to them when building your project.

Hope this helps,
Ola
Furix64
Posts: 9
Joined: Thu Feb 12, 2009 8:57 am

Re: Problem installing on Linux

Post by Furix64 »

Thanks for your help.

I have already install cmake or jam, but never used on a project. "universe" Ubuntu repository is configured.

When i make : sudo apt-get install cmake jam autoconf automake,
the result is : 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
(I suppose it is installed)

My System is update (with sudo apt-get update).

I have restart the process with cmake, and jam and i have the same error.

With cmake :

Code: Select all

xxx@xxx:~/.../bullet-2.73$ cmake .
OPENGL NOT FOUND
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
(a lot of lines)
xxx@xxx:~/.../bullet-2.73$ make
make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt.
With jam :

Code: Select all

xxx@xxx:~/.../bullet-2.73$ ./autogen.sh
running aclocal
running libtool
./autogen.sh: 23: libtoolize: not found
libtool not found. trying glibtool.
./autogen.sh: 31: glibtoolize: not found
An error occured, autogen.sh stopping.
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway

Re: Problem installing on Linux

Post by ola »

For the jam config, seems you're missing some more packages.

Libtool can be installed with
sudo apt-get install libtool

For the other, missing OpenGL, have you done any other opengl development on this computer already, or is it a fresh install?

If no, you could try
sudo apt-get install libgl1-mesa-dev

That will install mesa including development files (headers, etc.) which will give you at least software-based rendering.

In general, you can start the synaptic package manager (sudo synaptic) to search for packages that you need.

Best regards,
Ola
Furix64
Posts: 9
Joined: Thu Feb 12, 2009 8:57 am

Re: Problem installing on Linux

Post by Furix64 »

Hello,

Thanks for your help, I think I progress, but I have little problem.

I have install libtool and libgl1-mesa-dev.

Now when i make ./autogen.sh, I have :

Code: Select all

xxx@xxx:~/.../bullet-2.73$ ./autogen.sh
running aclocal
running libtool
libtool worked.
running automake
configure.ac:14: installing `./config.guess'
configure.ac:14: installing `./config.sub'
Extras/Makefile.am:81: compiling `c14n.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'
running autoheader
running autoconf
autogen.sh complete
I think is good, after i make ./configure :

Code: Select all

xxx@xxx:~/.../bullet-2.73$ ./configure
(...lot of lines...)
configure:
You can type 'make' or 'jam' to build Bullet.
Alternatively, you can use cmake or use the wksbullet.sln visual studio x solutions in the msvc/x folder.

CMake home:http://cmake.org
Jam home: http://www.perforce.com/jam/jam.html
Jam source: ftp://ftp.perforce.com/jam/

Please type 'make' to build Bullet
So I make jam, he take 5-6minuts, and I have :

Code: Select all

xxx@xxx:~/.../bullet-2.73$ jam
(...lot of lines...)
...failed C++ ./out/linux/optimize/Demos/SoftDemo/main.o ...
...skipped SoftBodyDemo for lack of <Demos!SoftDemo!>SoftDemo.o...
...failed updating 19 target(s)...
...skipped 8 target(s)...
...updated 440 target(s)...
I suppose is not very good, also I have not the static library install here : /usr/local/include/bullet.


I have two questions :
  • How I know how package I need for installing Bullet ?
    Can I compile "/bullet-2.73/src/" with a IDE (ex.: Eclipse and plugin CDT), and develop my application in this project (same method to Windows with MSVC) ?
Furix64
Posts: 9
Joined: Thu Feb 12, 2009 8:57 am

Re: Problem installing on Linux

Post by Furix64 »

Hello every body,

I have change the method of the installation :
  • I created a new project with Eclipse, named : Bullet,
    I pasted all the directories of Bullet source in my project,
    in the console of the Eclipse's project, I made this: ./autogen.sh and ./configure,
    I refreshed the project,
    I compiled it.
So now I have some errors, it is a file witch is not found, the line bug is:

Code: Select all

#include <GL/glut.h>
If someone uses Bullet on linux can help me, it would be fine...

Thanks.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Problem installing on Linux

Post by Erwin Coumans »

You need a glut implementation, for example freeglut. You can try:

Code: Select all

sudo apt-get install freeglut3-dev
You should be able to compile the Bullet demos using CMake. Please try to use

Code: Select all

cmake . -G "Unix Makefiles"
make
Can you try this in the Bullet top directory?
Hope this helps,
Erwin
Furix64
Posts: 9
Joined: Thu Feb 12, 2009 8:57 am

Re: Problem installing on Linux

Post by Furix64 »

Very thanks for your help !

I have installed freeglut and now I can compile successfully Bullet with cmake.

I can compile him on Eclipse too.

If you have time, you can ask me where I can see which packages I need ?

Thanks to ola I have installed: autoconf, automake, libtool, libgl1-mesa-dev.
Thanks to you I have installed: freeglut3-dev.