I'm trying to get pythonOCC running right on my Ubuntu 11.10 64bit box.

I started with instructions on this page:
http://www.pythonocc.org/resources/build_install/installrun-pythonocc-on-ubuntu-10-04-lucid-lts-in-5-steps-and-10-minutes/

Which says to use this PPA:  http://ppa.launchpad.net/cae-team/ppa/ubuntu/

However that PPA does not have pyhonOCC package for Ubuntu Oneiric 11.10.

Then I found hmeyer's comment on that same page, about his own PPA, which
eventually led me to this PPA
https://launchpad.net/~hmeyer/+archive/3d?field.series_filter=oneiric
which contains the oneiric packages.

I was able to install pythonOCC from this PPA, but when I run the example
from the install instructions:
from OCC.Display.SimpleGui import *
from OCC.BRepPrimAPI import *
display, start_display, add_menu, add_function_to_menu = init_display()
my_box = BRepPrimAPI_MakeBox(10.,20.,30.).Shape()
display.DisplayShape(my_box)
start_display()


I get the following error:
 ###### 3D rendering pipe initialisation #####
Display3d class initialization starting ...
Traceback (most recent call last):
  File "tut1.py", line 7, in <module>
    display, start_display, add_menu, add_function_to_menu = init_display()
  File "/usr/lib/pymodules/python2.7/OCC/Display/SimpleGui.py", line 161,
in init_display
    win.canva.InitDriver()
  File "/usr/lib/pymodules/python2.7/OCC/Display/qtDisplay.py", line 108,
in InitDriver
    self._display.Create()
  File "/usr/lib/pymodules/python2.7/OCC/Display/OCCViewer.py", line 84, in
Create
    self.Init(self._window_handle)
RuntimeError: Aspect_GraphicDeviceDefinitionError
libftgl.so.2: cannot open shared object file: No such file or directory


I have these packages installed already:  ftgl-dev, libftgl-dev, libftgl2.
I'm not sure where libftgl.so.2 is supposed to come from.

Can anyone tell me what else I need for this to work?

Thanks,
Hans
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to