building pandatools on mac os x 10.4.11 PPC

well, after some bumpiness, i’ve successfully built and run panda on my ppc mac. i am however having problems with pandatools. they appeared to build without error, but i see that none of the maya tools are there. there’s probably something simple i missed, but being a n00b, i can’t seem to figure it out. i did add the following to my bash profile:

DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/Applications/Alias/maya7.0/Maya.app/Contents/MacOS; export DYLD_LIBRARY_PATH
MAYA_LOCATION=/Applications/Alias/maya7.0/Maya.app/Contents; export MAYA_LOCATION

i tried make install again in the pandatool directory, but still no maya2egg, etc.

i don’t have anything about maya in my config.pp file. don’t know if i should. anybody got a clue? don’t even know what i should post that would be of help to you…

??

added #define HAVE_MAYA 1 to config.pp and things started cooking until:

cd ./src/maya && make install
g++ -ftemplate-depth-30  -c -o Opt3-OSX/maya_mayaApi.o -I. -I/Users/bbalog/src/panda3d/pandatool -I../converter -I../pandatoolbase -I/usr/local/panda/include -I/usr/local/panda/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -I/usr/aw/maya/include    -g -O2 -fPIC mayaApi.cxx
In file included from mayaApi.cxx:22:
pre_maya_include.h:66:30: error: maya/OpenMayaMac.h: No such file or directory
mayaApi.cxx:23:26: error: maya/MGlobal.h: No such file or directory
mayaApi.cxx:24:28: error: maya/MDistance.h: No such file or directory
mayaApi.cxx:25:26: error: maya/MFileIO.h: No such file or directory
mayaApi.cxx:26:27: error: maya/MLibrary.h: No such file or directory
mayaApi.cxx:27:26: error: maya/MStatus.h: No such file or directory
mayaApi.cxx:28:31: error: maya/MFnAnimCurve.h: No such file or directory
mayaApi.cxx:40: error: 'MFnAnimCurve' does not name a type
mayaApi.cxx: In constructor 'MayaApi::MayaApi(const std::string&)':
mayaApi.cxx:70: error: 'MStatus' was not declared in this scope
mayaApi.cxx:70: error: expected `;' before 'stat'
mayaApi.cxx:85: error: 'stat' was not declared in this scope
mayaApi.cxx: In destructor 'MayaApi::~MayaApi()':
mayaApi.cxx:126: error: 'MLibrary' has not been declared
mayaApi.cxx:126: error: 'cleanup' was not declared in this scope
mayaApi.cxx: In static member function 'static PointerTo<MayaApi> MayaApi::open_api(std::string)':
mayaApi.cxx:171: error: 'MAYA_API_VERSION' was not declared in this scope
mayaApi.cxx:177: error: 'MGlobal' has not been declared
mayaApi.cxx:177: error: 'mayaVersion' was not declared in this scope
mayaApi.cxx: In member function 'bool MayaApi::read(const Filename&)':
mayaApi.cxx:240: error: 'MFileIO' has not been declared
mayaApi.cxx:240: error: 'newFile' was not declared in this scope
mayaApi.cxx:248: error: 'MFileIO' has not been declared
mayaApi.cxx:249: error: 'MStatus' was not declared in this scope
mayaApi.cxx:249: error: expected `;' before 'stat'
mayaApi.cxx:250: error: 'stat' was not declared in this scope
mayaApi.cxx: In member function 'bool MayaApi::write(const Filename&)':
mayaApi.cxx:274: error: 'MStatus' was not declared in this scope
mayaApi.cxx:274: error: expected `;' before 'stat'
mayaApi.cxx:275: error: 'stat' was not declared in this scope
mayaApi.cxx: In member function 'bool MayaApi::clear()':
mayaApi.cxx:291: error: 'MStatus' was not declared in this scope
mayaApi.cxx:291: error: expected `;' before 'stat'
mayaApi.cxx:292: error: 'stat' was not declared in this scope
mayaApi.cxx: In member function 'DistanceUnit MayaApi::get_units()':
mayaApi.cxx:306: error: 'MDistance' has not been declared
mayaApi.cxx:306: error: 'internalUnit' was not declared in this scope
mayaApi.cxx:307: error: 'MDistance' has not been declared
mayaApi.cxx:307: error: 'kInches' was not declared in this scope
mayaApi.cxx:309: error: 'MDistance' has not been declared
mayaApi.cxx:309: error: 'kFeet' was not declared in this scope
mayaApi.cxx:311: error: 'MDistance' has not been declared
mayaApi.cxx:311: error: 'kYards' was not declared in this scope
mayaApi.cxx:313: error: 'MDistance' has not been declared
mayaApi.cxx:313: error: 'kMiles' was not declared in this scope
mayaApi.cxx:315: error: 'MDistance' has not been declared
mayaApi.cxx:315: error: 'kMillimeters' was not declared in this scope
mayaApi.cxx:317: error: 'MDistance' has not been declared
mayaApi.cxx:317: error: 'kCentimeters' was not declared in this scope
mayaApi.cxx:319: error: 'MDistance' has not been declared
mayaApi.cxx:319: error: 'kKilometers' was not declared in this scope
mayaApi.cxx:321: error: 'MDistance' has not been declared
mayaApi.cxx:321: error: 'kMeters' was not declared in this scope
mayaApi.cxx: In member function 'CoordinateSystem MayaApi::get_coordinate_system()':
mayaApi.cxx:336: error: 'MGlobal' has not been declared
mayaApi.cxx:336: error: 'isYAxisUp' was not declared in this scope
make[1]: *** [Opt3-OSX/maya_mayaApi.o] Error 1
make: *** [install-maya] Error 2

