distutils library order causes errors when statically linking to bullet

Bug #910765 reported by psigen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pybullet
Fix Committed
Undecided
Unassigned

Bug Description

When building against Bullet static libraries, the existing setup.py compiles and installs, but at runtime, gets undefined references to core structures (such as btSimulationIslandManager).

I believe this is caused by the current linking order specified in setup.py:

        libraries=["LinearMath",
                   "BulletCollision",
                   "BulletDynamics",
                   "BulletSoftBody"],

As per the suggestion in http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?t=4760
reversing the linking order in setup.py to:

        libraries=["BulletSoftBody",
                   "BulletDynamics",
                   "BulletCollision",
                   "LinearMath"],

resolves this problem when linking statically, and should not have any effect on shared linking.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Thanks. I applied your suggested fix in r45.

Changed in pybullet:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.