Home › Forum › SOFA › Building SOFA › [SOLVED] Error while compiling Softrobots and STILIB plugin
Tagged: 64_bits, GCC, Linux_ubuntu, Plugin_SoftRobots, SOFA_2006, softrobots, STlib
- This topic has 4 replies, 2 voices, and was last updated 3 years, 10 months ago by nhnhan.
-
AuthorPosts
-
5 December 2020 at 02:04 #17948nhnhanBlocked
Dear,
I have been recently working with SOFA and I have to admit that it is so inspiring to me. I was trying to add Softrobots with STLIB plugin together. I followed the instruction on how to add an extra plugin into sofa in Youtube. However, when I compile them with cmake, an error came out as follows:Adding external directory: ext_plugin_repo (/home/nhnhanbk/Desktop/Sofa/ext_plugin_repo) Adding plugin MyAwesomeComponents Adding plugin STLIB Install prefix: /home/nhnhanbk/Desktop/Sofa/sofa/build/install -- Found SofaPython CMake Error at /home/nhnhanbk/Desktop/Sofa/ext_plugin_repo/STLIB/CMakeLists.txt:42 (sofa_create_package_with_targets): Unknown CMake command "sofa_create_package_with_targets".
I also installed and enabled python 2.7, SofaPython and compile together. It would be great if someone can get me out of this problem. Thank you for any support.
Nhan5 December 2020 at 13:43 #17949HugoKeymasterDear @nhnhan
Thank you for your question. It seems you have two un-compatible version:
– what is your SOFA version (20.06 as indicated?)
– what is your STLIB version / branch ?Best wishes,
Hugo
5 December 2020 at 14:07 #17951nhnhanBlockedDear Hugo,
Thanks for your prompt response, I am using stable SOFA version 20.06 and STLIB version 3.0 (indicated in CMAKElists file).
Since you predict that these versions are not compatible with each other, therefore I just look up the website of softrobots plugin and it seems that this plugin is useable only for unstable version (if I’m not wrong).
And just in case it is true. Since I’m not so sure if everything else works fine with the “unstable” version, therefore, what if I build another version of SOFA (unstable one) alongside the stable one?Hope to receive your comment. Thank you very much
Best regards,
Nhan18 December 2020 at 22:41 #18058HugoKeymasterDear @nhnhan
Indeed, in the STLIB plugin, no branch was defined to be compatible with the SOFA release. However, I am pretty sure you can checkout a version of the master of STLIB from July and it would fit the SOFA v20.06 release.
Try for instance in the sources of STLIB:
git checkout 6f2cff8b71652bf8303946c65d881312e516acfc
Hope this helps
Hugo
Hugo
21 December 2020 at 23:41 #18076 -
AuthorPosts
- You must be logged in to reply to this topic.