looks like i’m missing the devkit?!?

hi, giantmolecules!

have you tried to

locate OpenMayaMac.h

and then use CPLUS_INCLUDE_PATH to add the directory to the include path? i did that during my compilations and usually it helped :wink:

export CPLUS_INCLUDE_PATH=/opt/local/include:/opt/local/include/ffmpeg:/opt/local/include/opencv

btw: i had a working panda compilation on my ppc, too, but now i can NOT build it any more… could you post your Config.pp, Config.prc, please? Did you enable FMOD EX?

Have you experienced the white panda screen problem i have now, too?

hi gogo,

i tried locating OpenMayaMac.h, but it doesn’t exist on my system. like i said, i didn’t install the maya devkit, and i am far from my install disks.

as for my config.pp, here it is:

#define HAVE_GL 1 
#define HAVE_PYTHON 1
#define HAVE_MAYA 1
#define PYTHON_IPATH /opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.
4
#define PYTHON_LPATH /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
#define INSTALL_PYTHON_SOURCE 1
#define GENPYCODE_LIBS libpandaexpress libpanda libpandaphysics libdirect libpandafx 

#define PRC_PATH_ENVVARS CFG_PATH ETC_PATH 
#define DEFAULT_PATHSEP : : 

#define NET_IPATH /opt/local/include/nspr 
#define NET_LPATH /opt/local/lib 

#define ZLIB_IPATH /opt/local/include 
#define ZLIB_LPATH /opt/local/lib 

#define JPEG_IPATH /opt/local/include 
#define JPEG_LPATH /opt/local/lib 

#define PNG_IPATH /opt/local/include 
#define PNG_LPATH /opt/local/lib 

#define TAR_IPATH /opt/local/include 
#define TAR_LPATH /opt/local/lib 

#define TIFF_IPATH /opt/local/include 
#define TIFF_LPATH /opt/local/lib 

#define ODE_IPATH /opt/local/include/ode
#define ODE_LPATH /opt/local/lib

#define HAVE_THREADS 1
#define USE_MEMORY_MALLOC 1

it’s the same one suggested here:

edalytical.com/articles/2007 … n-mac-os-x

however, i’m not using a config.prc file at the moment.

Without the devkit, you have no chance of building maya2egg. Sorry. The reason is that maya2egg works by making API calls into Maya’s proprietary library, so if you don’t have this library installed, there’s nothing for maya2egg to call into.

David