siconos / siconos-tutorials

Tutorials and examples of simulations using the siconos platform
Apache License 2.0
6 stars 2 forks source link

Circuit breaker Model #3

Closed Ramisay closed 4 months ago

Ramisay commented 3 years ago

Hi,

I am trying to execute the circuit breaker mechanism model. Siconos is installed on my computer, but I am not sure if the mechanisms part of siconos is working or not. When I execute the files inside "Trip_Magnetic" folder using "siconos_mechanisms" it doesn't work and it displays : "Commande introuvable" in the terminal. when I execute it using "siconos -P siconos_mechanisms" it is not working also, it displays : "user/location/bin/siconos : need a file". I can send pictures if necessary. I am not sure if the mechanisms part of siconos is installed on my computer, but when runing simple example such us oscillators, bouncing ball, and so on it is working.

How can I test the compilation with mechanisms option?

I will appreciate any help. Thanks in advance. Rami.

vacary commented 3 years ago

Dear Rami,

By the way, be careful with this example, since some version has clearances. check carefully what you want.

Ramisay commented 3 years ago

Dear Vincent,

Thank you for your answer.

I checked the components :

grep COMPONENTS CMakeCache.txt 

it displays that only the following components are installed:

COMPONENTS:INTERNAL=externals;numerics;kernel;control;mechanics;io

So the Mechanism component is not installed on my computer. The version that I have is the 4.2.0.

Do we have a quick way to install only the missing part of siconos ( mechanisms)?

Thanks in advance.

fperignon commented 3 years ago

Hi Rami,

you should follow the installation process described on the front page of the github project https://github.com/siconos/siconos/ and choose the option file ci_gitlab/siconos_confs/siconos_with_mechanisms.cmake That'll do the job I think. The hard way is the build and install of oce and python-occ, which are dependencies of siconos mechanisms.

Ramisay commented 3 years ago

Hi everyone,

I was installing the missing component as @fperignon described previously, https://github.com/siconos/siconos/, when executing the line :

make -j 4

it runs the command but it stops at 94% with an error :

