Home › Forum › SOFA › Programming with SOFA › [SOLVED] Contributing to SOFA
Tagged: 64_bits, Linux_ubuntu, SOFA_other
- This topic has 6 replies, 2 voices, and was last updated 7 years, 9 months ago by jjcasmar.
-
AuthorPosts
-
4 January 2017 at 12:39 #8264jjcasmarBlocked
Hi,
I’mg going to begin the work for doing the pull requests for the optimization integrator and the fixes for the new version of CGAL.
Any guide on how to contribute to SOFA? I’m not very proficient in git and I dont like to create a mesh. How should I begin?
4 January 2017 at 13:07 #8265GuillaumeKeymasterHi jjcasmar,
Thank you for your involvement!
Please find our contributing guide on GitHub: https://github.com/sofa-framework/sofa/blob/master/CONTRIBUTING.mdBest wishes,
Guillaume.5 January 2017 at 12:14 #8282jjcasmarBlockedHi Guillaume,
thanks for the link.
I have tried to compile the sofa developer version (7377b6498c99837b4d8423f91953e089cc780e1a) but it’s not compiling. How (or in which branch) should I begin coding?5 January 2017 at 17:12 #8284GuillaumeKeymasterAs you can see on the download page, the last stable branch is v16.08.
If you want to get the last developments, you can clone the (unstable) master branch but beware of which commit you choose. Checkout the right commit by looking at our dashboard.The commit you specify is compiling well on GCC 4.8 but has not been tested on all other compilers.
What is your compiler? What error did you get?Hope that helps,
Guillaume.6 January 2017 at 14:58 #8287jjcasmarBlockedHi Guillaume, thanks for the info.
I’m trying to compile the master branch because I plan to to my code and do a merge request. I dont fell that doing my code over the 16.08 is okay because a lot has happened since then.
My gcc version is 5.4 from the Ubuntu 16.04 repos.
The problem I’m having is this one:
CMakeFiles/runSofa.dir/Main.cpp.o: In function ‘main’: /home/jjcasmar/Doctorado/sofa/master/src/applications/projects/runSofa/Main.cpp:328: undefined reference to ‘sofa::helper::system::PluginRepository’ /home/jjcasmar/Doctorado/sofa/master/src/applications/projects/runSofa/Main.cpp:328: undefined reference to ‘sofa::helper::system::FileRepository::addFirstPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’ /home/jjcasmar/Doctorado/sofa/master/src/applications/projects/runSofa/Main.cpp:385: undefined reference to ‘sofa::helper::system::DataRepository’ CMakeFiles/runSofa.dir/Main.cpp.o: In function ‘sofa::helper::system::FileRepository::getFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::ostream*)’: /home/jjcasmar/Doctorado/sofa/master/src/SofaKernel/framework/sofa/core/../../sofa/helper/system/FileRepository.h:102: undefined reference to ‘sofa::helper::system::FileRepository::findFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::ostream*)’ ../../../lib/libSofaGuiQt_d.so.16.dev.0: undefined reference to ‘sofa::helper::system::FileRepository::getFirstPath[abi:cxx11]()’ ../../../lib/libSofaSimulationCommon_d.so.16.dev.0: undefined reference to ‘sofa::helper::system::FileRepository::FileRepository(char const*, char const*)’ ../../../lib/libSofaSimulationCommon_d.so.16.dev.0: undefined reference to ‘sofa::helper::system::FileRepository::~FileRepository()’ ../../../lib/libSofaGuiQt_d.so.16.dev.0: undefined reference to ‘sofa::helper::system::FileRepository::relativeToPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)’ ../../../lib/libSofaSimulationCommon_d.so.16.dev.0: undefined reference to ‘sofa::helper::system::FileRepository::findFileFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::ostream*)’ collect2: error: ld returned 1 exit status applications/projects/runSofa/CMakeFiles/runSofa.dir/build.make:177: recipe for target ‘bin/runSofa_d’ failed make[2]: *** [bin/runSofa_d] Error 1 CMakeFiles/Makefile2:5650: recipe for target ‘applications/projects/runSofa/CMakeFiles/runSofa.dir/all’ failed make[1]: *** [applications/projects/runSofa/CMakeFiles/runSofa.dir/all] Error 2 Makefile:149: recipe for target ‘all’ failed make: *** [all] Error 2
23 January 2017 at 17:58 #8425GuillaumeKeymasterHi jjcasmar,
Sorry for the late answer.
I don’t understand why you get this error since everything is fine in our gcc testing.
Could you paste the output of CMake generation please?Best,
Guillaume.1 February 2017 at 17:02 #8486jjcasmarBlockedHi Guillaume,
sorry, I have just seen your post. I dont have the CMake log, as I had to reinstall my SO. Right now I’m using SOFA 16.04 and a plugin as Hugo suggested. If I get this kind of errors another time, I will open another thread. Lets mark this as solved.
-
AuthorPosts
- You must be logged in to reply to this topic.