Home › Forum › SofaPython3 › Getting Started › [SOLVED] Error while SofaPython3 installation
Tagged: Linux_ubuntu, SOFA_2012, VS2017
- This topic has 7 replies, 3 voices, and was last updated 3 years, 3 months ago by
Hugo.
-
AuthorPosts
-
11 May 2021 at 23:28 #19431
SergioPM23
BlockedHello everyone!
I had the following errors during the cmake-gui configuration step for the SofaPython3 installation:CMake Error at /home/master/ext_plugin_repo/SofaPython3/Plugin/CMakeLists.txt:27 (find_package):
By not providing “FindSofa.Testing.cmake” in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
“Sofa.Testing”, but CMake did not find one.Could not find a package configuration file provided by “Sofa.Testing” with
any of the following names:Sofa.TestingConfig.cmake
sofa.testing-config.cmakeAdd the installation prefix of “Sofa.Testing” to CMAKE_PREFIX_PATH or set
“Sofa.Testing_DIR” to a directory containing one of the above files. If
“Sofa.Testing” provides a separate development package or SDK, be sure it
has been installed.Does anyone know how to solve this error? I would appreciate any help. Thanks in advance.
Cheers,
Sergio12 May 2021 at 08:19 #19432Times
BlockedHi @SergioPM23,
This is just a guess, but it seems to me that you didn’t add the sofa installation path correctly. Is this an in-tree build or an out-of-tree build?
12 May 2021 at 23:11 #19435SergioPM23
Blocked@akTheTimes in-tree build
14 May 2021 at 07:57 #19442Times
Blocked@SergioPM23,
Hmm, ok. Did you try adding the CMAKE_PREFIX_PATH of Sofa.testing? The path is “../build/lib/cmake”15 May 2021 at 13:42 #19455SergioPM23
Blocked@akTheTimes I have added it and now it configurate and generate well, but when I build from the terminal (make -j12) appear the following errors:
17 May 2021 at 13:28 #19464Times
BlockedHi @SergioPM23,
If you go back to cmake you can search for “python3”, and ensure that you didn’t make any mistakes18 May 2021 at 14:23 #19471SergioPM23
Blocked@akTheTimes Yes, it seemed to be okay. I didn’t know what was the problem, so I installed the new Sofa version from the binaries, because I read that it includes SofaPython3. My question now is how I activate the plug-in? I have tried from the plugin manager but it doesn’t work.
Cheers,
Sergio.31 May 2021 at 23:10 #19613Hugo
KeymasterHi @SergioPM23,
1) If you want to compile yourself (as you mentioned in the first place), you must make sure that you use the same compatible branches for SOFA and the SofaPython3 plugin (like v20.12 branch for both or the master branch for both).
Then, once SOFA is compiled and installed, when compiling your SofaPython3 plugin out-of-tree, you will need to define the path to the SOFA install dir in the variable CMAKE_PREFIX_PATH. All the installation steps are detailed here for SofaPython3.
2) An alternative is to use the binaries. SofaPython3 is already compiled and shipped with these binaries. How to use it? Please see the associated page here.
Best wishes,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.