Okay, I will try compiling it from source, I will take it from here:
github.com/tpaviot/oce/releases/tag/OCE-0.12

@Thomas, I did read the INSTALL, I just thought the line:
'OCE 0.12 : the latest oce release.'

would mean 0.12 or newer :)
Just for reference, this is the info on OCE-devel package

yum info OCE-devel.x86_64
Installed Packages
Name        : OCE-devel
Arch        : x86_64
Version     : 0.13
Release     : 1.el6
Size        : 36 M
Repo        : installed
>From repo   : rpmfusion-nonfree-updates
Summary     : OpenCASCADE CAE platform library development files
URL         : https://github.com/tpaviot/oce
License     : Open CASCADE Technology Public License
Description : OpenCASCADE CAE platform library development files

Do you think GCC 4.4.7 will give me any problems?




On Wed, Dec 18, 2013 at 10:11 AM, Thomas Paviot <tpav...@gmail.com> wrote:

> 2013/12/18 Michael Klitgaard <mich...@klitgaard.dk>
>
>> 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
>>
>>
> You need oce-0.12.
>
> Please have a look at the INSTALL file at :
> https://github.com/tpaviot/pythonocc/blob/master/INSTALL
>
> Thomas
>
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to