I have tested building using cmake. It mostly worked, except I think
it skipped SMESH and GEOM even though I checked the boxes in
cmake-gui. How do I verify? I've found some candidates in unittests
(output bellow).

At the end "make install/strip" wanted to install to
/usr/lib/python2.7 while the original build system installed to
/usr/local/lib/python2.7. Not even "make install/local" made it
install to /usr/local. The problem in OCCViewer remains even with this
build.

Zbynek

$ python src/unittest/SMESH_wrapper_features_unittest.py
Traceback (most recent call last):
  File "src/unittest/SMESH_wrapper_features_unittest.py", line 28, in <module>
    from OCC.StdMeshers import *
ImportError: No module named StdMeshers

$ python src/unittest/paf_unittest.py
Traceback (most recent call last):
  File "src/unittest/paf_unittest.py", line 1, in <module>
    from OCC.PAF.Context import *
  File "/usr/lib/python2.7/dist-packages/OCC/PAF/Context.py", line 18,
in <module>
    from OCC.GEOMImpl import GEOMImpl_Gen
  File "/usr/lib/python2.7/dist-packages/OCC/GEOMImpl.py", line 30, in <module>
    _GEOMImpl = swig_import_helper()
  File "/usr/lib/python2.7/dist-packages/OCC/GEOMImpl.py", line 26, in
swig_import_helper
    _mod = imp.load_module('_GEOMImpl', fp, pathname, description)
ImportError: /usr/local/lib/libShHealOper.so.1: undefined symbol:
_ZN17TNaming_CopyShape8CopyToolERK12TopoDS_ShapeR42TColStd_IndexedDataMapOfTransientTransientRS0_


On Sun, Oct 30, 2011 at 19:04, Zbynek Winkler <zbynek.wink...@gmail.com> wrote:
> Hello.
> It is not that easy to find this list. Can there be a link on the webpage?
> Anyway. I am trying to compile pythonocc master on ubuntu 11.10. I have
> installed the package liboce-dev from
> https://launchpad.net/~hmeyer/+archive/3d/+packages
> (after some problems) and I got the main extension built. What does not
> build for me is 'OCC._SMESH' extension because I am
> missing AIS_DataMapIteratorOfDataMapOfTransientTransient.hxx file. This file
> seems to be part of libopencascade-visualization-dev but is not in
> liboce-dev. Is this correct? Actually I am not able to find this file
> in https://github.com/tpaviot/oce/ either so even though I did my own build
> it did not help - I had to --disable-SMESH.
> Not even doing my own build of liboce helped me to successfully run the
> helloworld example. I am stuck with:
> $ python examples/Level1/HelloWorld/helloworld.py
> Traceback (most recent call last):
>   File "examples/Level1/HelloWorld/helloworld.py", line 21, in <module>
>     display, start_display, add_menu, add_function_to_menu = init_display()
>   File "/usr/local/lib/python2.7/dist-packages/OCC/Display/SimpleGui.py",
> line 134, in init_display
>     from qtDisplay import qtViewer3d
>   File "/usr/local/lib/python2.7/dist-packages/OCC/Display/qtDisplay.py",
> line 24, in <module>
>     import OCCViewer
>   File "/usr/local/lib/python2.7/dist-packages/OCC/Display/OCCViewer.py",
> line 78, in <module>
>     set_CSF_GraphicShr()
>   File "/usr/local/lib/python2.7/dist-packages/OCC/Display/OCCViewer.py",
> line 73, in set_CSF_GraphicShr
>     libTkOpenGl_library = output.split(' ')[2]
> IndexError: list index out of range
> because /usr/local/lib/python2.7/dist-packages/OCC/_V3d.so does not link to
> libTkOpenGl at all. If I set the path to libTKOpenGl manualy, it runs. With
> the packaged liboce from Henning it crashed.
> To conclude:
> 1) Can I do anything to fix SMESH extension building? The libSMESH.so got
> built alright.
> 2) OCCViewer.py most likely needs new way of finding libTkOpenGl.
> 3) liboce package from ppa:hmeyer/3d is not working for me (helloworld.py
> crashes with segfault)
> Zbynek
>

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

Reply via email to