5 December 2020 at 2 h 04 min #17948
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 h 43 min #17949HugoKeymaster
- SOFA Consortium
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 ?
Hugo5 December 2020 at 14 h 07 min #17951
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
Nhan18 December 2020 at 22 h 41 min #18058HugoKeymaster
- SOFA Consortium
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
Hugo21 December 2020 at 23 h 41 min #18076
- You must be logged in to reply to this topic.