Cannot compile Caribou/SofaCaribou #54
-
I spent already way too much time trying to make it work, so I'm calling for help :) CMake Error at /home/ateixeira/Sofa/src/build/cmake/GTestConfig.cmake:35 (include): include could not find requested file: /home/ateixeira/Sofa/src/build/cmake/GTestTargets.cmake Call Stack (most recent call first): /home/ateixeira/Sofa/src/build/cmake/SofaFrameworkConfig.cmake:91 (find_package) cmake/FindSOFA.cmake:19 (find_package) CMakeLists.txt:56 (find_package) CMake Error at /home/ateixeira/Sofa/src/build/cmake/SofaFrameworkConfig.cmake:99 (include): include could not find requested file: /home/ateixeira/Sofa/src/build/cmake/SofaFrameworkTargets.cmake Call Stack (most recent call first): cmake/FindSOFA.cmake:19 (find_package) CMakeLists.txt:56 (find_package) CMake Error at /home/ateixeira/Sofa/src/build/cmake/SofaFrameworkConfig.cmake:104 (include): include could not find requested file: /home/ateixeira/Sofa/src/build/cmake/SofaFrameworkTargets.cmake Call Stack (most recent call first): cmake/FindSOFA.cmake:19 (find_package) CMakeLists.txt:56 (find_package) the command used was : with Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ateixeira0163 , Make sure you are using the installation path of both SOFA and SofaPython3. The installation path is the path to the directory created during the ~ $ cd ~/Sofa/src/build
~/Sofa/src/build $ cmake -DPLUGIN_SOFAPYTHON3=ON ..
~/Sofa/src/build $ make
~/Sofa/src/build $ make install
~/Sofa/src/build $ export SOFA_ROOT=~/Sofa/src/build/install # See the "/install" here?
~ $ cd ~/caribou/src/build # Or whatever your caribou build directory path is...
~/caribou/src/build $ cmake .. # It should find SOFA and SofaPython3 correctly
~/caribou/src/build $ make If you noticed, I used the environment variable |
Beta Was this translation helpful? Give feedback.
Hi @ateixeira0163 ,
Make sure you are using the installation path of both SOFA and SofaPython3. The installation path is the path to the directory created during the
make install
command. It is usually the build directory path, followed by the "install" directory. In your case, it looks like SofaPython3 is compiled alongside SOFA, so it is even simpler. Something like this should work: