- This topic has 3 replies, 3 voices, and was last updated 3 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Difficulty compiling applications/tutorials
Tagged: Linux_ubuntu, SOFA_2012, tutorials
Dear Sofa Community,
I am having difficulty compiling any of the projects in applications/tutorials. For example when I run the command
cmake -DCMAKE_PREFIX_PATH=/home/Olumide/sofa/src/Release/cmake .
in the directory applications/tutorials/oneTetrahedron I get the error:
CMake Error at /home/Olumide/sofa/src/Release/cmake/GTestConfig.cmake:33 (include):
include could not find load file:
/home/Olumide/sofa/src/Release/cmake/GTestTargets.cmake
CMake Error at /home/Olumide/sofa/src/Release/cmake/SofaFrameworkConfig.cmake:99 (include):
include could not find load file:
/home/Olumide/sofa/src/Release/cmake/SofaFrameworkTargets.cmake
CMake Error at /home/Olumide/sofa/src/Release/cmake/SofaFrameworkConfig.cmake:104 (include):
include could not find load file:
/home/Olumide/sofa/src/Release/cmake/SofaFrameworkTargets.cmake
...
I’m assuming its possible to compile these tutorials without modifying their CMakeLists.txt files
Regards,
– Olumide
Hi Olumide,
It looks like you are basing your project on a SOFA-build instead of a SOFA-install.
You should make install
your SOFA and change the CMAKE_PREFIX_PATH to something like cmake -DCMAKE_PREFIX_PATH=/home/Olumide/sofa/src/Release/install .
Hope that helps,
Guillaume.
Thanks @Guillaume. I was also compiling the applications from the command line instead of using the cmake gui to reconfigure and build sofa and its components and applications. That seems to the the recommended way.
Therefore I am now trying to build sofa and components/applications using the cmake gui and I am having lots of problems with glew.
Let’s close this topic then, and focus on the new one.
Best,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.