Compile with shadows & OSX

Hi all,

I am trying to compile lastest version of Panda CVS on an Intel 

MacBook with OSX 10.4. I want to include shadows, thus I have
downloaded the Cg kit for OSX from NVIDIA web page. After that,
I have added the following lines to my Config.pp:

#define HAVE_CG       1
#define HAVE_CGGL     1
And I have recompiled everything. However, it does not find a

library. I have searched for the library in the HD and it does not exist.

g++  -undefined dynamic_lookup -dynamic -dynamiclib -o Opt3-OSX/libgobj.dylib -install_name libgobj.dylib Opt3-OSX/gobj_gobj_composite1.o Opt3-OSX/gobj_gobj_composite2.o Opt3-OSX/libgobj_igate.o -L../event/Opt3-OSX -L../express/Opt3-OSX -L../gsgbase/Opt3-OSX -L../linmath/Opt3-OSX -L../mathutil/Opt3-OSX -L../nativenet/Opt3-OSX -L../net/Opt3-OSX -L../pandabase/Opt3-OSX -L../pipeline/Opt3-OSX -L../pnmimage/Opt3-OSX -L../pstatclient/Opt3-OSX -L../putil/Opt3-OSX -L/usr/local/panda/lib -L/usr/local/panda/lib -L/Library/Frameworks/Python.framework/Versions/Current/lib/python2.4 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lpstatclient -levent -llinmath -lmathutil -lpnmimage -lgsgbase -lputil -lnet -lexpress -lpandabase -lpipeline -lnativenet -linterrogatedb -ldconfig -ldtoolutil -ldtoolbase -lprc -lz -lCg -lssl -lcrypto -ltar -lpthread 
/usr/bin/libtool: file: -lCg is not an object file (not allowed in a library)
make[1]: *** [Opt3-OSX/libgobj.dylib] Error 1
make: *** [gobj] Error 2
Any idea?

By the way, for info, without those lines I have successfully compiled

latest version.
Thanks.
Alberto

Try:

#define CG_FRAMEWORK Cg
#define CG_LIBS

David