Open Ramisay opened 3 years ago
It seems you need to install libxi-dev
. It's probably a newer dependency from a tracking a newer OCCT version that is not yet reflected in the docs.
Thank you @aothms , that was the problem, I didn't have libxi-dev in my laptop. Now It's working and OCE is installed.
In the other hand, I'm trying to install Python-occ now, and when I run the cmake commande , I get :
CMake Error at CMakeLists.txt:131 (find_package):
By not providing "FindOCE.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OCE", but
CMake did not find one.
Could not find a package configuration file provided by "OCE" (requested
version 0.18) with any of the following names:
OCEConfig.cmake
oce-config.cmake
Add the installation prefix of "OCE" to CMAKE_PREFIX_PATH or set "OCE_DIR"
to a directory containing one of the above files. If "OCE" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
Is "OCEConfig.cmake" should be generated automatically when we install OCE? or there is a way to generate it? and how to specify it when we run cmake commande during OCC building? Thanks in advance.
In fact , I solved the last problem by installing the " liboce-foundation-dev " library. and now cmake command works. But unfortunetly, the make commande also prevents error messages, when I run make I got :
[ 0%] Swig source
[ 0%] Swig source
[ 0%] Swig source
[ 0%] Swig source
[ 0%] Swig source
[ 0%] Swig source
[ 0%] Swig source
[ 0%] Swig source
Scanning dependencies of target _UTL
[ 0%] Building CXX object CMakeFiles/_UTL.dir/Unix/x86_64-Release-64/UTLPYTHON_wrap.cxx.o
/scratch/rsayoud/Documents/Software_Packages/oce_folder/build/pyocc/Unix/x86_64-Release-64/UTLPYTHON_wrap.cxx:3788:9: fatal error: UTL.hxx: Aucun fichier ou dossier de ce type
#include<UTL.hxx>
^~~~~~~~~
compilation terminated.
CMakeFiles/_UTL.dir/build.make:71: recipe for target 'CMakeFiles/_UTL.dir/Unix/x86_64-Release-64/UTLPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_UTL.dir/Unix/x86_64-Release-64/UTLPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/_UTL.dir/all' failed
make[1]: *** [CMakeFiles/_UTL.dir/all] Error 2
make[1]: *** Attente des tâches non terminées....
Scanning dependencies of target _CDF
Scanning dependencies of target _PCDM
[ 0%] Building CXX object CMakeFiles/_CDF.dir/Unix/x86_64-Release-64/CDFPYTHON_wrap.cxx.o
[ 0%] Building CXX object CMakeFiles/_PCDM.dir/Unix/x86_64-Release-64/PCDMPYTHON_wrap.cxx.o
/scratch/rsayoud/Documents/Software_Packages/oce_folder/build/pyocc/Unix/x86_64-Release-64/CDFPYTHON_wrap.cxx:3924:9: fatal error: CDF_TypeOfActivation.hxx: Aucun fichier ou dossier de ce type
#include<CDF_TypeOfActivation.hxx>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/_CDF.dir/build.make:71: recipe for target 'CMakeFiles/_CDF.dir/Unix/x86_64-Release-64/CDFPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_CDF.dir/Unix/x86_64-Release-64/CDFPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/_CDF.dir/all' failed
make[1]: *** [CMakeFiles/_CDF.dir/all] Error 2
/scratch/rsayoud/Documents/Software_Packages/oce_folder/build/pyocc/Unix/x86_64-Release-64/PCDMPYTHON_wrap.cxx:3924:9: fatal error: PCDM_ReadWriter.hxx: Aucun fichier ou dossier de ce type
#include<PCDM_ReadWriter.hxx>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/_PCDM.dir/build.make:71: recipe for target 'CMakeFiles/_PCDM.dir/Unix/x86_64-Release-64/PCDMPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_PCDM.dir/Unix/x86_64-Release-64/PCDMPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/_PCDM.dir/all' failed
make[1]: *** [CMakeFiles/_PCDM.dir/all] Error 2
Scanning dependencies of target _TDF
[ 0%] Building CXX object CMakeFiles/_TDF.dir/Unix/x86_64-Release-64/TDFPYTHON_wrap.cxx.o
/scratch/rsayoud/Documents/Software_Packages/oce_folder/build/pyocc/Unix/x86_64-Release-64/TDFPYTHON_wrap.cxx:4013:9: fatal error: TDF_AttributeList.hxx: Aucun fichier ou dossier de ce type
#include<TDF_AttributeList.hxx>
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/_TDF.dir/build.make:71: recipe for target 'CMakeFiles/_TDF.dir/Unix/x86_64-Release-64/TDFPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_TDF.dir/Unix/x86_64-Release-64/TDFPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:326: recipe for target 'CMakeFiles/_TDF.dir/all' failed
make[1]: *** [CMakeFiles/_TDF.dir/all] Error 2
Scanning dependencies of target _TDataStd
[ 0%] Building CXX object CMakeFiles/_TDataStd.dir/Unix/x86_64-Release-64/TDataStdPYTHON_wrap.cxx.o
/scratch/rsayoud/Documents/Software_Packages/oce_folder/build/pyocc/Unix/x86_64-Release-64/TDataStdPYTHON_wrap.cxx:4055:9: fatal error: TDataStd_DataMapOfStringHArray1OfInteger.hxx: Aucun fichier ou dossier de ce type
#include<TDataStd_DataMapOfStringHArray1OfInteger.hxx>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/_TDataStd.dir/build.make:71: recipe for target 'CMakeFiles/_TDataStd.dir/Unix/x86_64-Release-64/TDataStdPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_TDataStd.dir/Unix/x86_64-Release-64/TDataStdPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:289: recipe for target 'CMakeFiles/_TDataStd.dir/all' failed
make[1]: *** [CMakeFiles/_TDataStd.dir/all] Error 2
Scanning dependencies of target _IGESCAFControl
[ 0%] Building CXX object CMakeFiles/_IGESCAFControl.dir/Unix/x86_64-Release-64/IGESCAFControlPYTHON_wrap.cxx.o
/scratch/rsayoud/Documents/Software_Packages/oce_folder/build/pyocc/Unix/x86_64-Release-64/IGESCAFControlPYTHON_wrap.cxx:4068:9: fatal error: IGESCAFControl_Reader.hxx: Aucun fichier ou dossier de ce type
#include<IGESCAFControl_Reader.hxx>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/_IGESCAFControl.dir/build.make:71: recipe for target 'CMakeFiles/_IGESCAFControl.dir/Unix/x86_64-Release-64/IGESCAFControlPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_IGESCAFControl.dir/Unix/x86_64-Release-64/IGESCAFControlPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/_IGESCAFControl.dir/all' failed
make[1]: *** [CMakeFiles/_IGESCAFControl.dir/all] Error 2
Scanning dependencies of target _XCAFPrs
[ 0%] Building CXX object CMakeFiles/_XCAFPrs.dir/Unix/x86_64-Release-64/XCAFPrsPYTHON_wrap.cxx.o
/scratch/rsayoud/Documents/Software_Packages/oce_folder/build/pyocc/Unix/x86_64-Release-64/XCAFPrsPYTHON_wrap.cxx:4931:9: fatal error: XCAFPrs_DataMapOfStyleShape.hxx: Aucun fichier ou dossier de ce type
#include<XCAFPrs_DataMapOfStyleShape.hxx>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/_XCAFPrs.dir/build.make:71: recipe for target 'CMakeFiles/_XCAFPrs.dir/Unix/x86_64-Release-64/XCAFPrsPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_XCAFPrs.dir/Unix/x86_64-Release-64/XCAFPrsPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/_XCAFPrs.dir/all' failed
make[1]: *** [CMakeFiles/_XCAFPrs.dir/all] Error 2
Scanning dependencies of target _STEPCAFControl
[ 0%] Building CXX object CMakeFiles/_STEPCAFControl.dir/Unix/x86_64-Release-64/STEPCAFControlPYTHON_wrap.cxx.o
/scratch/rsayoud/Documents/Software_Packages/oce_folder/build/pyocc/Unix/x86_64-Release-64/STEPCAFControlPYTHON_wrap.cxx:5582:9: fatal error: STEPCAFControl_DataMapOfPDExternFile.hxx: Aucun fichier ou dossier de ce type
#include<STEPCAFControl_DataMapOfPDExternFile.hxx>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/_STEPCAFControl.dir/build.make:71: recipe for target 'CMakeFiles/_STEPCAFControl.dir/Unix/x86_64-Release-64/STEPCAFControlPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_STEPCAFControl.dir/Unix/x86_64-Release-64/STEPCAFControlPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/_STEPCAFControl.dir/all' failed
make[1]: *** [CMakeFiles/_STEPCAFControl.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
I have python3.6 on my computer, with oce and swig installed. I am wondering what could be the problem in this case.
Thanks in advance.
I don't know if it could be a problem of cmake version or not, cause I'm using : cmake --version cmake version 3.10.2 is it ok for pyocc?
Best Regards.
Hi, I am trying to install OCE under Ubuntu 18.04, but I got a problem during the building. First I cloned the directory from : git clone https://github.com/tpaviot/oce.git > /dev/null Then I installed the 3dparty libraries. And finally when I run "cmake" it is working (even if it is not detecting the versions of Tcl and Tk) :
But I have a problem when running "make" command, when I run it it starts building until 17% where it shows a linking problem :
I was wondering what could be the solution to properly build and install OCE? I am trying to install OEC in order to couple it with a software that I am using (Siconos).
Thanks in advance.