19 April 2020 at 3 h 45 min #15810JohnParticipant
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.
John22 June 2020 at 22 h 34 min #16691
I have the exact same problem as John. How can I resolve this issue?
Thanks a lot,
Bruno23 June 2020 at 22 h 50 min #16701
I 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)
Hugo23 June 2020 at 23 h 41 min #16706
I’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 0 h 07 min #16707
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
(keeping the same parameters)
Hugo24 June 2020 at 0 h 44 min #16709
It worked! I changed
sofa_install_libraries(TARGETS Qt5::Network)24 June 2020 at 8 h 14 min #16711
Nice work @brunob81hk !!
Could you please check your SoftRobot version though? I would help knowing if this change must be reported back in the branch.
Hugo25 June 2020 at 18 h 03 min #16722
Sorry for the late response, I’m using the master branch.30 June 2020 at 18 h 21 min #167581 July 2020 at 7 h 59 min #167601 July 2020 at 18 h 10 min #16766JonnyParticipant
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!
Jonny7 July 2020 at 23 h 12 min #16829
- You must be logged in to reply to this topic.