GithubHelp home page GithubHelp logo

Comments (4)

aothms avatar aothms commented on June 5, 2024

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.

from oce.

Ramisay avatar Ramisay commented on June 5, 2024

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.

from oce.

Ramisay avatar Ramisay commented on June 5, 2024

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.

from oce.

Ramisay avatar Ramisay commented on June 5, 2024

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.

from oce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.