Forum Replies Created
-
AuthorPosts
-
PhoNguyenBlocked
Hi,
I compile plugin sofapython, SofaSphFluid and SofaEulerianFluid in sofa v20.12, the errors are as follows:
[ 28%] Built target Sofa.GL_Sofa_relocatable_install [ 28%] Built target Sofa.GL_test [ 28%] Building CXX object SofaKernel/SofaSimulation/CMakeFiles/SofaSimulation.dir/src/SofaSimulation/initSofaSimulation.cpp.o In file included from /home/pho/Desktop/sofa/src/SofaKernel/SofaSimulation/src/SofaSimulation/initSofaSimulation.cpp:24: /home/pho/Desktop/sofa/src/SofaKernel/modules/SofaSimulationCommon/src/SofaSimulationCommon/init.h:30:1: error: ‘SOFA_SOFASIMULATIONCOMMON_API’ does not name a type; did you mean ‘SOFA_SIMULATION_COMMON_API’? 30 | SOFA_SOFASIMULATIONCOMMON_API void init(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SOFA_SIMULATION_COMMON_API /home/pho/Desktop/sofa/src/SofaKernel/modules/SofaSimulationCommon/src/SofaSimulationCommon/init.h:34:1: error: ‘SOFA_SOFASIMULATIONCOMMON_API’ does not name a type; did you mean ‘SOFA_SIMULATION_COMMON_API’? 34 | SOFA_SOFASIMULATIONCOMMON_API bool isInitialized(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SOFA_SIMULATION_COMMON_API /home/pho/Desktop/sofa/src/SofaKernel/modules/SofaSimulationCommon/src/SofaSimulationCommon/init.h:38:1: error: ‘SOFA_SOFASIMULATIONCOMMON_API’ does not name a type; did you mean ‘SOFA_SIMULATION_COMMON_API’? 38 | SOFA_SOFASIMULATIONCOMMON_API void cleanup(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SOFA_SIMULATION_COMMON_API /home/pho/Desktop/sofa/src/SofaKernel/modules/SofaSimulationCommon/src/SofaSimulationCommon/init.h:42:1: error: ‘SOFA_SOFASIMULATIONCOMMON_API’ does not name a type; did you mean ‘SOFA_SIMULATION_COMMON_API’? 42 | SOFA_SOFASIMULATIONCOMMON_API bool isCleanedUp(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SOFA_SIMULATION_COMMON_API In file included from /home/pho/Desktop/sofa/src/SofaKernel/SofaSimulation/src/SofaSimulation/initSofaSimulation.cpp:25: /home/pho/Desktop/sofa/src/SofaKernel/modules/SofaSimulationGraph/src/SofaSimulationGraph/init.h:30:1: error: ‘SOFA_SOFASIMULATIONGRAPH_API’ does not name a type; did you mean ‘SOFA_SOFASIMULATION_API’? 30 | SOFA_SOFASIMULATIONGRAPH_API void init(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SOFA_SOFASIMULATION_API /home/pho/Desktop/sofa/src/SofaKernel/modules/SofaSimulationGraph/src/SofaSimulationGraph/init.h:34:1: error: ‘SOFA_SOFASIMULATIONGRAPH_API’ does not name a type; did you mean ‘SOFA_SOFASIMULATION_API’? 34 | SOFA_SOFASIMULATIONGRAPH_API bool isInitialized(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SOFA_SOFASIMULATION_API /home/pho/Desktop/sofa/src/SofaKernel/modules/SofaSimulationGraph/src/SofaSimulationGraph/init.h:39:1: error: ‘SOFA_SOFASIMULATIONGRAPH_API’ does not name a type; did you mean ‘SOFA_SOFASIMULATION_API’? 39 | SOFA_SOFASIMULATIONGRAPH_API void cleanup(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SOFA_SOFASIMULATION_API /home/pho/Desktop/sofa/src/SofaKernel/modules/SofaSimulationGraph/src/SofaSimulationGraph/init.h:43:1: error: ‘SOFA_SOFASIMULATIONGRAPH_API’ does not name a type; did you mean ‘SOFA_SOFASIMULATION_API’? 43 | SOFA_SOFASIMULATIONGRAPH_API bool isCleanedUp(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SOFA_SOFASIMULATION_API /home/pho/Desktop/sofa/src/SofaKernel/SofaSimulation/src/SofaSimulation/initSofaSimulation.cpp: In function ‘void sofa::initSofaSimulation()’: /home/pho/Desktop/sofa/src/SofaKernel/SofaSimulation/src/SofaSimulation/initSofaSimulation.cpp:38:31: error: ‘init’ is not a member of ‘sofa::simulation::common’ 38 | sofa::simulation::common::init(); | ^~~~ /home/pho/Desktop/sofa/src/SofaKernel/SofaSimulation/src/SofaSimulation/initSofaSimulation.cpp:39:30: error: ‘init’ is not a member of ‘sofa::simulation::graph’ 39 | sofa::simulation::graph::init(); | ^~~~ make[2]: *** [SofaKernel/SofaSimulation/CMakeFiles/SofaSimulation.dir/build.make:82: SofaKernel/SofaSimulation/CMakeFiles/SofaSimulation.dir/src/SofaSimulation/initSofaSimulation.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:3724: SofaKernel/SofaSimulation/CMakeFiles/SofaSimulation.dir/all] Error 2 make: *** [Makefile:182: all] Error 2
Anyone can help me to solve this problem?
Best,
PhoPhoNguyenBlockedHi @jnbrunet,
Thank you for your help.
It is still error:pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ git checkout v20.12 Already on 'v20.12' Your branch is up to date with 'origin/v20.12'. pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ rm -rf build && mkdir build pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ cd build pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3/build$ cmake -DCMAKE_PREFIX_PATH="$SOFA_BLD/install/lib/cmake;/home/pho/anaconda3/share" .. CMake Error at CMakeLists.txt:108 (find_package): Could not find a package configuration file provided by "pybind11" (requested version 2.3) with any of the following names: pybind11Config.cmake pybind11-config.cmake Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set "pybind11_DIR" to a directory containing one of the above files. If "pybind11" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/home/pho/Desktop/plugin.SofaPython3/SofaPython3/CMakeFiles/CMakeOutput.log". See also "/home/pho/Desktop/plugin.SofaPython3/SofaPython3/CMakeFiles/CMakeError.log". pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3/build$
PhoNguyenBlockedHi @Hugo,
Yeap, I installed pybind11 version 2.5.0 as shown in my question (10 February 2021).
-- pybind11: Version: 2.5.0 Config: /home/pho/anaconda3/share/cmake/pybind11/pybind11Config.cmake -- SOFA Framework: Version: 20.12.00 Location: /home/pho/Desktop/sofa/build/install
However, when I run this command
cmake -DCMAKE_PREFIX_PATH="$SOFA_BLD/install/lib/cmake;$SOFA_BLD/install/plugins" $SP3_SRC
Sofa cannot detect pybind11.
Best,
PhoPhoNguyenBlockedHi Guillaume,
I tried your suggestion, and the errors came as follows:
pho@pho:~/Desktop/plugin.SofaPython3/build$ cmake -DCMAKE_PREFIX_PATH="$SOFA_BLD/install/lib/cmake;$SOFA_BLD/install/plugins" $SP3_SRC CMake Error at CMakeLists.txt:108 (find_package): Could not find a package configuration file provided by "pybind11" (requested version 2.3) with any of the following names: pybind11Config.cmake pybind11-config.cmake Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set "pybind11_DIR" to a directory containing one of the above files. If "pybind11" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/home/pho/Desktop/plugin.SofaPython3/SofaPython3/CMakeFiles/CMakeOutput.log". See also "/home/pho/Desktop/plugin.SofaPython3/SofaPython3/CMakeFiles/CMakeError.log". pho@pho:~/Desktop/plugin.SofaPython3/build$
Then I tried to fix this error in Cmake, the error appeared as my previous question.
How can I solve this problem?PhoNguyenBlockedHi,
I compile sofapython3 with sofa v20.12. There is one error as follows:
pho@pho:~/Desktop/plugin.SofaPython3/build$ cmake -DCMAKE_PREFIX_PATH=$SOFA_BLD/install/lib/cmake $SP3_SRC -- Python: Version: 3.9.1 Executable: /usr/bin/python3.9 Headers: /usr/include/python3.9 Libraries: /usr/lib/x86_64-linux-gnu/libpython3.9.so User site: /home/pho/.local/lib/python3.9/site-packages -- pybind11: Version: 2.5.0 Config: /home/pho/anaconda3/share/cmake/pybind11/pybind11Config.cmake -- SOFA Framework: Version: 20.12.00 Location: /home/pho/Desktop/sofa/build/install CMake Error at Plugin/CMakeLists.txt:39 (find_package): By not providing "FindSofaSimulationGraph.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SofaSimulationGraph", but CMake did not find one. Could not find a package configuration file provided by "SofaSimulationGraph" with any of the following names: SofaSimulationGraphConfig.cmake sofasimulationgraph-config.cmake Add the installation prefix of "SofaSimulationGraph" to CMAKE_PREFIX_PATH or set "SofaSimulationGraph_DIR" to a directory containing one of the above files. If "SofaSimulationGraph" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred!
How can I solve this problem?
Best,
Pho23 November 2020 at 02:01 in reply to: [SOLVED] Kinematic constraints between rigid bodies (list of available joints) #17782PhoNguyenBlockedHi,
On the sofa screen, I want to use a mouse for selecting several nodes or elements of the mesh and then show their ID number (or other properties). Any one can help me to do that?
Best,
PhoPhoNguyenBlockedHi,
I want to setup a forcefield for simulating a deformable quadrilateral surface mesh.
Are there any updated or related works in SOFA now?Best,
PhoPhoNguyenBlockedHi @jnbrunet,
Thank you for your help. I met another error when click “ninja” after Cmake generation for SP3. The error in terminal was as follows:
pho@pho:~/Desktop/plugin.SofaPython3/build$ cmake -DCMAKE_PREFIX_PATH=$SOFA_BLD/install/lib/cmake $SP3_SRC -- Python version: 3.8.5 -- Python executable: /usr/bin/python3 -- Python include dirs: /usr/include/python3.8 -- Python libraries: /usr/lib/x86_64-linux-gnu/libpython3.8.so -- Python user site: /home/pho/.local/lib/python3.8/site-packages -- pybind11 version: 2.5.0 -- pybind11 config: /home/pho/anaconda3/share/cmake/pybind11/pybind11Config.cmake Adding plugin SofaPython3 Adding plugin SofaPython3_Bindings -- Python module 'Core' added to python3/site-packages/Sofa -- Python module 'Components' added to python3/site-packages/Sofa -- Python module 'Helper' added to python3/site-packages/Sofa -- Python module 'Simulation' added to python3/site-packages/Sofa -- Python module 'Types' added to python3/site-packages/Sofa -- Python package /home/pho/Desktop/plugin.SofaPython3/SofaPython3/bindings/Sofa/package added to directory python3/site-packages/Sofa -- Python package /home/pho/Desktop/plugin.SofaPython3/SofaPython3/bindings/SofaRuntime/package added to directory python3/site-packages/SofaRuntime -- Python module 'SofaRuntime' added to python3/site-packages/SofaRuntime -- Python module 'Gui' added to python3/site-packages/Sofa -- Python package /home/pho/Desktop/plugin.SofaPython3/SofaPython3/bindings/SofaTypes/package added to directory python3/site-packages/SofaTypes -- Python module 'SofaTypes' added to python3/site-packages/SofaTypes -- Python module 'SofaBaseTopology' added to python3/site-packages/Sofa Adding plugin SofaPython3_Examples Adding plugin SofaPython3_Docs -- Python package /home/pho/Desktop/plugin.SofaPython3/SofaPython3/splib added to directory python3/site-packages/splib -- Python package /home/pho/Desktop/plugin.SofaPython3/SofaPython3/constants added to directory python3/site-packages/Sofa/constants -- Configuring done -- Generating done -- Build files have been written to: /home/pho/Desktop/plugin.SofaPython3/build pho@pho:~/Desktop/plugin.SofaPython3/build$ make make: *** No targets specified and no makefile found. Stop. pho@pho:~/Desktop/plugin.SofaPython3/build$ ninja [1/7] Linking CXX executable bin/Bindings.SofaTypes.Tests FAILED: bin/Bindings.SofaTypes.Tests : && /usr/bin/c++ bindings/SofaTypes/tests/CMakeFiles/Bindings.SofaTypes.Tests.dir/PythonModule_SofaTypes_test.cpp.o -o bin/Bindings.SofaTypes.Tests -Wl,-rpath,/home/pho/Desktop/plugin.SofaPython3/build/lib:/home/pho/Desktop/sofa/build/install/lib: /home/pho/Desktop/sofa/build/install/lib/libSofaGTestMain.a lib/libSofaPython3.so /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationTree.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationGraph.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationCommon.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationGraph.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationCommon.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationCore.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaCore.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaDefaultType.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaHelper.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libgtest.so.2.6.2 /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLEW.so /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.71.0 -lpthread /usr/lib/x86_64-linux-gnu/libboost_atomic.so.1.71.0 /usr/lib/x86_64-linux-gnu/libpython3.8.so && : /usr/bin/ld: /home/pho/Desktop/sofa/build/install/lib/libSofaGTestMain.a(SofaGTestMain.cpp.o): relocation R_X86_64_32 against .bss can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status [2/7] Linking CXX executable bin/Bindings.SofaRuntime.Tests FAILED: bin/Bindings.SofaRuntime.Tests : && /usr/bin/c++ bindings/SofaRuntime/tests/CMakeFiles/Bindings.SofaRuntime.Tests.dir/PythonModule_SofaRuntime_test.cpp.o -o bin/Bindings.SofaRuntime.Tests -Wl,-rpath,/home/pho/Desktop/plugin.SofaPython3/build/lib/python3/site-packages/Sofa:/home/pho/Desktop/sofa/build/install/lib:/home/pho/Desktop/plugin.SofaPython3/build/lib: /home/pho/Desktop/sofa/build/install/lib/libSofaGTestMain.a lib/python3/site-packages/Sofa/Core.cpython-38-x86_64-linux-gnu.so /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationTree.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationGraph.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationCommon.so.20.06.99 lib/libSofaPython3.so /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationGraph.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationCommon.so.20.06.99 /usr/lib/x86_64-linux-gnu/libpython3.8.so /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationGraph.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaBaseVisual.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaBaseTopology.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationCommon.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaSimulationCore.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaCore.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaDefaultType.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libSofaHelper.so.20.06.99 /home/pho/Desktop/sofa/build/install/lib/libgtest.so.2.6.2 /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLEW.so /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.71.0 -lpthread /usr/lib/x86_64-linux-gnu/libboost_atomic.so.1.71.0 && : /usr/bin/ld: /home/pho/Desktop/sofa/build/install/lib/libSofaGTestMain.a(SofaGTestMain.cpp.o): relocation R_X86_64_32 against .bss can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status [6/7] Linking CXX shared library lib/python3/site-packages/SofaTypes/SofaTypes.cpython-38-x86_64-linux-gnu.so ninja: build stopped: subcommand failed.
How can we fix in this scenario?
Best,
PhoPhoNguyenBlockedHi
It still same error:
pho@pho:~$ cd $SP3_SRC pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ git checkout master Switched to branch 'master' Your branch is up to date with 'origin/master'. pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ git pull Already up to date. pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ cd $SP3_BLD pho@pho:~/Desktop/plugin.SofaPython3/build$ cmake -DCMAKE_PREFIX_PATH=$SOFA_BLD/install/lib/cmake $SP3_SRC -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.5", minimum required is "3.7") -- Python version: 3.8.5 -- Python executable: /usr/bin/python3 -- Python include dirs: /usr/include/python3.8 -- Python libraries: /usr/lib/x86_64-linux-gnu/libpython3.8.so -- Python user site: /home/pho/.local/lib/python3.8/site-packages -- pybind11 version: 2.5.0 -- pybind11 config: /home/pho/anaconda3/share/cmake/pybind11/pybind11Config.cmake Adding plugin SofaPython3 CMake Error at Plugin/CMakeLists.txt:38 (find_package): Found package configuration file: /home/pho/Desktop/sofa/build/install/lib/cmake/SofaGeneral/SofaGeneralConfig.cmake but it set SofaGeneral_FOUND to FALSE so package "SofaGeneral" is considered to be NOT FOUND. Reason given by package: The following imported targets are referenced, but are missing: SofaGeneralMeshCollision SofaGeneralVisual SofaGraphComponent -- Configuring incomplete, errors occurred! See also "/home/pho/Desktop/plugin.SofaPython3/build/CMakeFiles/CMakeOutput.log". See also "/home/pho/Desktop/plugin.SofaPython3/build/CMakeFiles/CMakeError.log". pho@pho:~/Desktop/plugin.SofaPython3/build$
Do I need to remove both sofa and SP3 and compile again?
Best,
PhoPhoNguyenBlockedHi @jnbrunet,
I followed your suggestion, but Cmake still showed errors in terminal ass follows:
pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ git remote add fredroy https://github.com/fredroy/sofa.git fatal: remote fredroy already exists. pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ git fetch fredroy pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ git checkout -b fix_outoftree_compil fatal: A branch named 'fix_outoftree_compil' already exists. pho@pho:~/Desktop/plugin.SofaPython3/SofaPython3$ cd $SP3_BLD pho@pho:~/Desktop/plugin.SofaPython3/build$ cmake -DCMAKE_PREFIX_PATH=$SOFA_BLD/install/lib/cmake $SP3_SRC -- Python version: 3.8.2 -- Python executable: /usr/bin/python3 -- Python include dirs: /usr/include/python3.8 -- Python libraries: /usr/lib/x86_64-linux-gnu/libpython3.8.so -- Python user site: /home/pho/.local/lib/python3.8/site-packages -- pybind11 version: 2.5.0 -- pybind11 config: /home/pho/anaconda3/share/cmake/pybind11/pybind11Config.cmake Adding plugin SofaPython3 CMake Error at Plugin/CMakeLists.txt:38 (find_package): Found package configuration file: /home/pho/Desktop/sofa/build/install/lib/cmake/SofaGeneral/SofaGeneralConfig.cmake but it set SofaGeneral_FOUND to FALSE so package "SofaGeneral" is considered to be NOT FOUND. Reason given by package: The following imported targets are referenced, but are missing: SofaGeneralMeshCollision SofaGeneralVisual SofaGraphComponent -- Configuring incomplete, errors occurred! See also "/home/pho/Desktop/plugin.SofaPython3/build/CMakeFiles/CMakeOutput.log". See also "/home/pho/Desktop/plugin.SofaPython3/build/CMakeFiles/CMakeError.log". pho@pho:~/Desktop/plugin.SofaPython3/build$
This error is same as previous problem.
Best,
PhoPhoNguyenBlockedHi @jnbrunet,
Thank you for your explanation. I will wait for your next response.
Please answer me when you have a new solution after your team meeting.Best regards,
PhoPhoNguyenBlockedHi @jnbrunet,
Sorry, the error is:
CMake Error at Plugin/CMakeLists.txt:38 (find_package): Found package configuration file: /home/pho/Desktop/sofa/build/install/lib/cmake/SofaGeneral/SofaGeneralConfig.cmake but it set SofaGeneral_FOUND to FALSE so package "SofaGeneral" is considered to be NOT FOUND. Reason given by package: The following imported targets are referenced, but are missing: SofaGeneralMeshCollision SofaGeneralVisual SofaGraphComponent
It is also on this image:
file:///home/pho/Pictures/Screenshot%20from%202020-10-30%2018-12-33.pngSorry, I don’t know how to load an image from my computer to this forum.
Best,
PhoPhoNguyenBlockedHi @jnbrunet,
Thank you for your answer. I have no problem when compiling Sofa. But, i meet another problem when compiling SP3 at configure as folows:
How to solve this problem?
Best regards,
PhoPhoNguyenBlockedHi @jnbrunet,
In compiling Sofapython3, I had successful config and generate Sofapython3 in linux 20.04. However, the error appeared after clicking “ninja”. This is comments on the terrminal.
FAILED: bindings/SofaTypes/CMakeFiles/Bindings.SofaTypes.dir/src/SofaPython3/SofaTypes/Binding_Mat.cpp.o /usr/bin/clang++-9 -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DBindings_SofaTypes_EXPORTS -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DNDEBUG -DSOFA_HAVE_SOFAPYTHON3 -I/home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src -I/home/pho/Desktop/SofaPython3/plugin.SofaPython3/Plugin/src -I/home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/Sofa/src -isystem /home/pho/anaconda3/include -isystem /usr/include/python3.8 -isystem /home/pho/Desktop/sofa/build/install/include/SofaFramework -isystem /home/pho/Desktop/sofa/build/install/include/extlibs/json -isystem /home/pho/Desktop/sofa/build/install/include/extlibs/GTest -isystem /usr/include/eigen3 -isystem /home/pho/Desktop/sofa/build/install/include/SofaSimulation -isystem /home/pho/Desktop/sofa/build/install/include/SofaBase -fPIC -fvisibility=hidden -std=c++17 -flto -fsized-deallocation -Dregister= -fvisibility=hidden -DFRAMEWORK_TEST_RESOURCES_DIR=\"/home/pho/Desktop/sofa/src/SofaKernel/SofaFramework/resources/tests\" -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -std=c++17 -MD -MT bindings/SofaTypes/CMakeFiles/Bindings.SofaTypes.dir/src/SofaPython3/SofaTypes/Binding_Mat.cpp.o -MF bindings/SofaTypes/CMakeFiles/Bindings.SofaTypes.dir/src/SofaPython3/SofaTypes/Binding_Mat.cpp.o.d -o bindings/SofaTypes/CMakeFiles/Bindings.SofaTypes.dir/src/SofaPython3/SofaTypes/Binding_Mat.cpp.o -c /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:214:9: error: no matching function for call to 'addMat' ::addMat(m, p); ^~~~~~~~ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:62:13: note: candidate template ignored: substitution failure : deduced non-type template argument does not have the same type as the corresponding template parameter ('unsigned long' vs 'int') static void addMat(py::module & /*m*/, py::class_<Mat<R, C, double>> &p) { ^ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:243:9: error: no matching function for call to 'addMat' ::addMat(m, p); ^~~~~~~~ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:62:13: note: candidate template ignored: substitution failure : deduced non-type template argument does not have the same type as the corresponding template parameter ('unsigned long' vs 'int') static void addMat(py::module & /*m*/, py::class_<Mat<R, C, double>> &p) { ^ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:272:9: error: no matching function for call to 'addMat' ::addMat(m, p); ^~~~~~~~ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:62:13: note: candidate template ignored: substitution failure : deduced non-type template argument does not have the same type as the corresponding template parameter ('unsigned long' vs 'int') static void addMat(py::module & /*m*/, py::class_<Mat<R, C, double>> &p) { ^ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:301:9: error: no matching function for call to 'addMat' ::addMat(m, p); ^~~~~~~~ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:62:13: note: candidate template ignored: substitution failure : deduced non-type template argument does not have the same type as the corresponding template parameter ('unsigned long' vs 'int') static void addMat(py::module & /*m*/, py::class_<Mat<R, C, double>> &p) { ^ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:330:9: error: no matching function for call to 'addMat' ::addMat(m, p); ^~~~~~~~ /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Mat.cpp:62:13: note: candidate template ignored: substitution failure : deduced non-type template argument does not have the same type as the corresponding template parameter ('unsigned long' vs 'int') static void addMat(py::module & /*m*/, py::class_<Mat<R, C, double>> &p) { ^ 5 errors generated. [2/4] Building CXX object bindings/Sof...ofaPython3/SofaTypes/Binding_Vec.cpp.o FAILED: bindings/SofaTypes/CMakeFiles/Bindings.SofaTypes.dir/src/SofaPython3/SofaTypes/Binding_Vec.cpp.o /usr/bin/clang++-9 -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DBindings_SofaTypes_EXPORTS -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DNDEBUG -DSOFA_HAVE_SOFAPYTHON3 -I/home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src -I/home/pho/Desktop/SofaPython3/plugin.SofaPython3/Plugin/src -I/home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/Sofa/src -isystem /home/pho/anaconda3/include -isystem /usr/include/python3.8 -isystem /home/pho/Desktop/sofa/build/install/include/SofaFramework -isystem /home/pho/Desktop/sofa/build/install/include/extlibs/json -isystem /home/pho/Desktop/sofa/build/install/include/extlibs/GTest -isystem /usr/include/eigen3 -isystem /home/pho/Desktop/sofa/build/install/include/SofaSimulation -isystem /home/pho/Desktop/sofa/build/install/include/SofaBase -fPIC -fvisibility=hidden -std=c++17 -flto -fsized-deallocation -Dregister= -fvisibility=hidden -DFRAMEWORK_TEST_RESOURCES_DIR=\"/home/pho/Desktop/sofa/src/SofaKernel/SofaFramework/resources/tests\" -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -std=c++17 -MD -MT bindings/SofaTypes/CMakeFiles/Bindings.SofaTypes.dir/src/SofaPython3/SofaTypes/Binding_Vec.cpp.o -MF bindings/SofaTypes/CMakeFiles/Bindings.SofaTypes.dir/src/SofaPython3/SofaTypes/Binding_Vec.cpp.o.d -o bindings/SofaTypes/CMakeFiles/Bindings.SofaTypes.dir/src/SofaPython3/SofaTypes/Binding_Vec.cpp.o -c /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Vec.cpp /home/pho/Desktop/SofaPython3/plugin.SofaPython3/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Vec.cpp:186:47: error: no matching function for call to '__str__' p.def("__str__", [](VecClass &v) { return pyVec::__str__(v); });
Could you please help me to solve this problem?
PhoPhoNguyenBlockedHi Hugo,
Sorry for my late reply. It is ok!
Best regard,
PhoPhoNguyenBlockedHi Hugo,
Thank you for your answer.
I don’t now how to attach a file here, please open this link and enter password
https://jstorage-2018.jaist.ac.jp/s/E2HsTSE4mrwfd4y
Pass: Ro123456Please help me to solve that problem.
Best regard
Pho6 December 2019 at 12:38 in reply to: [SOLVED] Problem in generating Cmake-gui when building Sofa #14690PhoNguyenBlockedHi Hugo,
How are you?
Thank you so much for your help. I reinstalled ubuntu and try again. Now it works.
Sincerely,
PhoPhoNguyenBlockedHi,
I cannot run Sofa in ubuntu 18.04 after downloading its binary in website: v19.06.01. linux.zip. The errors is here:
[INFO] [GUIManager] INFO(SofaGUI): lastUsedGUI.ini not found; using default GUI.
The constructor with a QGLFormat is deprecated, use the regular contructor instead.
/home/phonguyen/SOFA_v19.06.01_Linux/bin/runSofa: symbol lookup error: /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0: undefined symbol: xcb_send_request_with_fds.Please help me to solve this problem.
30 September 2019 at 15:22 in reply to: [SOLVED] Install "Additional libraries" for Visual Sudio 2019 #14318PhoNguyenBlockedThank you.
-
AuthorPosts