Forum Replies Created
-
AuthorPosts
-
5 August 2021 at 10:19 in reply to: During installation of sofa in Cmke-gui I have got following Configuration error #20132amazierBlocked
Hi Jack,
I would recommend at least the 18.04 (the 16.04 is not supported by Ubuntu since April). The best one would even be the 20.04, good luck.
Arnaud
amazierBlockedHi @SergioPM23,
Glad to help you!
Yes, you can use the fixAll flag with PartialFixedConstraint. You can see all the properties of PartialFixedConstraint if you double click on it in your Graph Scene. It is sometimes quicker than checking the C++ code.
Have a nice day,
ArnaudamazierBlockedHi Sergio,
I am just passing by and trying to give you some information.
– If you want to fix all points of your object you can create a FixedConstraint (in your object node where you have your MechanicalObject) and you have an option in the FixedConstraint called fixAll that you can set at True.
– I am not an expert on this question but AttachConstraint looks to be a good candidate (you have an example examples/Components/constraint/AttachConstraint.scn). Be sure to use MechanicalObject in both objects. If you have too many indices to write down, you can use BoxROI to draw a box and select the index of your ROI. This constraint can handle many DOFs do not worry π
If you have any doubts, do not hesitate to share your code with simple meshes already present in the shared folder.
Have a nice evening,Arnaud
amazierBlockedHi @akTheTimes,
Sorry to pop in the conversation but I already had troubles loading .msh files in SOFA. I think my mistake was to want to save the .msh in the last version. If I remember well my SOFA was only working when in the export of Gmsh I was checking the box “.msh V2 Ascii file”.
Let me know if it helps. Have a nice day,
ArnaudamazierBlockedHey J-N,
Thanks, I did not specify the path indeed!
Now everything is working fine, very efficient solver!I close the issue, thanks to the consortium!
Have a nice day,
ArnaudamazierBlockedHi Hugo,
Yes, no problem for me the plugin is working fine. I just found the message a bit strange given that it was working fine π
I am closing the topic, thanks again for your help SOFA consortium!Best,
ArnaudamazierBlockedHi Hugo,
Thanks for the fix. I checked out on your PR but unfortunately, it is still not compiling… I still have the same error.
When I check the cmake I see that PARDISO_LIB is empty.
I tried to build from scratch with ninja.
Sorry to bother you the PR is super clear.Best
ArnaudamazierBlockedHi Hugo,
Thanks for replying. I tried with the master version and I obtain the following (quite long and funny) error:[53/54] Linking CXX shared library lib/libSofaPardisoSolver.so.0.1 FAILED: lib/libSofaPardisoSolver.so.0.1 : && /usr/lib/ccache/c++ -fPIC -O3 -DNDEBUG -Wl,--no-undefined -lc -shared -Wl,-soname,libSofaPardisoSolver.so.0.1 -o lib/libSofaPardisoSolver.so.0.1 applications/plugins/SofaPardisoSolver/CMakeFiles/SofaPardisoSolver.dir/SparsePARDISOSolver.cpp.o applications/plugins/SofaPardisoSolver/CMakeFiles/SofaPardisoSolver.dir/initPardisoSolver.cpp.o -L/home/arnaud/dev/sofa/v20.06/src/applications/plugins/SofaPardisoSolver/extlibs -Wl,-rpath,/home/arnaud/dev/sofa/v20.06/src/applications/plugins/SofaPardisoSolver/extlibs:/home/arnaud/dev/sofa/v20.06/build/lib::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: lib/libSofaBase.so.20.12.99 lib/libSofaGeneral.so.20.12.99 -lSofaSimulationTree -lgfortran -lblas -llapack -lgomp lib/libSofaGeneralAnimationLoop.so.20.12.99 lib/libSofaSimulationCommon.so.20.12.99 lib/libSofaGeneralDeformable.so.20.12.99 lib/libSofaGeneralEngine.so.20.12.99 lib/libSofa.GL.so.20.12.99 /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 lib/libSofaGeneralExplicitOdeSolver.so.20.12.99 lib/libSofaGeneralImplicitOdeSolver.so.20.12.99 lib/libSofaGeneralLinearSolver.so.20.12.99 lib/libSofaGeneralRigid.so.20.12.99 lib/libSofaGeneralObjectInteraction.so.20.12.99 lib/libSofaConstraint.so.20.12.99 lib/libSofaUserInteraction.so.20.12.99 lib/libSofaBoundaryCondition.so.20.12.99 lib/libSofaGeneralMeshCollision.so.20.12.99 lib/libSofaMeshCollision.so.20.12.99 lib/libSofaBaseCollision.so.20.12.99 lib/libSofaObjectInteraction.so.20.12.99 lib/libSofaRigid.so.20.12.99 lib/libSofaGeneralVisual.so.20.12.99 lib/libSofaBaseVisual.so.20.12.99 lib/libSofaGraphComponent.so.20.12.99 lib/libSofaBaseUtils.so.20.12.99 lib/libSofaTopologyMapping.so.20.12.99 lib/libSofaGeneralSimpleFem.so.20.12.99 lib/libSofaBaseMechanics.so.20.12.99 lib/libSofaGeneralTopology.so.20.12.99 lib/libSofaDeformable.so.20.12.99 lib/libSofaEigen2Solver.so.20.12.99 lib/libSofaSimpleFem.so.20.12.99 lib/libSofaBaseLinearSolver.so.20.12.99 lib/libSofaBaseTopology.so.20.12.99 lib/libSofaImplicitOdeSolver.so.20.12.99 lib/libSofaGeneralLoader.so.20.12.99 lib/libSofaSimulationCore.so.20.12.99 lib/libSofaCore.so.20.12.99 lib/libSofaDefaultType.so.20.12.99 lib/libSofaHelper.so.20.12.99 lib/libSofa.Type.so.20.12.99 lib/libSofa.Config.so.20.12.99 /usr/lib/x86_64-linux-gnu/libboost_system.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_date_time.so /usr/lib/x86_64-linux-gnu/libboost_atomic.so lib/libgtest.so.2.6.2 -pthread /usr/lib/x86_64-linux-gnu/libz.so -Wl,-rpath-link,/home/arnaud/dev/sofa/v20.06/build/lib && : /usr/bin/ld: cannot find -lSofaSimulationTree
Unfortunately, I did not find the solution…
Best,
ArnaudamazierBlockedHi Hugo,
I tried to update my branch 1 month ago but it did not work. Do you want me to try on the new release branch?
I still have this strange message but the thing is that I can still use my plugin’s class. So, in the end, it is not a big problem, it was just to let you know that I had this message despite my working plugin πNo problem, have a nice weekend,
ArnaudamazierBlockedHi Hugo,
Sorry for not having given any news…
Unfortunately, I tried to merge the PM on my SOFA but it did not work.Best,
ArnaudamazierBlockedHi Hugo,
Sorry for replying after the weekend…
Good news for the plugin! Let me know when I can access it!
Unfortunately, yes I still have the same issue…Have a nice day,
ArnaudamazierBlockedHi all,
I still do obtain the same error even by recreating another build.amazierBlockedLittle update:
By pulling, many DEPRECATED arise and I have some issue for compiling just SOFA (on STL mesh if I remember) so I think it is maybe not suitable to be up to date.
Here is the last commit that I have on master:commit 97060f71c42287699823c7d3548d06c8c4ef8af7 (HEAD -> master) Merge: 2bf81d557a 1be78658a5 Author: Guillaume Paran <guillaume.paran@sofa-framework.org> Date: Mon Nov 2 14:43:12 2020 +0100 Merge pull request #1563 from fredroy/modularize_general_animloop [SofaGeneral] Pluginize SofaGeneralAnimationLoop
Best,
amazierBlockedHi Hugo,
Thank you for your reply, I will try to erase the build and build from scratch and let you know π
Best,amazierBlockedHi Froy and Hugo,
Sorry I was not connected this weekend.
For my SOFA version, I am on the master branch but did not pull for a while.
I am trying a pull and will let you know.Best,
amazierBlockedHi Froy,
Indeed, I did not include the
getModuleName()
in the init.cpp!
Now I can properly load the plugin and use it, many thanks!I still have a little interrogation.
When I am running SOFA I obtain the following message:[INFO] [PluginManager] Loaded plugin: /home/arnaud/dev/sofa/v20.06/build3/lib/libSofaAdvancedFEM.so [INFO] [PluginManager] Plugin not found in loaded plugins: SofaAdvancedFEM
Which states that SOFA loaded the plugin but did not find it. But I can actually use without any problem the object of my plugin… Do you have any idea why?
Thank you again,
amazierBlockedThank you for your answer Froy!
Now it is done but I am bumping into another obstacle when I am running SOFA:terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid ########## SIG 6 - SIGABRT: usually caused by an abort() or assert() ########## -> /home/arnaud/dev/sofa/v20.06/build2/lib/libSofaHelper.so.20.06.99(sofa::helper::BackTrace::dump()+0x27) [0x7f417169c2b7] -> /home/arnaud/dev/sofa/v20.06/build2/lib/libSofaHelper.so.20.06.99(sofa::helper::BackTrace::sig(int)+0x1d6) [0x7f417169c656] -> /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f4171168210] -> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb) [0x7f417116818b] -> /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b) [0x7f4171147859] -> /lib/x86_64-linux-gnu/libstdc++.so.6(+0x9e951) [0x7f41713cd951] -> /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa47c) [0x7f41713d947c] -> /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa4e7) [0x7f41713d94e7] -> /lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa799) [0x7f41713d9799] -> /lib/x86_64-linux-gnu/libstdc++.so.6(std::__throw_logic_error(char const*)+0x41) [0x7f41713d025e] -> /home/arnaud/dev/sofa/v20.06/build2/lib/libSofaHelper.so.20.06.99(sofa::helper::system::PluginManager::checkDuplicatedPlugin(sofa::helper::system::Plugin const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0xad4) [0x7f4171757894] -> /home/arnaud/dev/sofa/v20.06/build2/lib/libSofaHelper.so.20.06.99(sofa::helper::system::PluginManager::loadPluginByPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::ostream*)+0x10eb) [0x7f417175ab2b] -> /home/arnaud/dev/sofa/v20.06/build2/lib/libSofaHelper.so.20.06.99(sofa::helper::system::PluginManager::loadPluginByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool, std::ostream*)+0x70) [0x7f417175c170] -> /home/arnaud/dev/sofa/v20.06/build2/lib/libSofaHelper.so.20.06.99(sofa::helper::system::PluginManager::readFromIniFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x646) [0x7f417175d826] -> ./runSofa(+0x157a6) [0x55cf77f917a6] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f41711490b3] -> ./runSofa(+0x168ce) [0x55cf77f928ce] Aborted (core dumped
A problem with the plugin name?
amazierBlockedHi Froy,
Thank you for your super quick answer!
The first error is not urgent for the moment but I will ping you if I cannot solve the issue.
As for the second one, indeed, replacing SofaComponentBase by SofaBase in the Cmake fixed the issue of the build πOnce the build is done, I am running runSofa and obtain the following error:
[ERROR] [PluginManager] Plugin loading failed (/home/arnaud/dev/sofa/v20.06/build3/lib/libSofaAdvancedFEM.so): /home/arnaud/dev/sofa/v20.06/build3/lib/libSofaAdvancedFEM.so: undefined symbol: _ZNK4sofa9component8topology30NumericalIntegrationDescriptorIfLi3EE19getQuadratureMethodENS3_16QuadratureMethodEm [ERROR] [PluginManager] Plugin not found: "Modeler" Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. The constructor with a QGLFormat is deprecated, use the regular contructor instead.
So for Modeler, I suppose maybe it is not supported anymore or has been replaced. As for the second one, I have no idea why the lib has such undefined symbol.. Do you have any idea?
EDIT: I cleaned the Cmake file and got rid of the Modeler
MerciamazierBlockedHi Hugo,
Thank you for your reply, I checked out on the master branch and it worked!
Have a nice day, best,Arnaud
-
AuthorPosts