7 January 2021 at 21:29 #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:
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.
Thanks8 January 2021 at 01:59 #18128nhnhanBlocked
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 #18129
Thank 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
/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 #181328 January 2021 at 21:41 #18164
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.
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 plugin
Please let me know if you need any more information.
Anoush14 January 2021 at 09:27 #18209
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
Could you please correct the STLIB plugin and pull-request your changes back to the repo?
Hugo19 January 2021 at 23:33 #18248
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.
Anoush4 February 2021 at 18:28 #18502
- You must be logged in to reply to this topic.