Any one up for OSX work.

I have successfully compiled panda3d on osx including shaders, fmod_ex. using some hints in this thread the sound also worked with a single channel.

However i have had lots of compile errors, which were caused by different “invalid” compile arguments.

Most of the time the

-framework Cg

was missing, this happended in the following folders:

direct/src/interval
direct/src/motiontrail
direct/src/showbase
direct/metalibs/direct
panda/src/pgraph
panda/src/chan
panda/src/char
panda/src/dgraph
panda/src/cull
panda/src/display
panda/src/device
panda/src/parametrics
panda/src/text
panda/src/grutil
panda/src/tform
panda/src/collide
panda/src/recorder
panda/metalibs/panda
panda/src/distort
panda/src/effects
panda/src/egg2pg
panda/src/framework
panda/metalibs/pandafx
panda/src/glstuff
panda/src/osxdisplay
panda/src/pandaegg
panda/metalibs/pandagl
panda/src/physics
panda/src/particlesystem
panda/metalibs/pandaphysics
panda/src/testbed
panda/src/gobj
and probably even more…

Also, sometimes the parameter -lCg was given, which does not work for me… (i think -l only works for lib’s installed using darwinports/macports)

Im not sure anymore if the “-framework OpenGL” is required sometimes as well… (i created some custom compile script which fixes the described errors itself, and i dont really remember what g++ calls i had modified)

If anybody knows how to fix there problems it would be great…

This is my Config.pp maybe there is something wrong with this?

// python bindings
#define HAVE_PYTHON 1
#define PYTHON_FRAMEWORK Python
#define PYTHON_IPATH /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
#define PYTHON_LPATH /Library/Frameworks/Python.framework/Versions/2.4/lib

// addon librarys
#define HAVE_NET 1
#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 HAVE_TAR 1
#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 HAVE_CG 1
#define CG_IPATH /Library/Frameworks/Cg.framework/Versions/1.0/Headers

#define HAVE_CGGL 1

#define HAVE_FMODEX 1
#define FMODEX_IPATH /Users/rspoerri/Devel/fmodapi40616/api/inc
#define FMODEX_LPATH /Users/rspoerri/Devel/fmodapi40616/api/lib
#define FMOD_LIBS fmodex