Setting Up MATLAB
Posted: Thu Oct 29, 2020 7:27 am
Hello,
I just recently downloaded the Wu shoulder musculoskeletal model. Now, I have trouble running the MATLAB code, the JR_MEX.m file. I appreciate any help. I obtain the following errors:
... (I am omitting warnings and some additional file which are called durring the error below)
...
from C:\OpenSim 3.3\Scripts\Matlab\Matlab\Wu_shoulder_model\JR3_mex_parent.cpp:4:
C:\OpenSim 3.3\sdk\include\SimTK\include/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
... (I am omitting warnings and some additional file which are called durring the error below)
...
from C:\OpenSim 3.3\Scripts\Matlab\Matlab\Wu_shoulder_model\JR3_mex_parent.cpp:4:
C:/ProgramData/MATLAB/SupportPackages/R2020a/3P.instrset/mingw_w64.instrset/x86_64-w64-mingw32/include/sys/timeb.h:90:8: error: previous definition of 'struct timespec'
struct timespec {
^~~~~~~~
Since the struct timespec is already defined I commented out the additional definition in pthread.h. Then I get an different error that there are many undefined references.
Does someone know whats wrong here? Maybe setting up the MATLAB with opensim? I am using MATLAB2020a and Opensim 3.3.
Thank you for your help.
Kind regards,
Jeremy
I just recently downloaded the Wu shoulder musculoskeletal model. Now, I have trouble running the MATLAB code, the JR_MEX.m file. I appreciate any help. I obtain the following errors:
... (I am omitting warnings and some additional file which are called durring the error below)
...
from C:\OpenSim 3.3\Scripts\Matlab\Matlab\Wu_shoulder_model\JR3_mex_parent.cpp:4:
C:\OpenSim 3.3\sdk\include\SimTK\include/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
... (I am omitting warnings and some additional file which are called durring the error below)
...
from C:\OpenSim 3.3\Scripts\Matlab\Matlab\Wu_shoulder_model\JR3_mex_parent.cpp:4:
C:/ProgramData/MATLAB/SupportPackages/R2020a/3P.instrset/mingw_w64.instrset/x86_64-w64-mingw32/include/sys/timeb.h:90:8: error: previous definition of 'struct timespec'
struct timespec {
^~~~~~~~
Since the struct timespec is already defined I commented out the additional definition in pthread.h. Then I get an different error that there are many undefined references.
Does someone know whats wrong here? Maybe setting up the MATLAB with opensim? I am using MATLAB2020a and Opensim 3.3.
Thank you for your help.
Kind regards,
Jeremy