Hi Erwin, thanks for getting back so quickly.
Well, I feel I got somewhat closer... but no cigar yet.
the makefile didn't fly straight away, I had to make a few changes. Specifically, I changed the maya include line to an explicit directory:
Code: Select all
MAYA_INCLUDE=-I/Applications/Autodesk/maya2009/devkit/include
I also changed 2008 to 2009 and the plug path:
Code: Select all
MAYA_PLUG_IN_PATH=/Users/Shared/Autodesk/maya/plug-ins
After this there was some progress... all the .o files got built, but the make stopped when it couldn't find any libs...
I'd already built the demos and recalled seeing the libs in various folders, so I created a directory $(BULLET)/out/macosxx86/optimize/libs and put all the libs in there.
Now this is where I'm at... the libs are found EXCEPT for libxml, yet it is absolutely in the directory:
Code: Select all
Pro1-2:MayaPlugin davegreenwood$ cd /Bullet/out/macosxx86/optimize/libs
Pro1-2:libs davegreenwood$ ls -a
. libBulletCollision.a libColladaDom.a libIff.a
.. libBulletDynamics.a libConvexDecomposition.a libLinearMath.a
.DS_Store libBulletMultiThreaded.a libGIMPACTUtils.a libOpenGLSupport.a
libBulletColladaConverter.a libBulletSoftBody.a libGLUI.a libxml.a
Pro1-2:libs davegreenwood$
here's the error:
Code: Select all
Pro1-2:MayaPlugin davegreenwood$ make -f Makefile.mac
g++ pluginMain.o colladaExport.o rigidBodyNode.o rigidBodyArrayNode.o collisionShapeNode.o solver.o bt_solver.o dSolverNode.o dSolverCmd.o dRigidBodyCmd.o dRigidBodyArrayCmd.o pdbIO.o drawUtils.o constraint/dHingeConstraintCmd.o constraint/dSliderConstraintCmd.o constraint/hingeConstraintNode.o constraint/sixdofConstraintNode.o constraint/dNailConstraintCmd.o constraint/dsixdofConstraintCmd.o constraint/nailConstraintNode.o constraint/sliderConstraintNode.o -ldl -shared -L/Bullet/out/macosxx86/optimize/libs -L/Bullet/src -lBulletColladaConverter -lcolladadom -llibxml -lGIMPACTUtils -lbulletdynamics -lbulletcollision -lbulletmath -L/Applications/Autodesk/maya2009/Maya.app/Contents/MacOS -lOpenMaya -lFoundation -Wl,-executable_path,/Applications/Autodesk/maya2009/Maya.app/Contents/MacOS -lOpenMayaUI -lOpenMayaFX -lOpenMaya -lFoundation -framework OpenGL -o dynamicaMayaPlugin.bundle
ld: library not found for -llibxml
collect2: ld returned 1 exit status
make: *** [dynamicaMayaPlugin.bundle] Error 1
I know it finds the other libs, because if I remove the -llibxml flag from the makefile, there is no complaint of libs not found, and the build continues, but of course fails with various xml errors...
I'm very happy to give this all I can, I know quite a few people are after an osx binary.
Anyway, I'm hoping you might be able to shed a little light... maybe someone might have an xcode project?
Thanks for your help so far.
Dave.