Home › Forum › Community Help › 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 5 replies, 3 voices, and was last updated 3 days ago by
Hugo.
-
AuthorPosts
-
7 January 2021 at 21 h 29 min #18126
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 1 h 59 min #18128Dear,
You should take the picture of the errors shown on the terminal to help us know what is your problem.8 January 2021 at 2 h 16 min #18129Thank 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 8 h 32 min #181328 January 2021 at 21 h 41 min #18164Hi 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 9 h 27 min #18209Hi @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
-
AuthorPosts
- You must be logged in to reply to this topic.