Hi,

I'm trying to getting PythonOCC to compile on CentOS 6.3.

I have installed smesh and OCE through packagas in rpmfusion.org, I also
took freecad, as it might take in some dependencies.

freecad-0.13-4.el6
freecad-doc-0.13-4.el6
smesh-5.1.2.2-8.svn55.el6
smesh-devel-5.1.2.2-8.svn55.el6
smesh-doc-5.1.2.2-8.svn55.el6
OCE-devel-0.13-1.el6
OCE-draw-0.13-1.el6
OCE-foundation-0.13-1.el6
OCE-modeling-0.13-1.el6
OCE-ocaf-0.13-1.el6
OCE-visualization-0.13-1.el

I have installed python from the anaconda package:
http://docs.continuum.io/anaconda/pkgs.html

I have taken cmake28 from epel repository and swig from 1.3.40 from base
repository.

I have taken PythonOCC from:
https://github.com/tpaviot/pythonocc/archive/master.zip

and placed it at /home/mkl/pythonocc-master

So this is how i proceed:

cd /home/mkl/pythonocc-master/src/contrib/geom-6.3.1.8
mkdir cmake-build
cmake ..

-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build 64bit
-- Unix/Linux platform detected
-- output_path: Unix/x86_64-Release-64
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/mkl/pythonocc-master/src/contrib/geom-6.3.1.8/cmake-build

make

Which fails, here are the last lines:

/home/mkl/pythonocc-master/src/contrib/geom-6.3.1.8/inc/Handle_NMTDS_IndexedDataMapNodeOfIndexedDataMapOfShapeBndSphere.hxx:36:
error: aggregate 'Handle TCollection_MapNode' has incomplete type and
cannot be defined
/home/mkl/pythonocc-master/src/contrib/geom-6.3.1.8/inc/Handle_NMTDS_IndexedDataMapNodeOfIndexedDataMapOfShapeBndSphere.hxx:38:
error: 'Standard_EXPORT' does not name a type
/home/mkl/pythonocc-master/src/contrib/geom-6.3.1.8/inc/Handle_NMTDS_IndexedDataMapNodeOfIndexedDataMapOfShapeBndSphere.hxx:40:
error: expected initializer before ':' token
make[2]: ***
[CMakeFiles/GEOM.dir/src/NMTDS/NMTDS_IndexedDataMapNodeOfIndexedDataMapOfShapeBndSphere_0.cpp.o]
Error 1
make[1]: *** [CMakeFiles/GEOM.dir/all] Error 2
make: *** [all] Error 2

I tried to compile PythonOCC
cd /home/mkl/pythonocc-master/
mdkr cmake-build
cd cmake-build

cmake28 -DPYTHON_LIBRARY=/opt/anaconda/lib/libpython2.7.so ..
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
--
-- Found PythonLibs: /opt/anaconda/lib/libpython2.7.so (found version
"2.6.6")
-- Build 64bit
-- Found SWIG: /usr/bin/swig (found version "1.3.40")
-- Platform:Unix
-- output_path: Unix/x86_64-MinSizeRel-64
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mkl/pythonocc-master/cmake-build

then a make, which fails, there are many many lines, but here is the tail

/home/mkl/pythonocc-master/cmake-build/src/wrapper/SWIG_files/linux_darwin/AISPYTHON_wrap.cxx:137407:
error: 'AIS_CM_All' was not declared in this scope
/home/mkl/pythonocc-master/cmake-build/src/wrapper/SWIG_files/linux_darwin/AISPYTHON_wrap.cxx:137408:
error: 'AIS_CM_Interactive' was not declared in this scope
/home/mkl/pythonocc-master/cmake-build/src/wrapper/SWIG_files/linux_darwin/AISPYTHON_wrap.cxx:137409:
error: 'AIS_CM_Filters' was not declared in this scope
/home/mkl/pythonocc-master/cmake-build/src/wrapper/SWIG_files/linux_darwin/AISPYTHON_wrap.cxx:137410:
error: 'AIS_CM_StandardModes' was not declared in this scope
/home/mkl/pythonocc-master/cmake-build/src/wrapper/SWIG_files/linux_darwin/AISPYTHON_wrap.cxx:137411:
error: 'AIS_CM_TemporaryShapePrs' was not declared in this scope
make[2]: ***
[CMakeFiles/_AIS.dir/src/wrapper/SWIG_files/linux_darwin/AISPYTHON_wrap.cxx.o]
Error 1
make[1]: *** [CMakeFiles/_AIS.dir/all] Error 2
make: *** [all] Error 2

Any suggestions are greatly appreciated :)


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

Reply via email to