Home › Forum › SOFA › Using SOFA › [SOLVED] SoftRobots plugin
Tagged: Soft robot Plugin, STlib
- This topic has 36 replies, 6 voices, and was last updated 4 years, 4 months ago by Hugo.
-
AuthorPosts
-
19 April 2020 at 03:45 #15810JohnBlocked
Hi
I also have a problem with adding SoftRobots plugin.In CMAKE-GUI,after adding the path of plugin folder to SOFA EXTERNAL DIRECTORIES,it showed errors like this:CMake Error at applications/plugins/SoftRobots/CMakeLists.txt:43 (sofa_copy_libraries_from_targets): Unknown CMake command "sofa_copy_libraries_from_targets".
I checked the CMakeLists.txt but don’t know how to solve it.
Please help me to solve this problem.
Thank you
John22 June 2020 at 22:34 #16691BrunoB81HKBlockedHi,
I have the exact same problem as John. How can I resolve this issue?
Thanks a lot,
Bruno
23 June 2020 at 22:50 #16701HugoKeymasterI am passing the topic back to pending, since it was not visible in the list of open topics (that I am always using).
Which version of SOFA + SoftRobot are you both using?
How are you building the SoftRobot plugin? Separately from SOFA (out of tree)? Using the EXTERNAL_DIRECTORIES CMake variable? directly into SOFA (which is not recommanded)
Hugo
23 June 2020 at 23:41 #16706BrunoB81HKBlockedI’m using SOFA 19.12 with the last version of SoftRobots (I can’t find the version). I’m building it with SOFA_EXTERNAL_DIRECTORIES.
24 June 2020 at 00:07 #16707HugoKeymasterHi @brunob81hk
Could you check the version of the sources of SoftRobots by checking the git branch you are using?
I think your problem could be fixed by replacing the command
sofa_copy_libraries_from_targets
with
sofa_install_libraries
(keeping the same parameters)Best,
Hugo
24 June 2020 at 00:44 #16709BrunoB81HKBlockedIt worked! I changed
sofa_copy_libraries_from_targets(Qt5::Network)
withsofa_install_libraries(TARGETS Qt5::Network)
24 June 2020 at 08:14 #16711HugoKeymasterNice work @brunob81hk !!
Could you please check your SoftRobot version though? I would help knowing if this change must be reported back in the branch.
Best,
Hugo
25 June 2020 at 18:03 #16722BrunoB81HKBlockedSorry for the late response, I’m using the master branch.
30 June 2020 at 18:21 #16758HugoKeymasterHi @brunob81hk
And where did you download it from?
Apparently it is fixed now the master branch: see the code here.
I think we can close this topic.
Best,Hugo
1 July 2020 at 07:59 #16760BrunoB81HKBlockedI’m using the one from https://github.com/faichele/SoftRobots which is the one required to work with the SofaROSConnector plugin.
I realise tat this one is a fork that is behind the other one.
Thanks,
Bruno
1 July 2020 at 18:10 #16766JonnyBlockedHi,
I have a similar error like the one mentioned above. I try to build Sofa (using 19.12) with the Soft Robots Plugin (from Defrost repo) on MacOS and so far I cloned both repositories and wrote a CMakeLists.txt file to build out of tree. When I try to configure with flag PLUGIN_SOFTROBOTS activated I get the following error from CMake:
CMake Error at /Users/jona/sofa/src/SofaKernel/SofaFramework/CMakeParseLibraryList.cmake:41 (message): Invalid arguments Call Stack (most recent call first): /Users/jona/sofa/src/SofaKernel/SofaFramework/SofaMacros.cmake:840 (PARSE_LIBRARY_LIST) /Users/jona/sofa/plugins/SoftRobots/CMakeLists.txt:42 (sofa_install_libraries)
I didn’t change anything in the CMakeLists.txt file (of the plugin) and don’t really know how to solve this issue, so any help would be appreciated!
Thank you
Jonny7 July 2020 at 23:12 #16829 -
AuthorPosts
- You must be logged in to reply to this topic.