Oman10
November 4, 2009, 2:55pm
1
Hello to you all.
Few years back I have used panda3d in combination with python on a windows machine.
I just installed panda3d (and the NVIDIA CG toolkit) again yesterday, but now on my macbook pro with brand new Snow Leopard. But when I walked through the manual (I have to refresh) first thing goes wrong while starting up my test script containing only:
import direct.directbase.DirectStart
run()
The error message I receive is the following:
DirectStart: Starting the game.
:display(warning): Unable to load: dlopen(/Applications/Panda3D/1.6.2/lib/libpandagl.dylib, 6): Library not loaded: /usr/X11/lib/libOSMesa.4.dylib
Referenced from: /Applications/Panda3D/1.6.2/lib/libpandagl.dylib
Reason: image not found
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File “test.py”, line 1, in
import direct.directbase.DirectStart
File “/Applications/Panda3D/1.6.2/lib/direct/directbase/DirectStart.py”, line 4, in
ShowBase.ShowBase()
File “/Applications/Panda3D/1.6.2/lib/direct/showbase/ShowBase.py”, line 229, in init
self.openDefaultWindow(startDirect = False, props=props)
File “/Applications/Panda3D/1.6.2/lib/direct/showbase/ShowBase.py”, line 692, in openDefaultWindow
self.openMainWindow(*args, **kw)
File “/Applications/Panda3D/1.6.2/lib/direct/showbase/ShowBase.py”, line 777, in openMainWindow
self.openWindow(*args, **kw)
File “/Applications/Panda3D/1.6.2/lib/direct/showbase/ShowBase.py”, line 534, in openWindow
self.makeDefaultPipe()
File “/Applications/Panda3D/1.6.2/lib/direct/showbase/ShowBase.py”, line 467, in makeDefaultPipe
“No graphics pipe is available!\n”
File “/Applications/Panda3D/1.6.2/lib/direct/directnotify/Notifier.py”, line 130, in error
raise exception(errorString)
StandardError: No graphics pipe is available!
Your Config.prc file must name at least one valid panda display
library via load-display or aux-display.
So either the Panda3d path variables are not set correctly (I watched the Config.prc file, but have no clue what to change)
(Off course, I tried all, but with no other result) OR the NVIDIA toolkit is not working properly on my Snow Leopard installation.
Can somebody help me with changing settings(?) so Panda3d will run on my mac?
rdb
November 4, 2009, 3:09pm
2
It’s a known issue, and will be resolved in the next version of Panda3D.
discourse.panda3d.org/viewtopic.php?t=7222
To highlight the post in that thread that should help you out:
Manne:
Symlinking worked great.
So, for thoose of you who dont know how. Here is a workaround to get Panda to work on Snow Leopard.
Download the Cg installation (Cg-2.2.0006) from nvidia. Rightclick on the installer and select show package contents. In Contents->Resources->Installer Items there is a file: NVIDIA_Cg.tgz. Copy this to your desktop. Doubleclick on it to unpack.
Now, copy the Cg.Framework in NVIDIA_Cg->Library->Frameworks to /Libraray/Frameworks.
Open a terminal and run this.
sudo ln -s /usr/X11/lib/libOSMesa.7.dylib /usr/X11/lib/libOSMesa.4.dylib
Now Panda should work.
Oman10
November 4, 2009, 3:21pm
3
I searched for it, but didn’t find it.
This works, thanx a lot!