2009/12/1 Gero Putzar <gput...@beckarndt.com.au>

> Hi,
>

Hi Gero,


>
> thanks for providing pythonogg. I am very interested and would like to see
> if I can use it. But so far I can't. I've got some problems compiling on
> Debian Lenny. I tried both methods, with Scons and distutils.
>

For the upcoming 0.4 release, SCons build system was abandonned. The only
available make system is the python distutils module.


>
>
> Scons:
> ------
>
> In the svn-trunk version (Rev. 769) some files seem to be missing, compared
> to http://download.gna.org/pythonocc/source_release/pythonOCC-0.3.tar.gz:
> pythonOCC-0.3/src/SConstruct
>

The SConstruct script was removed from the svn trunk. Rather use the
setup.py script.

pythonOCC-0.3/data/images/EDesigner.GIF
> pythonOCC-0.3/src/addons/Display/wxSamplesGui.py
> pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/*.i
> pythonOCC-0.3/src/wrapper/SWIG/win32/*.i
>
> Scons doesn't work without the first on the list. I don't know if the
> others
> are needed as well.
>
> With the older version from the homepage I got the following message:
> g...@cassowary:/work/gero/opencascade/pythonOCC-0.3/pythonOCC-0.3/src$
> scons
> mode=build OCC_INC=/usr/include OCC_CONFIG_H_PATH=/usr/include/opencascade
> OCC_LIB=/usr/lib
> scons: Reading SConscript files ...
> ImportError: No module named Modules:
>  File "/work/gero/opencascade/pythonOCC-0.3/pythonOCC-0.3/src/SConstruct",
> line 28:
>    from Modules import MODULES
>
> Do you know what this Modules-module is and where to get it from?
>
>
> distutils
> ---------
>

Ok, you have to use this one to build 0.4.


>
> I did not install salome so I tried to use the -NO_GEOM option:
> g...@cassowary:/work/gero/opencascade/pythonOCC/src$ python setup.py build
> -NO_GEOM --with-occ-include=/usr/include --with-occ-lib=/usr/lib
> --with-boost-include=/usr/include/boost/
>

-NO_GEOM is not a flag anymore. By default, the compilation of pythonocc
with salomegeom and salomesmehs is disabled. If you want the salomegeom
and/or the salomesmesh support, you have to do:

python setup.py build --enable_geom --enable_smesh

otherwise, if you *don't* want any python wrapper to sgeom and smesh, just
type:

python setup.py build



> Building pythonOCC-0.4 for linux2
> [...]
> error: option -N not recognized
>
> Without the -NO_GEOM option still errors:
> g...@cassowary:/work/gero/opencascade/pythonOCC/src$ python setup.py build
> --with-occ-include=/usr/include --with-occ-lib=/usr/lib
> --with-boost-include=/usr/include/boost/
>

The BOOST headers are required only if you want salomesmesh to be wrapped.


> Building pythonOCC-0.4 for linux2
> Checking OCC Standard_Transient.hxx header ... no
>

It means that the installer script does not find any OCC header in the
OpenCASCADE include path you provided (/usr/include). Check that:
- the OCC headers are in /usr/include,
- you have read access to this directory (maybe youneed to use 'sudo').


[... most other libraries: "... yes", only ...]
> Checking OCC TKDCAF library ... no
> Checking OCC TKDraw library ... no
> Checking OCC TKTObjDRAW library ... no
> Checking OCC TKTopAlgo library ... yes
> Checking OCC TKTopTest library ... no
> Checking OCC TKV2d library ... yes
> Checking OCC TKV3d library ... yes
> Checking OCC TKViewerTest library ... no
> Checking OCC TKXDEDRAW library ... no
> Checking OCC TKXSDRAW library ... no
> [...]
>

This point is ok. The OCC libraries are found in the /usr/lib directory.


>
> /work/gero/opencascade/pythonOCC/src/wrapper/SWIG/linux_darwin/Standard_wrap
> .cpp:2963:32: error: Standard_Failure.hxx: No such file or directory
>
> /work/gero/opencascade/pythonOCC/src/wrapper/SWIG/linux_darwin/Standard_wrap
> .cpp:2969:50: error: Handle_Standard_AbortiveTransaction.hxx: No such file
> or directory
>
> /work/gero/opencascade/pythonOCC/src/wrapper/SWIG/linux_darwin/Standard_wrap
> .cpp:2970:48: error: Handle_Standard_ConstructionError.hxx: No such file or
> directory
> [...]
>
> Same question as above: what are those files, where do they come from,
> where
> can I find them?
>

You can find those headers where the OpenCASCADE automake/autoconf system
installed them.


>
> Thanks, Gero.
>

Thanks for your feedback. The current svn trunk is not ready yet for a
release, but it should come quickly (with a document explaining how to build
the solution).

Regards,

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

Reply via email to