Question about compiling the source code

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Yau JunKing
Posts: 7
Joined: Sat Jun 19, 2021 8:23 pm

Question about compiling the source code

Post by Yau JunKing » Sat Jul 10, 2021 10:17 pm

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.

Image

Image

Image

Image

Thank you!

Tags:

User avatar
Yau JunKing
Posts: 7
Joined: Sat Jun 19, 2021 8:23 pm

Re: Question about compiling the source code

Post by Yau JunKing » Sun Jul 11, 2021 5:00 am

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!

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Question about compiling the source code

Post by Ayman Habib » Sun Jul 11, 2021 10:42 am

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

User avatar
Yau JunKing
Posts: 7
Joined: Sat Jun 19, 2021 8:23 pm

Re: Question about compiling the source code

Post by Yau JunKing » Sun Jul 11, 2021 7:10 pm

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

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: Question about compiling the source code

Post by Nicholas Bianco » Mon Jul 12, 2021 2:40 pm

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

User avatar
Yau JunKing
Posts: 7
Joined: Sat Jun 19, 2021 8:23 pm

Re: Question about compiling the source code

Post by Yau JunKing » Mon Jul 12, 2021 5:25 pm

Hi Nicholas,

I got it now. Thank you so much!

Best,
-Yau

POST REPLY