Forum Replies Created
-
AuthorPosts
-
AmirBlocked
Hi @Hugo, @JN
Thanks for your answer. I tried to install the libopengl0 package as you recommended, But it couldn’t locate the package:E: Unable to locate package libopengl0
I have python 2.7 on my Linux. should I upgrade it to python 3 for this version of the Sofa?
Many Thanks
AmirAmirBlockedDear @ Hugo
Thanks. it was very helpful. another question is for using the hyperelastic modeling do I need a Flexible plugin? because I found the Ogden model in that plugin. and in the binary version is it possible to add this plugin?
ThanksAmirBlockedHi @Hugo
Thanks for your help. can you address me some examples in the Sofa?
Thanks
AmirAmirBlockedDear @jnbrunet
Thanks for your advice. it works and the problem is solved.
Best Regards
AMirAmirBlockedDear @Hugo
I didn’t get it what you mean? removing SofaComponentCommon from Cmakelist and delete Cmake cache and recompile and rebuild again? if that is what you mean I did it again and the error is the same.I always recompile SOFA+Softrobot togetherMany thanks for your support
AmirAmirBlockedDear @Hugo
Thank you, As you told I added the SofaComponentCommon but after compile, the error is not solved:-- Build files have t written to: /home/amir/sofa/build [13/15] Linking CXX shared library lib/libSoftRobots.so.1.0 FAILED: : && /usr/bin/g++ -fPIC -Wall -W -O3 -DNDEBUG -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,--no-undefined -lc -shared -Wl,-soname,libSoftRobots.so.1.0 -o lib/libSoftRobots.so.1.0 external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/initSoftRobots.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/behavior/SoftRobotsBaseConstraint.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/behavior/SoftRobotsConstraint.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/constraint/CableConstraint.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/constraint/PartialRigidificationConstraint.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/constraint/SurfacePressureConstraint.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/constraint/UnilateralPlaneConstraint.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/constraint/model/CableModel.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/constraint/model/SurfacePressureModel.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/AnimationEditor.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/DataVariationLimiter.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/InteractiveControl.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/modules/Network.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/modules/SplitFloat.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/modules/Serial.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/SerialPortBridgeGeneric.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/engine/CenterOfMass.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/engine/VolumeFromTriangles.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/engine/VolumeFromTetrahedrons.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/forcefield/PREquivalentStiffnessForceField.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/forcefield/PartialRigidificationForceField.cpp.o external_directories/plugins/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/forcefield/PipeForceField.cpp.o -Wl,-rpath,/home/amir/Qt/5.14.2/gcc_64/lib:/home/amir/sofa/build/lib: -lSofaComponentCommon /home/amir/Qt/5.14.2/gcc_64/lib/libQt5Network.so.5.14.2 lib/libSofaPython.so.0.1 /home/amir/Qt/5.14.2/gcc_64/lib/libQt5Core.so.5.14.2 lib/libSofaGuiCommon.so.20.06.99 lib/libSofaComponentAll.so.1.0 lib/libSofaBase.so.20.06.99 lib/libSofaCommon.so.20.06.99 lib/libSofaEngine.so.20.06.99 lib/libSofaExplicitOdeSolver.so.20.06.99 lib/libSofaAdvanced.so.20.06.99 lib/libSofaMisc.so.20.06.99 lib/libSofaMiscMapping.so.20.06.99 lib/libSofaMiscExtra.so.20.06.99 lib/libSofaMiscEngine.so.20.06.99 lib/libSofaNonUniformFem.so.20.06.99 lib/libSofaMiscFem.so.20.06.99 lib/libSofaMiscForceField.so.20.06.99 lib/libSofaMiscSolver.so.20.06.99 lib/libSofaMiscTopology.so.20.06.99 /usr/lib/x86_64-linux-gnu/libz.so lib/libSofaGeneral.so.20.06.99 lib/libSofaConstraint.so.20.06.99 lib/libSofaImplicitOdeSolver.so.20.06.99 lib/libSofaUserInteraction.so.20.06.99 lib/libSofaGeneralRigid.so.20.06.99 lib/libSofaGeneralVisual.so.20.06.99 lib/libSofaBaseVisual.so.20.06.99 lib/libSofaTopologyMapping.so.20.06.99 lib/libSofaBoundaryCondition.so.20.06.99 lib/libSofaEigen2Solver.so.20.06.99 lib/libSofaGraphComponent.so.20.06.99 lib/libSofaBaseUtils.so.20.06.99 lib/libSofaGeneralTopology.so.20.06.99 lib/libSofaGeneralAnimationLoop.so.20.06.99 lib/libSofaGeneralDeformable.so.20.06.99 lib/libSofaGeneralExplicitOdeSolver.so.20.06.99 lib/libSofaGeneralImplicitOdeSolver.so.20.06.99 lib/libSofaGeneralLinearSolver.so.20.06.99 lib/libSofaGeneralObjectInteraction.so.20.06.99 lib/libSofaGeneralSimpleFem.so.20.06.99 lib/libSofaSimpleFem.so.20.06.99 lib/libSofaGeneralEngine.so.20.06.99 lib/libSofaGeneralMeshCollision.so.20.06.99 lib/libSofaValidation.so.20.06.99 lib/libSofaMeshCollision.so.20.06.99 lib/libSofaRigid.so.20.06.99 lib/libSofaBaseMechanics.so.20.06.99 lib/libSofaObjectInteraction.so.20.06.99 lib/libSofaDeformable.so.20.06.99 lib/libSofaBaseTopology.so.20.06.99 lib/libSofaBaseCollision.so.20.06.99 lib/libSofaGeneralLoader.so.20.06.99 /usr/lib/x86_64-linux-gnu/libz.so lib/libSofaLoader.so.20.06.99 lib/libSofaSimulationTree.so.20.06.99 lib/libSofaDenseSolver.so.20.06.99 lib/libSofaBaseLinearSolver.so.20.06.99 lib/libSofaSimulationCommon.so.20.06.99 lib/libSofaSimulationCore.so.20.06.99 lib/libSofaCore.so.20.06.99 lib/libSofaDefaultType.so.20.06.99 lib/libSofaHelper.so.20.06.99 /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLEW.so /usr/lib/x86_64-linux-gnu/libboost_filesystem.so /usr/lib/x86_64-linux-gnu/libboost_program_options.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/x86_64-linux-gnu/libboost_chrono.so /usr/lib/x86_64-linux-gnu/libboost_system.so /usr/lib/x86_64-linux-gnu/libboost_date_time.so /usr/lib/x86_64-linux-gnu/libboost_atomic.so lib/libgtest.so.2.6.2 -pthread lib/libnewmat.a -lpython2.7 -Wl,-rpath-link,/home/amir/sofa/build/lib && : /usr/bin/ld: cannot find -lSofaComponentCommon collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
AmirBlockedDear @Hugo
I add these two addresses to external directory together
/home/user/sofa/STLIB;/home/user/sofa/plugins
and turning plugin_sofapython onthis is the output of Cmake after configuration and generation:
Adding module SofaPreconditioner Adding module SofaHaptics Adding module SofaOpenglVisual 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> -- PSL is an experimental feature, use it at your own risk. Adding application runSofa Write Plugin list at /home/amir/sofa/build/lib/plugin_list.conf.default Adding external directory: STLIB (/home/amir/sofa/STLIB) Install prefix: /home/amir/sofa/build/install Adding external directory: plugins (/home/amir/sofa/plugins) Install prefix: /home/amir/sofa/build/install -- Found dependency : 'STLIB' plugin . Configuring done Generating done
it seems everything is ok in Cmake
this is the output after compiling with ninja:
[13/13] Linking CXX executable bin/SoftRobots_test FAILED: : && /usr/bin/g++ -Wall -W -O3 -DNDEBUG -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -rdynamic external_directories/plugins/tests/CMakeFiles/SoftRobots_test.dir/component/constraint/SurfacePressureConstraintTest.cpp.o external_directories/plugins/tests/CMakeFiles/SoftRobots_test.dir/component/constraint/UnilateralPlaneConstraintTest.cpp.o external_directories/plugins/tests/CMakeFiles/SoftRobots_test.dir/component/controller/AnimationEditorTest.cpp.o external_directories/plugins/tests/CMakeFiles/SoftRobots_test.dir/component/controller/DataVariationLimiterTest.cpp.o external_directories/plugins/tests/CMakeFiles/SoftRobots_test.dir/component/controller/SerialPortBridgeGenericTest.cpp.o external_directories/plugins/tests/CMakeFiles/SoftRobots_test.dir/component/engine/VolumeFromTrianglesTest.cpp.o external_directories/plugins/tests/CMakeFiles/SoftRobots_test.dir/component/engine/VolumeFromTetrahedronsTest.cpp.o -o bin/SoftRobots_test -Wl,-rpath,/home/amir/sofa/build/lib:/home/amir/Qt/5.14.2/gcc_64/lib lib/libSofaTest.so.0.1 lib/libSofaGTestMain.a lib/libSoftRobots.so.1.0 -lSofaComponentCommon lib/libSceneCreator.so.0.1 lib/libSofaSimulationGraph.so.20.06.99 lib/libSofaPython.so.0.1 lib/libSofaGuiCommon.so.20.06.99 lib/libSofaComponentAll.so.1.0 lib/libSofaBase.so.20.06.99 lib/libSofaCommon.so.20.06.99 lib/libSofaEngine.so.20.06.99 lib/libSofaExplicitOdeSolver.so.20.06.99 lib/libSofaGeneral.so.20.06.99 lib/libSofaConstraint.so.20.06.99 lib/libSofaImplicitOdeSolver.so.20.06.99 lib/libSofaUserInteraction.so.20.06.99 lib/libSofaGeneralRigid.so.20.06.99 lib/libSofaGeneralVisual.so.20.06.99 lib/libSofaBaseVisual.so.20.06.99 lib/libSofaGraphComponent.so.20.06.99 lib/libSofaBaseUtils.so.20.06.99 lib/libSofaGeneralAnimationLoop.so.20.06.99 lib/libSofaGeneralDeformable.so.20.06.99 lib/libSofaGeneralExplicitOdeSolver.so.20.06.99 lib/libSofaGeneralImplicitOdeSolver.so.20.06.99 lib/libSofaGeneralLinearSolver.so.20.06.99 lib/libSofaGeneralObjectInteraction.so.20.06.99 lib/libSofaGeneralEngine.so.20.06.99 lib/libSofaValidation.so.20.06.99 lib/libSofaLoader.so.20.06.99 lib/libSofaGeneralLoader.so.20.06.99 /usr/lib/x86_64-linux-gnu/libz.so lib/libSofaAdvanced.so.20.06.99 lib/libSofaMisc.so.20.06.99 lib/libSofaMiscExtra.so.20.06.99 lib/libSofaGeneralMeshCollision.so.20.06.99 lib/libSofaMeshCollision.so.20.06.99 lib/libSofaBaseCollision.so.20.06.99 lib/libSofaObjectInteraction.so.20.06.99 lib/libSofaTopologyMapping.so.20.06.99 lib/libSofaMiscEngine.so.20.06.99 lib/libSofaNonUniformFem.so.20.06.99 lib/libSofaGeneralSimpleFem.so.20.06.99 lib/libSofaDenseSolver.so.20.06.99 lib/libSofaMiscFem.so.20.06.99 lib/libnewmat.a lib/libSofaMiscForceField.so.20.06.99 lib/libSofaDeformable.so.20.06.99 lib/libSofaBoundaryCondition.so.20.06.99 lib/libSofaEigen2Solver.so.20.06.99 lib/libSofaBaseLinearSolver.so.20.06.99 lib/libSofaGeneralTopology.so.20.06.99 lib/libSofaMiscSolver.so.20.06.99 lib/libSofaSimulationTree.so.20.06.99 lib/libSofaMiscTopology.so.20.06.99 /usr/lib/x86_64-linux-gnu/libz.so -lpython2.7 lib/libSofaMiscMapping.so.20.06.99 lib/libSofaRigid.so.20.06.99 lib/libSofaBaseMechanics.so.20.06.99 lib/libSofaSimpleFem.so.20.06.99 lib/libSofaBaseTopology.so.20.06.99 lib/libSofaSimulationCommon.so.20.06.99 lib/libSofaSimulationCore.so.20.06.99 lib/libSofaCore.so.20.06.99 lib/libSofaDefaultType.so.20.06.99 lib/libSofaHelper.so.20.06.99 lib/libgtest.so.2.6.2 /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLEW.so /usr/lib/x86_64-linux-gnu/libboost_filesystem.so /usr/lib/x86_64-linux-gnu/libboost_program_options.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/x86_64-linux-gnu/libboost_chrono.so /usr/lib/x86_64-linux-gnu/libboost_system.so /usr/lib/x86_64-linux-gnu/libboost_date_time.so /usr/lib/x86_64-linux-gnu/libboost_atomic.so -pthread /home/amir/Qt/5.14.2/gcc_64/lib/libQt5Network.so.5.14.2 /home/amir/Qt/5.14.2/gcc_64/lib/libQt5Core.so.5.14.2 -Wl,-rpath-link,/home/amir/sofa/build/lib && : /usr/bin/ld: cannot find -lSofaComponentCommon collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
AmirBlockedDear @Guillaume
Dear @Hugo
Thanks for your support. I did the following and the problem is solved.sudo apt purge cmake
sudo apt-get update
sudo apt-get build-dep cmake-qt-gui
wget https://cmake.org/files/v3.17/cmake-3.17.0.tar.gz
tar -xzf cmake-3.17.0.tar.gz
cd cmake-3.17.0/
./configure –qt-gui
make -j5
bin/cmake-guiI checked the sudo update-alternatives before but it’s didn’t work for me, I don’t know why.
Many thanks for your fast and supportive response. Let’s learn the SOFA!!:-)AmirBlockedDear @Hugo
I don’t know how to specify Cmake to run the latest version(3.13).
I try to change the default version to the new one, but after running the older one always run.AmirBlockeddear @Hugo
cmake 3.13 is located in the home directory
/home/cmake3.13
and the others are:
$ sudo apt list cmake -aListing… Done
cmake/xenial,now 3.5.2-2ubuntu1~ubuntu16.04.1~ppa1 amd64 [installed,automatic]
cmake/xenial-updates 3.5.1-1ubuntu3 amd64
cmake/xenial 3.5.1-1ubuntu1 amd64
but here it dosnt show the 3.13.Should I change the home directory?
AmirBlockedit says the version is 3.5.2
I installed from source code as fallow:
$ sudo apt purge cmake
$ wget https://github.com/Kitware/CMake/releases/download/v3.16.6/cmake-3.13.6.tar.gz
$ tar -zxvf cmake-3.13.4.tar.gz
$ cd cmake-3.13.4
$ ./bootstrap
$ make
$ sudo make installAmirBlockedDear @Hugo
I’ve noticed one thing I don’t know it is related or not:
I install Cmake 3.16.6 but when I open it with GUI at the top of the bar it mentioned
3.5.2. I don’t know I uninstall it completely. it is the version of GUI I think when I checked its version.AmirBlockedThanks @ Hugo
g++ –version
g++ (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1) 7.4.0gcc –version
gcc (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1) 7.4.0python
Python 2.7.12 (default, Oct 8 2019, 14:14:10)AmirBlockedDear @Hugo
this is the log message as you requested:
Install prefix: /home/amir/sofa/build/install Boost version: 1.58.0 Found the following Boost libraries: system filesystem program_options thread chrono date_time atomic Adding collection SofaComponentAll SofaTest: optional dependency SofaPython NOT found, Python_test won't be built Adding module SofaExporter SofaPython disabled, will not compile python bindings. Adding module SofaSparseSolver -- metis was not found, SparseLDLSolver won't be built -- csparse was found, SparseLUSolver and SparseCholeskySolver will be built Adding module SofaPreconditioner Adding module SofaHaptics Adding module SofaOpenglVisual 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> -- PSL is an experimental feature, use it at your own risk. Adding application runSofa Write Plugin list at /home/amir/sofa/build/lib/plugin_list.conf.default Configuring done CMake Error in extlibs/gtest/CMakeLists.txt: Target "gtest" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it. CMake Error in SofaKernel/extlibs/newmat/CMakeLists.txt: Target "newmat" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it. CMake Error in SofaKernel/extlibs/tinyxml/CMakeLists.txt: Target "tinyxml" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it. CMake Error in SofaKernel/modules/SofaHelper/CMakeLists.txt: Target "SofaHelper" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it. CMake Error in SofaKernel/modules/SofaHelper/SofaHelper_test/CMakeLists.txt: Target "SofaHelper_test" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it. CMake Error in SofaKernel/modules/SofaHelper/SofaHelper_test/system/TestPlugin/CMakeLists.txt: Target "TestPlugin" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it. .... CMake Error in applications/plugins/SofaMiscCollision/CMakeLists.txt: Target "SofaMiscCollision" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it. CMake Error in applications/projects/runSofa/CMakeLists.txt: The CXX_STANDARD property on target "runSofa" contained an invalid value: "17". CMake Error in applications/projects/runSofa/runSofa_test/CMakeLists.txt: Target "runSofa_test" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it. Generating done
Many Thanks
AmirAmirBlockedHi @Hugo
I installed it in Linux ubuntu 16.04, I had Ros before, so it had Cmake 3.5.2, So I uninstalled the older Cmake first by (sudo apt-get remove Cmake and sudo apt-get autoremove –purge cmake). then start to install the Cmake 3.16.6.
Cmake it seems working well when I run CMake-GUI in the build directory of SOFA.
Cmakes open and after clicking the configuration button. this error appeared then generation didn’t complete, So I can not use make or ninja in the next step. I tried Ninja and Unix Makefile and none of them worked.
I uninstalled the Cmake and installed another version(3.13.4) and try it again, but I received the same error. then I tried to deselect some items in Cmake entries to find the problem, I don’t know I have the right to do it or not, Maybe I shouldn’t do that. is it possible to roll back to before changes?
every time Cmake keeps the caches even after uninstalling it completely. is there any way to remove it completely? Should I reinstall Linux?
Many Thanks
Amir -
AuthorPosts