Page 1 of 1

Setting up OpenSim 4.5.1 API with Matlab on MacOS

Posted: Wed Sep 18, 2024 7:56 am
by oedemuth
Hi everyone,

I downloaded the source code for the new OpenSim 4.5.1 API because of the new MocoGoals that got introduced in the update (mainly the MocoExpressionBasedParameterGoal). I have built OpenSim Core and all its dependencies through the terminal with CMake. It took me several attempts but I think I succeeded.

However, I am missing (among others) the sdk folder within the opensim-core-install folder, which I assume is equivalent to the OpenSim4.5.app/Contents/Resources/opensim folder within the application. The missing Java folder and its content (org-opensim-modeling.jar) means I cannot use the configureOpenSim Matlab script to set up all the dependencies to run the new 4.5.1 API.

How do I properly set up the 4.5.1 API for use with Matlab?

Many thanks for your help!

Cheers,
Oliver

Re: Setting up OpenSim 4.5.1 API with Matlab on MacOS

Posted: Wed Sep 18, 2024 5:20 pm
by nbianco
Hi Oliver,

If you set the CMake variable "OPENSIM_INSTALL_UNIX_FHS_DEFAULT" to "OFF", you should get the file structure with the "sdk" folder.

Note that we haven't tested Matlab installations much yet, so your milage may vary when installing to Matlab specifically.

Best,
Nick