Open yuan0623 opened 4 years ago
I got the same problem as you, I use the matlab2019b and ubuntu18.04
you guys just follow up the matlab command,
" If you believe custom code dependencies have been correctly specified, try updating the model by turning off "Configuration Parameters > Simulation Target > Import custom code." Refer to documentation for more information. "
Then, it will be fine
Hi, I have Matlab R2019b installed on my Ubuntu 16. By following the instruction, I've downloaded the agility robotic software and unzipped the files in the software folder. After I execute
run.m
, the Simulink starts, then I received the following error:Making simulation target "example_QEKF_sfun", ...
/usr/local/MATLAB/R2019b/bin/mex -R2018a -c -DMATLAB_MEX_FILE -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples/gen/kin/src" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/gen/linux/kin/slrt/src" -I"/usr/local/MATLAB/R2019b/extern/include" -I"/usr/local/MATLAB/R2019b/simulink/include" -I"/usr/local/MATLAB/R2019b/simulink/include/sf_runtime" -I"/usr/local/MATLAB/R2019b/stateflow/c/mex/include" -I"/usr/local/MATLAB/R2019b/rtw/c/src" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples/slprj/_sfprj/example_QEKF/_self/sfun/src" CFLAGS="\$CFLAGS -O2 " example_QEKF_sfun.c Building with 'gcc'. Warning: You are using gcc version '5.5.0'. The version of gcc is not supported. The version currently supported with MEX is '6.3.x'. For a list of currently supported compilers see: https://www.mathworks.com/support/compilers/current_release. MEX completed successfully. /usr/local/MATLAB/R2019b/bin/mex -R2018a -c -DMATLAB_MEX_FILE -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples/gen/kin/src" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/gen/linux/kin/slrt/src" -I"/usr/local/MATLAB/R2019b/extern/include" -I"/usr/local/MATLAB/R2019b/simulink/include" -I"/usr/local/MATLAB/R2019b/simulink/include/sf_runtime" -I"/usr/local/MATLAB/R2019b/stateflow/c/mex/include" -I"/usr/local/MATLAB/R2019b/rtw/c/src" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples/slprj/_sfprj/example_QEKF/_self/sfun/src" CFLAGS="\$CFLAGS -O2 " example_QEKF_sfun_registry.c Building with 'gcc'. Warning: You are using gcc version '5.5.0'. The version of gcc is not supported. The version currently supported with MEX is '6.3.x'. For a list of currently supported compilers see: https://www.mathworks.com/support/compilers/current_release. MEX completed successfully. /usr/local/MATLAB/R2019b/bin/mex -R2018a -c -DMATLAB_MEX_FILE -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples/gen/kin/src" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/gen/linux/kin/slrt/src" -I"/usr/local/MATLAB/R2019b/extern/include" -I"/usr/local/MATLAB/R2019b/simulink/include" -I"/usr/local/MATLAB/R2019b/simulink/include/sf_runtime" -I"/usr/local/MATLAB/R2019b/stateflow/c/mex/include" -I"/usr/local/MATLAB/R2019b/rtw/c/src" -I"/home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples/slprj/_sfprj/example_QEKF/_self/sfun/src" CFLAGS="\$CFLAGS -O2 " c2_example_QEKF.c Building with 'gcc'. Warning: You are using gcc version '5.5.0'. The version of gcc is not supported. The version currently supported with MEX is '6.3.x'. For a list of currently supported compilers see: https://www.mathworks.com/support/compilers/current_release. MEX completed successfully.
/usr/local/MATLAB/R2019b/bin/mex -R2018a -silent LDFLAGS="\$LDFLAGS " -output example_QEKF_sfun.mexa64 @example_QEKF_sfun.mol
Warning: You are using gcc version '5.5.0'. The version of gcc is not supported. The version currently supported with MEX is '6.3.x'. For a list of currently supported compilers see: https://www.mathworks.com/support/compilers/current_release. c2_example_QEKF.o: In function
sf_gateway_c2_example_QEKF': c2_example_QEKF.c:(.text+0xfe8): undefined reference to
p_VectorNav_to_RightToeBottom_src' c2_example_QEKF.c:(.text+0x102e): undefined reference top_VectorNav_to_LeftToeBottom_src' /home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples/slprj/_sfprj/example_QEKF/lib_StateEstimation/sfun/src/lib_StateEstimation_sfun.a(c21_lib_StateEstimation.o): In function
sf_gateway_c21_lib_StateEstimation': c21_lib_StateEstimation.c:(.text+0xc72): undefined reference top_VectorNav_to_LeftToeBottom_src' c21_lib_StateEstimation.c:(.text+0xcb2): undefined reference to
Jp_VectorNav_to_LeftToeBottom_src' c21_lib_StateEstimation.c:(.text+0xfc7): undefined reference top_VectorNav_to_RightToeBottom_src' c21_lib_StateEstimation.c:(.text+0x1007): undefined reference to
Jp_VectorNav_to_RightToeBottom_src' /home/yuan/Dropbox/UML_dropbox/research/conference_paper/IROS2020/Cassie_StateEstimation/Examples/slprj/_sfprj/example_QEKF/lib_StateEstimation/sfun/src/lib_StateEstimation_sfun.a(c42_lib_StateEstimation.o): In functionsf_gateway_c42_lib_StateEstimation': c42_lib_StateEstimation.c:(.text+0xc7e): undefined reference to
Jp_VectorNav_to_RightToeBottom_src' c42_lib_StateEstimation.c:(.text+0xcd2): undefined reference to `Jp_VectorNav_to_LeftToeBottom_src' collect2: error: ld returned 1 exit statusgmake: *** [example_QEKF_sfun.mexa64] Error 255