Home › Forum › SOFA › Building SOFA › Errors While Building Sofa Python 3
Tagged: 64_bits, GCC, Linux_ubuntu, Plugin_other, SOFA_2006, SofaPython3; SofaQtQuick
- This topic has 2 replies, 2 voices, and was last updated 3 years, 7 months ago by
Hugo.
-
AuthorPosts
-
8 January 2021 at 09:37 #18117
Shivam
BlockedHello,
I am new to Sofa. I am trying to build Sofa along with SofaQtQuick plugin. I have followed the instructions given here: https://github.com/SofaDefrost/SofaQtQuick
However, I am facing some errors while configuring Sofa Python 3 on cmake. The following directories cannot be located:
SofaBaseTopology
SofaBaseUtils
SofaBaseVisualThe errors in cmake gui can be seen in the image.
The configuration process in cmake-gui can be seen here:
Install prefix: /home/shivam/Softwares/runSofa2/build/install Found PythonInterp: /usr/bin/python3.8 (found version "3.8.5") CMake Deprecation Warning at CMakeLists.txt:225 (message): Deprecated components are activated (SOFA_WITH_DEPRECATED_COMPONENTS variable is ON) Adding module SofaSparseSolver SofaSparseSolver: using built-in metis library Adding module SofaPreconditioner Adding module SofaHaptics Adding module SofaValidation Adding module SofaDenseSolver Adding module SofaNonUniformFem Adding module SofaOpenglVisual Adding module SofaExporter SofaPython disabled, will not compile python bindings. CMake Deprecation Warning at SofaAdvanced/CMakeLists.txt:15 (message): SofaAdvanced is deprecated. You should now explicitely find (find_package) and link (target_link_library) each module you need within: SofaNonUniformFem Adding collection SofaComponentAll SofaTest: optional dependency SofaPython NOT found, Python_test won't be built Adding plugin CImgPlugin CImgPlugin: TIFF Image Format enabled CImgPlugin: JPEG Image Format enabled CImgPlugin: PNG Image Format enabled Adding plugin SofaMiscCollision SofaMiscModule: build all maintained sofa components. SofaMiscCollision: optional dependency SofaSphFluid not found de-activing: <SpatialGridPointModel> Adding application Modeler CMake Deprecation Warning at applications/projects/Modeler/CMakeLists.txt:1 (message): Modeler project is deprecated Modeler executable: Using Qt5 CMake Warning at SofaKernel/SofaFramework/SofaMacros.cmake:1198 (message): Deprecated macro. Use 'sofa_add_targets_to_package' instead. Call Stack (most recent call first): applications/projects/Modeler/exec/CMakeLists.txt:20 (sofa_install_targets) Adding application runSofa Write Plugin list at /home/shivam/Softwares/runSofa2/build/lib/plugin_list.conf.default Adding external directory: plugins (/home/shivam/Softwares/runSofa2/plugins) SofaPython3 is compiled as a subproject to the external project 'Sofa'. Found PythonInterp: /usr/bin/python3.8 (found suitable version "3.8.5", minimum required is "3.7") -- Python version: 3.8.5 -- Python executable: /usr/bin/python3.8 -- Python include dirs: /usr/include/python3.8 -- Python libraries: /usr/lib/x86_64-linux-gnu/libpython3.8.so -- Python user site: /root/.local/lib/python3.8/site-packages -- pybind11 version: 2.4.3 -- pybind11 config: /usr/lib/cmake/pybind11/pybind11Config.cmake Adding plugin SofaPython3 Adding plugin SofaPython3_Bindings CMake Error at /home/shivam/Softwares/runSofa2/plugins/SofaPython3/bindings/Sofa/src/SofaPython3/Sofa/Core/CMakeLists.txt:71 (find_package): By not providing "FindSofaBaseVisual.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SofaBaseVisual", but CMake did not find one. Could not find a package configuration file provided by "SofaBaseVisual" with any of the following names: SofaBaseVisualConfig.cmake sofabasevisual-config.cmake Add the installation prefix of "SofaBaseVisual" to CMAKE_PREFIX_PATH or set "SofaBaseVisual_DIR" to a directory containing one of the above files. If "SofaBaseVisual" provides a separate development package or SDK, be sure it has been installed. Configuring incomplete, errors occurred! See also "/home/shivam/Softwares/runSofa2/build/CMakeFiles/CMakeOutput.log". See also "/home/shivam/Softwares/runSofa2/build/CMakeFiles/CMakeError.log".
I tried to give path of the directories explicitly as follows:
SofaBaseTopology:
/home/shivam/Softwares/runSofa2/sofa/SofaKernel/modules/SofaBaseTopology
SofaBaseUtils:
/home/shivam/Softwares/runSofa2/sofa/SofaKernel/modules/SofaBaseUtils
SofaBaseVisual:
/home/shivam/Softwares/runSofa2/sofa/SofaKernel/modules/SofaBaseVisual
But the error still remains the same.
It shall be very helpful if anyone can point out what am I missing.14 January 2021 at 09:08 #18206Hugo
KeymasterDear @shivamkp29
The SofaQtQuick was developed by an engineer @bmarques but the projet is over now. There is unfortunately no one for now active on this project for now.
You can find a working version using the dedicated “sqq_binaries” branch for:
– SOFA repository “SofaDefrost”, branche sqq_binaries
– SoftRobots: SofaDefrost, branche sqq_binaries
– SofaPython3: sofa-framework, branche sqq_binaries
– SofaQtQuick: SofaDefrost, branche sqq_binairesBest,
Hugo
14 January 2021 at 09:21 #18208Hugo
KeymasterMoreover note, that the first official release of SofaPython3 with SOFA will be done in the upcoming release v20.12. Before, SofaPython3 was a alpha version.
-
AuthorPosts
- You must be logged in to reply to this topic.