bullet pkgconfig file generation

mccdo
Posts: 6
Joined: Tue Jan 16, 2007 10:59 pm

bullet pkgconfig file generation

Post by mccdo »

I would like to use the autogenerated bullet.pc file with my application but it includes libraries that are not built. I am building 2.42b on mac with jam. Other than manually editing the bullet.pc.in file is there another solution to the problem? Is there a way to get the other libraries built? Thanks for the help.

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

Post by Erwin Coumans »

Which libraries are not build exactly? Is there a compile/link error? Have you tried running ./autogen.sh and/or ./configure?

Bullet jam should build all demos on Mac OS X.

You can also use CMake to autogenerate Xcode projectfiles: download cmake from cmake.org and run "cmake . -G Xcode" in the Bullet root folder.

Thanks for the feedback,
Erwin
mccdo
Posts: 6
Joined: Tue Jan 16, 2007 10:59 pm

Post by mccdo »

In the pc file these libraries are specified:

Code: Select all

Libs: -L${libdir} -lbulletccdphysics -lbulletphysicsinterfacecommon -lbulletdynamics -lbullet -lbulletmath
but only these libraries are built:

Code: Select all

Libs: -L${libdir} -lbulletcollision -lbulletdynamics -lbulletmath
When I go to link using the pc file the mac compiler complains because it cannot find all the libraries. I think the jam build and sample apps all work and build fine it is just that the bullet.pc.in file seems to be out of sync with the build system.

I want to make a Portfile for MacPorts for bullet. This minor issue is the only real issue to resolve before that is complete.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Post by Erwin Coumans »

-lbulletccdphysics -lbulletphysicsinterfacecommon
Those two libraries are obsolete, and should not be in the .pc file.
I removed them from the bullet.pc.in, will be in next release.

Thanks for bringing this up,
Erwin
mccdo
Posts: 6
Joined: Tue Jan 16, 2007 10:59 pm

Post by mccdo »

Thanks! I will submit the Portfile after the new release.

Doug
mccdo
Posts: 6
Joined: Tue Jan 16, 2007 10:59 pm

Post by mccdo »

I just downloaded the latest svn version of bullet and it still seems there is one library that is not included which is: bulletcollision instead of bullet. Can this also be updated? Thanks.

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

Post by Erwin Coumans »

Thanks for reporting, I just committed the fix.

Can you let me know if this helps?
Thanks,
Erwin
mccdo
Posts: 6
Joined: Tue Jan 16, 2007 10:59 pm

Post by mccdo »

That fixed things! Thanks.

Doug
kickvb
Posts: 6
Joined: Wed Dec 09, 2009 5:05 pm

Re: bullet pkgconfig file generation

Post by kickvb »

It seems that bullet.pc.in is again out of sync.

It specifies: "Libs: -L${libdir} -lbulletdynamics -lbulletcollision -lbulletmath"

while it should be: "Libs: -L${libdir} -lBulletDynamics -lBulletCollision -lLinearMath"
and I guess that "-lBulletSoftBody -lBulletMultiThreaded" would also need to be added.

The CamelCasy names are problematic on Unix systems, while the conversion from bulletmath to LinearMath is even worse.