Problem with Ubuntu

Eltran
Posts: 9
Joined: Sun Nov 25, 2007 5:50 pm

Problem with Ubuntu

Post by Eltran »

Hello, I try to compile bulletphysics under Ubuntu Gusty 7.10.
Everything works fine until I get this error when I run the program :
undefined symbol: _ZN11btRigidBodyC1EfP13btMotionStateP16btCollisionShapeRK9btVector3ffff"

Could you tell me please what should I do ?

Thanks.

Code: Select all

$(BINARY): $(OFILES)

	$(CC) $(LDFLAGS) -o $(BINARY) $(OFILES) -static -ltcl8.4 -lm -lOIS -L/usr/local/lib -lbulletdynamics -lbulletcollision -lbulletmath



.c.o:

	$(CC) $(CFLAGS) -c $*.c -o $*.o
chunky
Posts: 145
Joined: Tue Oct 30, 2007 9:23 pm

Re: Problem with Ubuntu

Post by chunky »

Linux is case sensitive. You probabably meant -lLibBulletCollision -lLibBulletDynamics -lLibLinearMath

Gary (-;
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Problem with Ubuntu

Post by Erwin Coumans »

Which build system do you use?

Bullet supports cmake and jam under unix systems. Have you tried one of those? You should be able to compile the libraries and demos with both.

Hope this helps,
Erwin
mb108
Posts: 5
Joined: Mon Feb 25, 2008 6:32 am

Re: Problem with Ubuntu

Post by mb108 »

I'm on Ubuntu 7.10, just wanted to point out that Bullet 2.66 builds fine.

For CMake:

Code: Select all

cmake .
make
With Jam:

Code: Select all

./configure
jam

On AMD64, CMake will stumble over BulletMultiThreaded and give up; however, Jam will happily skip over failed steps. Either way the build is mostly done and usable minus a few extras. On 32-bit everything is roses.

The lack of a 'make install' step is not that big of a deal for a development library. Us lazy Ubuntu users will have to ask around in our own forums for somebody to package Bullet for us... :wink:
helicase
Posts: 5
Joined: Tue Feb 26, 2008 3:53 am

Re: Problem with Ubuntu

Post by helicase »

2.66 and 2.67beta on Ubuntu 7.10

./configure
jam
sudo jam install

-> /usr/local/include/bullet and /usr/local/lib

Works fine.