Library build order

Mako_energy02
Posts: 171
Joined: Sun Jan 17, 2010 4:47 am

Library build order

Post by Mako_energy02 »

I'm trying to configure my project in cmake, and bullet is a dependancy. We use a large number of features in bullet, so we're having to use a large number of bullet libs. I was wondering what the proper build order for all these libs are, as I'm getting undefined reference errors and I'm pretty sure it's related to the build order, I've tried a number of combinations, but nothing so far works.

Here's the libs I'm trying to compile:
BulletMultiThreaded
BulletSoftBody
BulletDynamics
BulletCollision
BulletFileLoader
LinearMath
GIMPACTUtils
ConvexDecomposition
BulletWorldImporter
MiniCL
BulletSoftBodySolvers_CPU
BulletSoftBodySolvers_OpenCL
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Library build order

Post by Erwin Coumans »

An order like this should work:


ConvexDecomposition
GIMPACTUtils

BulletWorldImporter
BulletFileLoader

BulletSoftBodySolvers_OpenCL
BulletSoftBodySolvers_CPU
MiniCL
BulletMultiThreaded

BulletSoftBody
BulletDynamics
BulletCollision
LinearMath

Thanks,
Erwin
Mako_energy02
Posts: 171
Joined: Sun Jan 17, 2010 4:47 am

Re: Library build order

Post by Mako_energy02 »

That worked. Thanks.