Pandatools for Maya not building on Mac 10.4.10

Hi all,

I’m trying to get the Panda tools for Maya 8.5 working on my MacBook Pro (OSX 10.4.10). Got Panda 1.4.2 to compile and everything there works fine. I installed the Maya devkit. Then had trouble getting the pandatools to build. It got through almost everything but then is complaining on files for the following:
lFoundation
lOpenMaya
lOpenMayaAnim
lOpenMayaUI

The error message is:

cd ./src/lwoprogs && make install
make[1]: Nothing to be done for `install'.
cd ./src/maya && make install
g++  -undefined dynamic_lookup -dynamic -dynamiclib -o Opt3-OSX/libmaya.dylib -install_name libmaya.dylib Opt3-OSX/maya_config_maya.o Opt3-OSX/maya_mayaApi.o Opt3-OSX/maya_mayaShader.o Opt3-OSX/maya_mayaShaderColorDef.o Opt3-OSX/maya_mayaShaders.o Opt3-OSX/maya_maya_funcs.o -L../converter/Opt3-OSX -L../pandatoolbase/Opt3-OSX -L/usr/local/panda/lib -L/usr/local/panda/lib -L/usr/local/panda/lib -L/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4 -L/usr/aw/maya/lib -lconverter -lpandatoolbase -lputil -lexpress -ldtoolutil -ldtoolbase -lprc -ldconfig -lpipeline -linterrogatedb -lFoundation -lOpenMaya -lOpenMayaAnim -lOpenMayaUI 
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lFoundation
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lFoundation is not an object file (not allowed in a library)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lOpenMaya
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lOpenMaya is not an object file (not allowed in a library)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lOpenMayaAnim
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lOpenMayaAnim is not an object file (not allowed in a library)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lOpenMayaUI
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lOpenMayaUI is not an object file (not allowed in a library)
make[1]: *** [Opt3-OSX/libmaya.dylib] Error 1
make: *** [install-maya] Error 2

Have set up environment variables thus:

PPREMAKE_CONFIG=/Users/USER/src/panda3d/Config.pp
MAYA_SCRIPT_PATH=/Applications/Autodesk/maya8.5/devkit/plug-ins
LOCAL_PPREMAKE_CONFIG=/Users/USER/src/panda3d/Config.pp
MAYA_PLUG_IN_PATH=/Applications/Autodesk/maya8.5/devkit/plug-ins
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/usr/local/panda/bin:/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
DYLD_FRAMEWORK_PATH=/Applications/Autodesk/maya8.5/Maya.app/Contents/Frameworks
MAYA_LOCATION=/Applications/Autodesk/maya8.5/Maya.app/Contents
SHLVL=1
HOME=/Users/USER
DYLD_LIBRARY_PATH=/Applications/Autodesk/maya8.5/Maya.app/Contents/MacOS
PYTHONPATH=/usr/local/panda/lib:/usr/local/panda/lib/direct
XBMLANGPATH=/Applications/Autodesk/maya8.5/devkit/plug-ins/
_=/usr/bin/env

Does anyone have any ideas on why it’s not building? I’m at a complete loss. Or has anybody else out there got the Maya tools for Panda 1.4.2, running Maya 8.5 on an Intel MacBook Pro, OX 10.4.10 that could send me their binary and I could see if I could at least get that running?

Many thanks!

Do you have the OpenMaya development libraries installed?

David

Hi David,

thanks for the response. I thought I had installed the OpenMaya development libraries, but maybe I haven’t. I re-installed Maya with the API from the installation CD but this is all that shows up under a search for OpenMaya in the Maya directory:

wireless-176:/Applications/Autodesk/maya8.5 bridget$ find . -name \*OpenMaya\* -print
./devkit/include/maya/OpenMayaMac.h
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/_OpenMaya.so
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/_OpenMayaAnim.so
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/_OpenMayaCloth.so
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/_OpenMayaFX.so
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/_OpenMayaMPx.so
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/_OpenMayaRender.so
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/_OpenMayaUI.so
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/OpenMaya.pyc
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/OpenMayaAnim.pyc
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/OpenMayaCloth.pyc
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/OpenMayaFX.pyc
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/OpenMayaMPx.pyc
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/OpenMayaRender.pyc
./Maya.app/Contents/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/maya/OpenMayaUI.pyc
./Maya.app/Contents/MacOS/libOpenMaya.dylib
./Maya.app/Contents/MacOS/libOpenMayaAnim.dylib
./Maya.app/Contents/MacOS/libOpenMayaFX.dylib
./Maya.app/Contents/MacOS/libOpenMayaRender.dylib
./Maya.app/Contents/MacOS/libOpenMayaUI.dylib

Those last few dynamic lib files don’t seem to be being seen. Are these the lib files i’m looking for?

The end of the error code i get when I do make install in ~/src/panda3d/pandatool is:

g++  -undefined dynamic_lookup -dynamic -dynamiclib -o Opt3-OSX/libmaya.dylib -install_name libmaya.dylib Opt3-OSX/maya_config_maya.o Opt3-OSX/maya_mayaApi.o Opt3-OSX/maya_mayaShader.o Opt3-OSX/maya_mayaShaderColorDef.o Opt3-OSX/maya_mayaShaders.o Opt3-OSX/maya_maya_funcs.o -L../converter/Opt3-OSX -L../pandatoolbase/Opt3-OSX -L/usr/local/panda/lib -L/usr/local/panda/lib -L/usr/local/panda/lib -L/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4 -L/usr/aw/maya/lib -lconverter -lpandatoolbase -lputil -lexpress -ldtoolutil -ldtoolbase -lprc -ldconfig -lpipeline -linterrogatedb -lFoundation -lOpenMaya -lOpenMayaAnim -lOpenMayaUI 
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lFoundation
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lFoundation is not an object file (not allowed in a library)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lOpenMaya
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lOpenMaya is not an object file (not allowed in a library)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lOpenMayaAnim
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lOpenMayaAnim is not an object file (not allowed in a library)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lOpenMayaUI
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lOpenMayaUI is not an object file (not allowed in a library)
make[1]: *** [Opt3-OSX/libmaya.dylib] Error 1
make: *** [install-maya] Error 2

It doesn’t seem to be even looking in the /Applications/Autodesk/maya8.5/Maya.app/Contents/MacOS directory. My Maya.env is listed below in my original post.

Any insight you have is very much appreciated.

Thank you!

You will have to tell it where to find the Maya libraries. You could try:

#define MAYA_FRAMEWORK Maya

But I don’t know enough about OS X Frameworks to say definitively whether this will work. If it doesn’t, try:

#define MAYA_LPATH /Applications/Autodesk/maya8.5/Maya.app/Contents/MacOS

David

When i run make install on ~/src/panda3d/pandatools it tries to look in /usr/aw/maya/lib, but the /usr/aw directory only contains the COM directory. There isn’t a maya subdirectory. So I made the maya/lib directory and copied the .dylib files from /Applications/Autodesk/maya8.5/Maya.app/Contents/MacOS into the /usr/aw/maya/lib directory. But, now when I run make install I get several hundred lines of complaints that various items referenced from libFoundation, libOpenMaya, etc. are “expected to be defined in @executable_path/libBase.dylib” or “expected to be defined in @executable_path/libPolyEngine.dylib” and other .dylib files:

__ZN4awOS10SearchPath10initializeERKN8awString7IStringE referenced from libFoundation expected to be defined in @executable_path/libBase.dylib
__ZN4awOS10SearchPath12actLikeShellEb referenced from libFoundation expected to be defined in @executable_path/libBase.dylib
__ZN4awOS10SearchPathC1Ev referenced from libFoundation expected to be defined in @executable_path/libBase.dylib
__ZN4awOS10SearchPathD1Ev referenced from libFoundation expected to be defined in @executable_path/libBase.dylib
__ZN4awOS4File4openEi referenced from libFoundation expected to be defined in @executable_path/libBase.dylib
__ZN4awOS4File4readEPvmPm referenced from libFoundation expected to be defined in @executable_path/libBase.dylib
__ZN4awOS4File5closeEv referenced from libFoundation expected to be defined in @executable_path/libBase.dylib

Does this make any sense to you? I’ve never even heard of @executable_path

Many many thanks!

Umm, it seems to be complaining that something is wrong with libBase.dylib. Did you copy that one in too?

David