Working with Morgul I’ve tried this on my computer (Ubuntu 11.10) and got a good bit farther, but ran into another indecipherable error.
Note: Morgul’s patch above has been accepted and merged with the libRocket tree on GitHub.
I found that I can reproduce the segfault issue by calling:
from panda3d.rocket import *
but if I use:
from panda3d import rocket
this succeeds without incident.
Where I run into trouble is trying to make any calls to rocket. This results in an Undefined Symbol error.
Here’s my current test app:
from direct.showbase.ShowBase import ShowBase
from panda3d import rocket
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
r = rocket.RocketRegion.make('pandaRocket', self.win)
r.setActive(1)
ih = rocket.RocketInputHandler()
self.mouseWatcher.attachNewNode(ih)
r.setInputHandler(ih)
context = r.getContext()
app = MyApp()
app.run()
And he’s the error I receive:
Known pipe types:
glxGraphicsPipe
(all display modules loaded.)
:audio(error): load_dso(libp3openal_audio.so) failed, will use NullAudioManager
:audio(error): No error.
Traceback (most recent call last):
File "test.py", line 16, in <module>
app = MyApp()
File "test.py", line 8, in __init__
r = rocket.RocketRegion.make('pandaRocket', base.win)
File "/usr/share/panda3d/panda3d.py", line 202, in __getattr__
mod = self.__manager__.libimport(lib)
File "/usr/share/panda3d/panda3d.py", line 107, in libimport
return __import__(name)
ImportError: /usr/lib64/panda3d/libp3rocket.so: undefined symbol: _ZN5boost6python23throw_error_already_setEv
So, I am able to actually import libRocket and attempt to use it, but then that attempt immediately fails. Suggestions, anyone? Thanks in advance.