11 May 2021 at 23 h 28 min #19431
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:
Add 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.
Sergio12 May 2021 at 8 h 19 min #19432
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 h 11 min #1943514 May 2021 at 7 h 57 min #19442
Hmm, ok. Did you try adding the CMAKE_PREFIX_PATH of Sofa.testing? The path is “../build/lib/cmake”15 May 2021 at 13 h 42 min #19455
@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 h 28 min #19464
If you go back to cmake you can search for “python3”, and ensure that you didn’t make any mistakes18 May 2021 at 14 h 23 min #19471
@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.
Sergio.31 May 2021 at 23 h 10 min #19613HugoKeymaster
- SOFA Consortium
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.
- You must be logged in to reply to this topic.