Hello,
I have compiled OpenSim 4.0 on Ubuntu 18.04 encountering some issues and since this thread was extremely useful I have decided to extend it describing another problem that I have encountered and how I solved it.
In my case, after compiling the source code with the superbuild, I found that some of the MATLAB test failed.
- opensim4.1_tests.png (47.19 KiB) Viewed 1229 times
After running the script for configuring OpenSim, preloading the libstdc++.so library from the system and checking that all the libraries were visible using
ldd, my MATLAB API were still not working. Weirdly, I could manipulate/read/print models but not run simulations. For example, I could run
OpenSimCreateTugOfWarModel.m smoothly but
TugOfWar_CompleteRunVisualize.m was throwing a runtime error both in MATLAB and in my shell. The error in the shell was:
Intel MKL ERROR: Parameter 4 was incorrect on entry to DGETRF.
If I tried to run the
RunHopper_answers.m script, MATLAB completely crashed.
I managed to solve the problem, and have all MATLAB test passed (and the OpenSim API working), only by preloading also the LAPACK library and avoiding to use the MATLAB one:
Code: Select all
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1"
I hope this workaround helps and saves time to someone else!
Luca