[ 94%] Linking CXX shared library libsiconos_mechanics.so
/usr/bin/ld : ne peut trouver -lTKCAF
/usr/bin/ld : ne peut trouver -lTKBin
/usr/bin/ld : ne peut trouver -lTKXml
/usr/bin/ld : ne peut trouver -lTKPCAF
/usr/bin/ld : ne peut trouver -lTKBinTObj
/usr/bin/ld : ne peut trouver -lTKXmlTObj
/usr/bin/ld : ne peut trouver -lTKStdSchema
/usr/bin/ld : ne peut trouver -lTKXCAF
/usr/bin/ld : ne peut trouver -lTKXCAFSchema
/usr/bin/ld : ne peut trouver -lTKXmlXCAF
/usr/bin/ld : ne peut trouver -lTKBinXCAF
/usr/bin/ld : ne peut trouver -lTKXDEIGES
/usr/bin/ld : ne peut trouver -lTKXDESTEP
collect2: error: ld returned 1 exit status
mechanics/CMakeFiles/mechanics.dir/build.make:1115: recipe for target 'mechanics/libsiconos_mechanics.so.6.0.0' failed
make[2]: *** [mechanics/libsiconos_mechanics.so.6.0.0] Error 1
CMakeFiles/Makefile2:30436: recipe for target 'mechanics/CMakeFiles/mechanics.dir/all' failed
make[1]: *** [mechanics/CMakeFiles/mechanics.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

The same thing when I run

make install

it stops at 94%

[ 94%] Create swig files from xml for component mechanics.
[ 94%] Built target mechanics_docstrings
[ 94%] Linking CXX shared library libsiconos_mechanics.so
/usr/bin/ld : ne peut trouver -lTKCAF
/usr/bin/ld : ne peut trouver -lTKBin
/usr/bin/ld : ne peut trouver -lTKXml
/usr/bin/ld : ne peut trouver -lTKPCAF
/usr/bin/ld : ne peut trouver -lTKBinTObj
/usr/bin/ld : ne peut trouver -lTKXmlTObj
/usr/bin/ld : ne peut trouver -lTKStdSchema
/usr/bin/ld : ne peut trouver -lTKXCAF
/usr/bin/ld : ne peut trouver -lTKXCAFSchema
/usr/bin/ld : ne peut trouver -lTKXmlXCAF
/usr/bin/ld : ne peut trouver -lTKBinXCAF
/usr/bin/ld : ne peut trouver -lTKXDEIGES
/usr/bin/ld : ne peut trouver -lTKXDESTEP
collect2: error: ld returned 1 exit status
mechanics/CMakeFiles/mechanics.dir/build.make:1115: recipe for target 'mechanics/libsiconos_mechanics.so.6.0.0' failed
make[2]: *** [mechanics/libsiconos_mechanics.so.6.0.0] Error 1
CMakeFiles/Makefile2:30436: recipe for target 'mechanics/CMakeFiles/mechanics.dir/all' failed
make[1]: *** [mechanics/CMakeFiles/mechanics.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

When I run a test using :

make test

it shows :

98% tests passed, 20 tests failed out of 1175

Total Test time (real) =  36.61 sec

The following tests FAILED:
     19 - python_test_friction_contact, (Failed)
     20 - python_test_lcp, (Failed)
     21 - python_test_linalg, (Failed)
     22 - python_test_mcp, (Failed)
     23 - python_test_mcp2, (Failed)
     24 - python_test_mlcp, (Failed)
     25 - python_test_ncp, (Failed)
     26 - python_test_sparse, (Failed)
     27 - python_test_vi, (Failed)
    932 - python_test_Kernel, (Failed)
    933 - python_test_bouncing_ball, (Failed)
    934 - python_test_diode_bridge, (Failed)
    935 - python_test_dynamical_systems, (Failed)
    936 - python_test_lagrangiands_osi, (Failed)
    937 - python_test_matrix_exp, (Failed)
    938 - python_test_modelingTools, (Failed)
    1160 - python_test_smc, (Failed)
    1173 - python_test_occ_inertia, (Failed)
    1174 - python_test_siconos_mechanisms, (Failed)
    1175 - python_test_siconos_mechanisms (Failed)
Errors while running CTest
Makefile:72: recipe for target 'test' failed
make: *** [test] Error 8

I was wondering what could be the problem?

vacary commented 3 years ago

Could you send us the log of the cmake command? Did you install the opencascade libraries? Where are thy on your computer? it seems that they are not found

For your information, the mechanisms component is working with the current master version on commit 376dfa712ee238e156e88e45ab08d79c1ede8c1d

For the failing tests, it seems that pytest is not installed

Ramisay commented 3 years ago

The files are attached. CMakeError.log CMakeOutput.log

For Opencascade libraries, I did not install them yet, it should be before installing siconos?

fperignon commented 3 years ago

Hi,

Le 16 mars 2021 à 12:30, Ramisay @.***> a écrit :

The files are attached. CMakeError.log https://github.com/siconos/siconos-tutorials/files/6148534/CMakeError.log CMakeOutput.log https://github.com/siconos/siconos-tutorials/files/6148535/CMakeOutput.log For Opencascade libraries, I did not install them yet, it should be before installing siconos?

yes obviously since Siconos mechanisms depends on oce, this library must be uptodate before any attempt to run cmake for siconos. You can probably install liboce with the package manager of your OS (apt or similar). On which system are you working ? For example the list of required packages on ubuntu18 is available in the siconos repository in ci_gitlab/dockerfiles/ubuntu18.04-oce/Dockerfile.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/siconos/siconos-tutorials/issues/3#issuecomment-800180456, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3OYU2EJMONSVCUO74NJPLTD46OZANCNFSM4ZFFAO3Q.

Ramisay commented 3 years ago

Hi @fperignon , I'm working on Ubuntu 18.04.4 LTS.

fperignon commented 3 years ago

ok, so installing all the packages listed in ci_gitlab/dockerfiles/ubuntu18.04-oce/Dockerfile will do the job

Le 16 mars 2021 à 15:49, Ramisay @.***> a écrit :

Hi @fperignon https://github.com/fperignon , I'm working on Ubuntu 18.04.4 LTS.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/siconos/siconos-tutorials/issues/3#issuecomment-800324546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3OYU4NOHFQSJMYOVXYFA3TD5VYVANCNFSM4ZFFAO3Q.

Ramisay commented 3 years ago

Hi everyone, I completed recently the installation of all the packages in my laptop, from the list in : https://github.com/siconos/siconos/blob/master/ci_gitlab/dockerfiles/ubuntu18.04/Dockerfile and also I installed opencascade 7.4.0 , and python3-occ v7.4.1 ,

Now when I try to install siconos using :
cmake -DUSER_OPTIONS_FILE=ci_gitlab/siconos_confs/siconos_with_mechanisms.cmake /path_to_source

the installation starts and then shows,

-- Compilation with required package Numpy version 
-- Compilation with required package SWIG version 3.0.12
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find scipy (missing: _scipy_location) (found version "")
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindPythonModule.cmake:30 (find_package_handle_standard_args)
  cmake/siconos_find_common_dep.cmake:194 (find_python_module)
  CMakeLists.txt:102 (include)

It seems that it is not finding scipy path? isn't it? if yes, how can I specify the location? I already verified, all the packages are well installed.

Thanks in advance.

vacary commented 3 years ago

You need scipy to be installed as a package of python. if you pip, you may use

pip install spicy
Ramisay commented 3 years ago

Hi,

cmake is working now, but make still not, after executing

make -j 8 

it stops installing after 68% showing the errors :


/scratch/rsayoud/Documents/siconos/externals/numeric_bindings/boost/numeric/bindings/blas/level1/axpy.hpp:87:115: error:
 cannot convert ‘const std::complex<float>*’ to ‘const float*’ for argument ‘2’ to ‘void cblas_caxpy(blasint, const float*, const
 float*, blasint, float*, blasint)’
   cblas_caxpy( n, OPENBLAS_CONST_FLOAT_CAST(&a), OPENBLAS_CONST_FLOAT_CAST(x), incx,
 OPENBLAS_FLOAT_CAST(y), incy );

                                                           ^

and :

[ 20%] Built target LCP_NSGS_SBM_LCP_NEWTONMIN_SBM
kernel/CMakeFiles/kernel.dir/build.make:422: recipe for target 'kernel/CMakeFiles/kernel.dir/src/utils/SiconosAlgebra/SimpleMatrixSolvers.cpp.o' failed
make[2]: *** [kernel/CMakeFiles/kernel.dir/src/utils/SiconosAlgebra/SimpleMatrixSolvers.cpp.o] Error 1

and :

[ 68%] Built target fc3d__NSGS_ONECONTACT_NSN_GP_Tol_1e-5_Max_10000_inTol_0_inMax_0_INTERNAL_IPARAM_1_Rover4493
[ 68%] Built target fc3d__NSGS_ONECONTACT_ProjectionOnConeWithLocalIteration_Tol_1e-5_Max_10000_inTol_1e-12_inMax_10_Rover11035
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

before stopping at 68%.

Ramisay commented 3 years ago

Hi everyone,

Is there is any specified version of pythonocc and opencasecade that I should use? currently I am using opencascade 7.4.0 , and python3-occ v7.4.1 , but still can not build using : make -j 8 .

Thank you in advance for your help.

vacary commented 3 years ago

Did you fix the previous step?

What us the error message? I can update the code for the last version of the decencies

Ramisay commented 3 years ago

I didn't fix the previous step yet, when I run make -j 8 it shows always the same error message, as I described in my previous comment,

error:
 cannot convert ‘const std::complex<float>*’ to ‘const float*’ for argument ‘2’ to ‘void cblas_caxpy(blasint, const float*, const
 float*, blasint, float*, blasint)’

it seems like there is a problem with "blas" library. I installed the "libopenblas-dev" correctly, and I am using gcc version 7.5.

vacary commented 3 years ago

Could you attach the complete log ? Cmake +make

Ramisay commented 3 years ago

That's all the ".log" files generated after running "cmake" and "make" , and a "make test" also.

LastTestsFailed.log tests.log

LastTest.log

CMakeError.log CMakeOutput.log

Regards.

Ramisay commented 3 years ago

Hi everyone, I installed the 4.4.0 version of siconos recently, but when the installation finished after executing "make install" I got this message

[100%] Built target io_docstrings
[100%] Built target io
[100%] Built target _io_base
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:41 (file):
  file cannot create directory: /usr/local/lib/cmake/siconos-4.4.0.  Maybe
  need administrative privileges.

Makefile:73: recipe for target 'install' failed
make: *** [install] Error 1

Is it normal? because siconos now is installed but with a message error at the end. Siconos can not create a folder 'siconos-4.4.0' inside '/usr/local/lib/cmake/', I tried manually to create a firectory inside '/usr/local/lib/cmake/' but I couldn't.

Also when I run a test 'make -j 8 test' I get :

99% tests passed, 1 tests failed out of 136
Total Test time (real) = 150.07 sec
The following tests FAILED:
 135 - python_test_occ_inertia (Failed)
Errors while running CTest
Makefile:129: recipe for target 'test' failed
make: *** [test] Error 8

and when I run "py.test" :

______ ERROR collecting wrap/siconos/tests/test_occ_inertia.py ______
ImportError while importing test module '/scratch/rsayoud/Documents/siconos_1/build/wrap/siconos/tests/test_occ_inertia.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.7/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
wrap/siconos/tests/test_occ_inertia.py:6: in <module>
    from OCC.BRepPrimAPI import BRepPrimAPI_MakeCylinder, BRepPrimAPI_MakeSphere
E   ModuleNotFoundError: No module named 'OCC.BRepPrimAPI'

I am installing now the 4.4.0 version, and before I had the 4.2.0 version without the mechanisms component. my laptop now has the components :

COMPONENTS:INTERNAL=externals;numerics;kernel;control;mechanics;mechanisms;io

When I try to run siconos it is runing by default the 4.2.0 version, to uninstall the old version should I just delete the siconos directory where it is installed ? or how exactly?

Thanks in advance.

vacary commented 3 years ago

Hi everyone, I installed the 4.4.0 version of siconos recently, but when the installation finished after executing "make install" I got this message

From the zip file ?

[100%] Built target io_docstrings
[100%] Built target io
[100%] Built target _io_base
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:41 (file):
  file cannot create directory: /usr/local/lib/cmake/siconos-4.4.0.  Maybe
  need administrative privileges.

Makefile:73: recipe for target 'install' failed
make: *** [install] Error 1

Is it normal? because siconos now is installed but with a message error at the end. Siconos can not create a folder 'siconos-4.4.0' inside '/usr/local/lib/cmake/', I tried manually to create a firectory inside '/usr/local/lib/cmake/' but I couldn't.

You must run the make install command with administrative privileges.

Also when I run a test 'make -j 8 test' I get :

99% tests passed, 1 tests failed out of 136
Total Test time (real) = 150.07 sec
The following tests FAILED:
 135 - python_test_occ_inertia (Failed)
Errors while running CTest
Makefile:129: recipe for target 'test' failed
make: *** [test] Error 8

It is ok. One test is not passing with the master version

and when I run "py.test" :

______ ERROR collecting wrap/siconos/tests/test_occ_inertia.py ______
ImportError while importing test module '/scratch/rsayoud/Documents/siconos_1/build/wrap/siconos/tests/test_occ_inertia.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.7/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
wrap/siconos/tests/test_occ_inertia.py:6: in <module>
    from OCC.BRepPrimAPI import BRepPrimAPI_MakeCylinder, BRepPrimAPI_MakeSphere
E   ModuleNotFoundError: No module named 'OCC.BRepPrimAPI'

I am installing now the 4.4.0 version, and before I had the 4.2.0 version without the mechanisms component. my laptop now has the components :

COMPONENTS:INTERNAL=externals;numerics;kernel;control;mechanics;mechanisms;io

When I try to run siconos it is runing by default the 4.2.0 version, to uninstall the old version should I just delete the siconos directory where it is installed ? or how exactly?

It seems that OCC if not found by the python that is used for pytest

Thanks in advance.

Ramisay commented 3 years ago

Hi everyone, I installed the 4.4.0 version of siconos recently, but when the installation finished after executing "make install" I got this message

From the zip file ?

Yes from the zip file. I download it from https://github.com/siconos/siconos/releases/tag/4.4.0.rc2 .

[100%] Built target io_docstrings
[100%] Built target io
[100%] Built target _io_base
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:41 (file):
  file cannot create directory: /usr/local/lib/cmake/siconos-4.4.0.  Maybe
  need administrative privileges.

Makefile:73: recipe for target 'install' failed
make: *** [install] Error 1

Is it normal? because siconos now is installed but with a message error at the end. Siconos can not create a folder 'siconos-4.4.0' inside '/usr/local/lib/cmake/', I tried manually to create a firectory inside '/usr/local/lib/cmake/' but I couldn't.

You must run the make install command with administrative privileges.

Also when I run a test 'make -j 8 test' I get :

99% tests passed, 1 tests failed out of 136
Total Test time (real) = 150.07 sec
The following tests FAILED:
 135 - python_test_occ_inertia (Failed)
Errors while running CTest
Makefile:129: recipe for target 'test' failed
make: *** [test] Error 8

It is ok. One test is not passing with the master version

and when I run "py.test" :

______ ERROR collecting wrap/siconos/tests/test_occ_inertia.py ______
ImportError while importing test module '/scratch/rsayoud/Documents/siconos_1/build/wrap/siconos/tests/test_occ_inertia.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.7/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
wrap/siconos/tests/test_occ_inertia.py:6: in <module>
    from OCC.BRepPrimAPI import BRepPrimAPI_MakeCylinder, BRepPrimAPI_MakeSphere
E   ModuleNotFoundError: No module named 'OCC.BRepPrimAPI'

I am installing now the 4.4.0 version, and before I had the 4.2.0 version without the mechanisms component. my laptop now has the components :

COMPONENTS:INTERNAL=externals;numerics;kernel;control;mechanics;mechanisms;io

When I try to run siconos it is runing by default the 4.2.0 version, to uninstall the old version should I just delete the siconos directory where it is installed ? or how exactly?

It seems that OCC if not found by the python that is used for pytest

Thanks in advance.

Ramisay commented 3 years ago

Hi Everyone,

I installed the version 4.4.0 from the zip file, and when I check the components it gives :

COMPONENTS:INTERNAL=externals;numerics;kernel;control;mechanics;mechanisms;io
_Boost_COMPONENTS_SEARCHED:INTERNAL=

But when I run a simple test , BouncingBallTS.cpp for example, it is not working :

|===========================================================|
| Siconos software, version 4.4.0 - Copyright 2021 INRIA    |
|                                                           |
| Free software under Apache 2.0 License.                   |
|===========================================================|

[ Generate CMakeLists.txt file in /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos ]

[------------------- Configure project (cmake) --------------------]

-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- Boost version: 1.65.1
-- Configuring done
-- Generating done
-- Build files have been written to: /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos

[---------------------- Build project (make) ----------------------]

Scanning dependencies of target BallPlugin
[ 16%] Building CXX object CMakeFiles/BallPlugin.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BallPlugin/BallPlugin.cpp.o
[ 33%] Linking CXX shared module BallPlugin.so
[ 33%] Built target BallPlugin
Scanning dependencies of target BouncingBallPlugin
[ 50%] Building CXX object CMakeFiles/BouncingBallPlugin.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallPlugin/BouncingBallPlugin.cpp.o
[ 66%] Linking CXX shared module BouncingBallPlugin.so
[ 66%] Built target BouncingBallPlugin
Scanning dependencies of target BouncingBallTS
[ 83%] Building CXX object CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o
[100%] Linking CXX executable BouncingBallTS
CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o : Dans la fonction « boost::detail::sp_counted_impl_p<Interaction>::dispose() » :
BouncingBallTS.cpp:(.text._ZN5boost6detail17sp_counted_impl_pI11InteractionE7disposeEv[_ZN5boost6detail17sp_counted_impl_pI11InteractionE7disposeEv]+0x305) : référence indéfinie vers « SiconosMemory::~SiconosMemory() »
BouncingBallTS.cpp:(.text._ZN5boost6detail17sp_counted_impl_pI11InteractionE7disposeEv[_ZN5boost6detail17sp_counted_impl_pI11InteractionE7disposeEv]+0x34d) : référence indéfinie vers « SiconosMemory::~SiconosMemory() »
CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o : Dans la fonction « LagrangianLinearTIDS::LagrangianLinearTIDS(boost::shared_ptr<SiconosVector>, boost::shared_ptr<SiconosVector>, boost::shared_ptr<SiconosMatrix>) » :
BouncingBallTS.cpp:(.text._ZN20LagrangianLinearTIDSC2EN5boost10shared_ptrI13SiconosVectorEES3_NS1_I13SiconosMatrixEE[_ZN20LagrangianLinearTIDSC5EN5boost10shared_ptrI13SiconosVectorEES3_NS1_I13SiconosMatrixEE]+0x79) : référence indéfinie vers « LagrangianDS::LagrangianDS(boost::shared_ptr<SiconosVector>, boost::shared_ptr<SiconosVector>, boost::shared_ptr<SiconosMatrix>) »
CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o : Dans la fonction « LagrangianDS::~LagrangianDS() » :
BouncingBallTS.cpp:(.text._ZN12LagrangianDSD2Ev[_ZN12LagrangianDSD5Ev]+0x109) : référence indéfinie vers « SiconosMemory::~SiconosMemory() »
BouncingBallTS.cpp:(.text._ZN12LagrangianDSD2Ev[_ZN12LagrangianDSD5Ev]+0x205) : référence indéfinie vers « SiconosMemory::~SiconosMemory() »
BouncingBallTS.cpp:(.text._ZN12LagrangianDSD2Ev[_ZN12LagrangianDSD5Ev]+0x236) : référence indéfinie vers « SiconosMemory::~SiconosMemory() »
BouncingBallTS.cpp:(.text._ZN12LagrangianDSD2Ev[_ZN12LagrangianDSD5Ev]+0x242) : référence indéfinie vers « SiconosMemory::~SiconosMemory() »
BouncingBallTS.cpp:(.text._ZN12LagrangianDSD2Ev[_ZN12LagrangianDSD5Ev]+0x283) : référence indéfinie vers « SiconosMemory::~SiconosMemory() »
CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o:BouncingBallTS.cpp:(.text._ZN5boost14checked_deleteI11InteractionEEvPT_[_ZN5boost14checked_deleteI11InteractionEEvPT_]+0x1c5) : encore plus de références indéfinies suivent vers « SiconosMemory::~SiconosMemory() »
CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o : Dans la fonction « main » :
BouncingBallTS.cpp:(.text.startup+0x473) : référence indéfinie vers « LagrangianLinearTIR::LagrangianLinearTIR(boost::shared_ptr<SimpleMatrix>) »
BouncingBallTS.cpp:(.text.startup+0x506) : référence indéfinie vers « Interaction::Interaction(boost::shared_ptr<NonSmoothLaw>, boost::shared_ptr<Relation>) »
BouncingBallTS.cpp:(.text.startup+0x5a5) : référence indéfinie vers « NonSmoothDynamicalSystem::insertDynamicalSystem(boost::shared_ptr<DynamicalSystem>) »
BouncingBallTS.cpp:(.text.startup+0x63b) : référence indéfinie vers « NonSmoothDynamicalSystem::link(boost::shared_ptr<Interaction>, boost::shared_ptr<DynamicalSystem>, boost::shared_ptr<DynamicalSystem>) »
BouncingBallTS.cpp:(.text.startup+0x7d9) : référence indéfinie vers « TimeStepping::TimeStepping(boost::shared_ptr<NonSmoothDynamicalSystem>, boost::shared_ptr<TimeDiscretisation>, boost::shared_ptr<OneStepIntegrator>, boost::shared_ptr<OneStepNSProblem>) »
BouncingBallTS.cpp:(.text.startup+0xec2) : référence indéfinie vers « ioMatrix::compareRefFile(SimpleMatrix const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, std::vector<unsigned long, std::allocator<unsigned long> >, boost::shared_ptr<SimpleMatrix>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool) »
CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o:(.data.rel.local.DW.ref._ZTI16SiconosException[DW.ref._ZTI16SiconosException]+0x0) : référence indéfinie vers « typeinfo for SiconosException »
collect2: error: ld returned 1 exit status
CMakeFiles/BouncingBallTS.dir/build.make:101: recipe for target 'BouncingBallTS' failed
make[2]: *** [BouncingBallTS] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/BouncingBallTS.dir/all' failed
make[1]: *** [CMakeFiles/BouncingBallTS.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
  File "/usr/local/bin/siconos", line 826, in <module>
    main()
  File "/usr/local/bin/siconos", line 151, in main
    build_project(args)
  File "/usr/local/bin/siconos", line 768, in build_project
    run_command(cmake_build_command, args.quiet)
  File "/usr/local/bin/siconos", line 799, in run_command
    subprocess.run(command, check=True, **extra_args)
  File "/scratch/rsayoud/anaconda3/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['cmake', '--build', '/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos', '--target', 'install', '--']' returned non-zero exit status 2.

Do you have any idea about this issue ?

Thanks in advance.

vacary commented 3 years ago

I have the impression that you have two installation of siconos that are interfering. Are you sure that you have removed the old one ?

Ramisay commented 3 years ago

Normally I removed the old one, but I will check again ...

Ramisay commented 3 years ago

I checked, and now I have only the 4.4.0 version. When I execute a .py file ( ex. BouncingBallTS.py) it works, but when I execute a .cpp ( ex. BouncingBallTS.cpp) file it is not working, it seems like there is a problem with boost libraries, but I checked I installed all the needed " libraries libboost-dev " , " libboost-filesystem-dev " , " libboost-timer-dev " , " libboost-chrono-dev " , When I run a .cpp file :

|===========================================================|
| Siconos software, version 4.4.0 - Copyright 2021 INRIA    |
|                                                           |
| Free software under Apache 2.0 License.                   |
|===========================================================|

[ Generate CMakeLists.txt file in /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/.siconos ]

[------------------- Configure project (cmake) --------------------]

-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- Boost version: 1.65.1
-- Configuring done
-- Generating done
-- Build files have been written to: /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/.siconos

[---------------------- Build project (make) ----------------------]

Scanning dependencies of target Drawer2DPlugin
[ 25%] Building CXX object CMakeFiles/Drawer2DPlugin.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DPlugin/Drawer2DPlugin.cpp.o
[ 50%] Linking CXX shared module Drawer2DPlugin.so
[ 50%] Built target Drawer2DPlugin
Scanning dependencies of target Drawer2DTS_bifurcation
[ 75%] Building CXX object CMakeFiles/Drawer2DTS_bifurcation.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp.o
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:30:24: warning: integer constant is too large for its type
 unsigned int maxIter = 20000000000000000000000;
                        ^~~~~~~~~~~~~~~~~~~~~~~
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:30:24: warning: large integer implicitly truncated to unsigned type [-Woverflow]
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp: In function ‘int main(int, char**)’:
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:48:10: error: ‘timer’ is not a member of ‘boost’
   boost::timer time;
          ^~~~~
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:49:8: error: request for member ‘restart’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept {aka long int(long int*) noexcept}’
   time.restart();
        ^~~~~~~
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:195:12: error: ‘progress_display’ is not a member of ‘boost’
     boost::progress_display show_progress(NpointSave);
            ^~~~~~~~~~~~~~~~
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:211:6: error: ‘show_progress’ was not declared in this scope
    ++show_progress;
      ^~~~~~~~~~~~~
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:248:10: error: ‘SiconosException’ does not name a type; did you mean ‘SiconosVector’?
   catch (SiconosException e)
          ^~~~~~~~~~~~~~~~
          SiconosVector
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:250:15: error: request for member ‘report’ in ‘e’, which is of non-class type ‘double’
     cout << e.report() << endl;
               ^~~~~~
/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp:257:40: error: request for member ‘elapsed’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept {aka long int(long int*) noexcept}’
   cout << "Computation Time: " << time.elapsed()  << endl;
                                        ^~~~~~~
CMakeFiles/Drawer2DTS_bifurcation.dir/build.make:62: recipe for target 'CMakeFiles/Drawer2DTS_bifurcation.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp.o' failed
make[2]: *** [CMakeFiles/Drawer2DTS_bifurcation.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/Drawer2DTS_bifurcation.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/Drawer2DTS_bifurcation.dir/all' failed
make[1]: *** [CMakeFiles/Drawer2DTS_bifurcation.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
  File "/usr/local/bin/siconos", line 826, in <module>
    main()
  File "/usr/local/bin/siconos", line 151, in main
    build_project(args)
  File "/usr/local/bin/siconos", line 768, in build_project
    run_command(cmake_build_command, args.quiet)
  File "/usr/local/bin/siconos", line 799, in run_command
    subprocess.run(command, check=True, **extra_args)
  File "/scratch/rsayoud/anaconda3/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['cmake', '--build', '/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/Rami_Simu/Rami_Simu_simplifier/Drawer_2D_V/.siconos', '--target', 'install', '--']' returned non-zero exit status 2.
Ramisay commented 3 years ago

Hi, I want just to ask how to properly uninstall siconos ? just with removing the generated files in the build directory, or there is a better way? Thanks in advance.

fperignon commented 3 years ago

Hi,

make uninstall run in the build directory will do the job I think

Le 4 mai 2021 à 11:29, Ramisay @.***> a écrit :

Hi, I want just to ask how to properly uninstall siconos ? just with removing the generated files in the build directory, or there is a better way? Thanks in advance.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/siconos/siconos-tutorials/issues/3#issuecomment-831807139, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3OYU46BQ4EUKXSODG7WSTTL65BFANCNFSM4ZFFAO3Q.

Ramisay commented 3 years ago

Hi,

I think the main problem was in the installation of Oce and python occ. I had a problem with my machine and I recently reinstalled ubuntu ( at inria) and I'm installing now Oce and python-occ as described in https://github.com/siconos/siconos/blob/master/ci_gitlab/dockerfiles/install_oce.sh

I still have a problem with the building of oce , when I run "cmake" it is working :

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Info. Detecting doxygen
-- Found Doxygen: /usr/bin/doxygen (found suitable version "1.8.13", minimum required is "1.8.4") found components:  doxygen 
-- Info. Doxygen is found and can be used
-- Info. Overview building is turned on
-- Info: TCL is used by OCCT
-- Found Tclsh: /usr/bin/tclsh (found version "8.6") 
-- Info: TCL version isn't found
-- Info: TK is used by OCCT
-- Info: TK version isn't found
-- Info: Freetype is used by OCCT
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.1") 
-- Info: TKIVtk and TKIVtkDraw toolkits excluded due to VTK usage is disabled
-- Info: The directories of 3rdparty headers: 
    /usr/include/tcl
    /usr/include/freetype2
-- Info: The directories of 3rdparty libraries: 
    /usr/lib/x86_64-linux-gnu
-- 
Info: (16:40:22) Start collecting all OCCT header files into /scratch/rsayoud/Documents/Software_Packages/oce_folder/build/oce-last/inc ...
-- Info: (16:40:22) Compare FILES with files in package directories...
-- Info: (16:40:28) Create header-links in inc folder...
-- Info: (16:40:29) Checking headers in inc folder...
-- Info: (16:40:30) End the collecting
-- Info: (16:40:30) OCCT toolkits processed
-- Info: (16:40:30) OCCT configuration files prepared
-- Configuring done
-- Generating done
-- Build files have been written to: /scratch/rsayoud/Documents/Software_Packages/oce_folder/build/oce-last

But I have a problem when running "make" command, when I run it it starts building until 17% where it shows a linking problem :

[ 17%] Building CXX object src/TKService/CMakeFiles/TKService.dir/__/Font/Font_SystemFont.cxx.o
[ 17%] Building CXX object src/TKService/CMakeFiles/TKService.dir/__/Font/Font_TextFormatter.cxx.o
[ 17%] Linking CXX shared library ../../lin64/gcc/lib/libTKG3d.so
[ 17%] Built target TKG3d
Scanning dependencies of target TKGeomBase
[ 17%] Linking CXX shared library ../../lin64/gcc/lib/libTKService.so
/usr/bin/ld : cannot find -lXi
collect2: error: ld returned 1 exit status
src/TKService/CMakeFiles/TKService.dir/build.make:2568: recipe for target 'lin64/gcc/lib/libTKService.so.7.6.0' failed
make[2]: *** [lin64/gcc/lib/libTKService.so.7.6.0] Error 1
CMakeFiles/Makefile2:1188: recipe for target 'src/TKService/CMakeFiles/TKService.dir/all' failed
make[1]: *** [src/TKService/CMakeFiles/TKService.dir/all] Error 2

and i got : /usr/bin/ld : cannot find -lXi

I'm still working to find a solution to this issue. If you have any suggestions please let me know.

Thanks in advance.

Ramisay commented 3 years ago

Hi, For the issue of last time, the problem was that I needed to install "libxi-dev" ( which was not in the requirements). Now OCE is installed, and I'm trying to install pyocc, following https://github.com/siconos/siconos/blob/master/ci_gitlab/dockerfiles/install_oce.sh , the cmake commande is working but when I run " make" , I got many errors :

[  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 _PCDM
Scanning dependencies of target _CDF
[  0%] Building CXX object CMakeFiles/_PCDM.dir/Unix/x86_64-Release-64/PCDMPYTHON_wrap.cxx.o
[  0%] Building CXX object CMakeFiles/_CDF.dir/Unix/x86_64-Release-64/CDFPYTHON_wrap.cxx.o
/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
/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
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

It seems like some files are missing or not generated during the cmake step. Any suggestions?

Regards.