Yet another Dynamica compilation question

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
nephilim
Posts: 2
Joined: Tue Nov 08, 2011 6:16 pm

Yet another Dynamica compilation question

Post by nephilim »

Hi,

I'm currently tryin to get some compilation of Dynamica for Mac OSX 10.6.8 / Maya 2012 sp1.

Starting from a fresh read only checkout of dynamica (r2446), I had to fix some lines in Makefile.mac :
- forced maya path in MAYA_LIB var (2010 devkit by default)
- forced -arch x86_64 in CPPFLAGS (ld issue)
- removed btContinuousDynamicsWorld.cpp and btContinuousDynamicsWorld.h from rules (cannot find these files, neither in dynamica nor raw bullet sources)

I'm now stuck with some undefined symbol issues when linkin dynamicaMayaPlugin.bundle :

Code: Select all

Undefined symbols for architecture x86_64:
  "vtable for bt_rigid_body_t", referenced from:
      bt_rigid_body_t::bt_rigid_body_t(collision_shape_impl_t*)in bt_solver.o
  "convex_decomposition_hacd::convex_decomposition_hacd()", referenced from:
      bt_hacd_shape_t::bt_hacd_shape_t(mvl::vec<float, 3ul> const*, unsigned long, mvl::vec<float, 3ul> const*, unsigned int const*, unsigned long, bool)in bt_solver.o
  "convex_decomposition_hacd::ConvexDecomp(int, float*, int, unsigned int const*)", referenced from:
      bt_hacd_shape_t::bt_hacd_shape_t(mvl::vec<float, 3ul> const*, unsigned long, mvl::vec<float, 3ul> const*, unsigned int const*, unsigned long, bool)in bt_solver.o
  "btPolyhedralContactClipping::findSeparatingAxis(btConvexPolyhedron const&, btConvexPolyhedron const&, btTransform const&, btTransform const&, btVector3&)", referenced from:
      btConvexConvexAlgorithm::processCollision(btCollisionObject*, btCollisionObject*, btDispatcherInfo const&, btManifoldResult*)in btConvexConvexAlgorithm.o
  "btPolyhedralContactClipping::clipHullAgainstHull(btVector3 const&, btConvexPolyhedron const&, btConvexPolyhedron const&, btTransform const&, btTransform const&, float, float, btDiscreteCollisionDetectorInterface::Result&)", referenced from:
      btConvexConvexAlgorithm::processCollision(btCollisionObject*, btCollisionObject*, btDispatcherInfo const&, btManifoldResult*)in btConvexConvexAlgorithm.o
  "btPolyhedralContactClipping::clipFaceAgainstHull(btVector3 const&, btConvexPolyhedron const&, btTransform const&, btAlignedObjectArray<btVector3>&, float, float, btDiscreteCollisionDetectorInterface::Result&)", referenced from:
      btConvexConvexAlgorithm::processCollision(btCollisionObject*, btCollisionObject*, btDispatcherInfo const&, btManifoldResult*)in btConvexConvexAlgorithm.o
  "btConvexHullComputer::compute(void const*, bool, int, int, float, float)", referenced from:
      btConvexHullComputer::compute(float const*, int, int, float, float)in btPolyhedralConvexShape.o
  "btConvexPolyhedron::btConvexPolyhedron()", referenced from:
      btPolyhedralConvexShape::initializePolyhedralFeatures()       in btPolyhedralConvexShape.o
  "btConvexPolyhedron::initialize()", referenced from:
      btPolyhedralConvexShape::initializePolyhedralFeatures()       in btPolyhedralConvexShape.o
ld: symbol(s) not found for architecture x86_64
Before digging further, should I give a try to a more "stable" release ? Should I replace sources coming from the dynamica checkout with a newer version of bullet ?

Thanks in advance for any advice, and sorry for my crappy english, hope I'm understandable ...

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

Re: Yet another Dynamica compilation question

Post by Erwin Coumans »

The Makefile is not actively maintained.

It should be fairly simple to add the missing file. Just search for the matching .cpp file and add it.
If you fix it, please consider contributing it back,
Thanks!
Erwin
nephilim
Posts: 2
Joined: Tue Nov 08, 2011 6:16 pm

Re: Yet another Dynamica compilation question

Post by nephilim »

Hi Erwin,

Glad to read your answer. I'm currently quite busy, strugglin with Arnold and Shave&Haircut, but I'll definitely give another try sooner or later. I'll obviously send you feedback as soon as possible.

Thanks for your concern and ... merry christmas !

Tonio
Post Reply