Page 1 of 1
Question about compiling the source code
Posted: Sat Jul 10, 2021 10:17 pm
by no_one
Hi everyone!
I am compiling the opensim source code in ubuntu 16.04 after builded and installed all the dependencies (not by superbuild)
Then,when I compiling the opensim by command line"make -j4",some errors happen! The fellowing images are errors.
Thank you!
Re: Question about compiling the source code
Posted: Sun Jul 11, 2021 5:00 am
by no_one
Hi!
I try to not compile the Moco and opensim-cmd. then I compile successfully.
However, if I want to use the Moco and opensim-cmd, how should I do next?
Thanks!
Re: Question about compiling the source code
Posted: Sun Jul 11, 2021 10:42 am
by aymanh
Hi Yau,
Our continuous integration builds/tests latest code against ubuntu 18.04 LTS with specific versions of compilers. Please check our ci build logs on github
(
https://github.com/opensim-org/opensim-core/actions then expand continuous-integration -> Ubuntu)
to see what settings/versions work with the latest code.
Keep in mind the following:
1. Your version of the OS and likely the compilers are behind our ci.
2. The code base tested in ci is latest master branch rather than 4.1 (which didn't have Moco integrated) or 4.2
Hope this helps,
-Ayman
Re: Question about compiling the source code
Posted: Sun Jul 11, 2021 7:10 pm
by no_one
Hi Ayman,
Thank you for your replying! I have watched the ci.
Could you tell me if the specific versions of compiler is SWIG?
If I install the SWIG in ubuntu 16.04, will the problem be solved?
And I find a solution in github, how do you think about this? :
https://github.com/opensim-org/opensim-core/issues/3008
Re: Question about compiling the source code
Posted: Mon Jul 12, 2021 2:40 pm
by nbianco
Hi Yau,
SWIG is not a complier, is the bindings that wrap the C++ code to use the API in Matlab or Python. If you don't need the scripting languages (especially if you're using the command line), then you can skip building the bindings and don't need SWIG.
We're you not able to find the compliers that our GitHub CI uses? We should make sure those match with yours before checking anything else (as Ayman suggested).
Best,
-Nick
Re: Question about compiling the source code
Posted: Mon Jul 12, 2021 5:25 pm
by no_one
Hi Nicholas,
I got it now. Thank you so much!
Best,
-Yau