Home › Forum › SOFA › Building SOFA › Cant build sofa with the STLIB and soft robots plugin
Tagged: 64_bits, build, GCC, Linux_ubuntu, Plugin_SoftRobots, SOFA, SOFA_2006
- This topic has 7 replies, 3 voices, and was last updated 3 years, 9 months ago by Hugo.
-
AuthorPosts
-
7 January 2021 at 21:29 #18126AnoushSBlocked
I am currently trying to configure cmake to build sofa with the soft robots plugin. I have enabled sofapython and when configuring it says I require the STLIB plugin, so I pulled the repo from git and included it in the sofa_external_directories. I now have two directories in my sofa_external_directories as seen here:
/home/anoush/sofa/plugin/STLIB;/home/anoush/sofa/plugin/SoftRobots
When I configure, I think all works well however there are some warnings. When I generate build files and use ninja to build I get the following error:
ninja: build stopped: subcommand failed.
There is a long list of errors and warnings as well.
Any help would be appreciated.
Thanks
8 January 2021 at 01:59 #18128nhnhanBlockedDear,
You should take the picture of the errors shown on the terminal to help us know what is your problem.8 January 2021 at 02:16 #18129AnoushSBlockedThank you for the response. The errors in the terminal are very long, however I included part of the error that I think is contributing to the failure to build.
[50/70] Building CXX object external_d…traint/model/AffineFunctionModel.cpp.o
FAILED: external_directories/sofa_plugins/SoftRobots/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/constraint/model/AffineFunctionModel.cpp.o
/usr/bin/clang++ -DNDEBUG -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DSOFA_BUILD_SOFTROBOTS -DSoftRobots_EXPORTS -D_ALLOW_KEYWORD_MACROS -Dregister=”” –(Message continues but cannot attach here)
8 January 2021 at 08:32 #18132HugoKeymaster8 January 2021 at 21:41 #18164AnoushSBlockedHi Hugo;
Thank you for your response. The full error is too long to post here, so I included a link to a document with the full error when compiling using ninja.
https://docs.google.com/document/d/14IIeJ4lXAcxEjPScFQb7LzOjyuaXXKzcYbnOR7bycY4/edit?usp=sharing
I believe there are no errors at configuration/generation phase. I also followed the following tutorial and was able to compile the “myawesomecomponents” plugin in this video
How to compile a pluginPlease let me know if you need any more information.
Thanks,
Anoush14 January 2021 at 09:27 #18209HugoKeymasterHi @anoushs
It appears that you are compiling the master branch of SOFA, where developments are done. This is no stable branch (just FYI).
The compilation error comes from the change introduced in SOFA by PR #1686. As written in the error:
Update your code by replacing
#include<sofa/defaulttype/Vec3Types.h>
with#include<sofa/defaulttype/VecTypes.h>
Could you please correct the STLIB plugin and pull-request your changes back to the repo?
Best,
Hugo
19 January 2021 at 23:33 #18248AnoushSBlockedHi Hugo;
Thank you for your response. Can you please explain where specifically to replace the Vec3Types.h code? I have not written any code and just pulled the git repos for the plugins and sofa etc.
Thanks,
Anoush4 February 2021 at 18:28 #18502 -
AuthorPosts
- You must be logged in to reply to this topic.