
Simulink issue when trying to compile using "rapid accelerator" mode
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have some simulink files that I am trying to compile for quicker simulations. I am successful in both "normal" and "accelerator" modes; however, I cannot get it to work for "rapid accelerator"
1. I had IT install a more up-to-date GCC/G++ version that is 6.3.1. I am running matlab 2019a on red hat 7.
2. I compiled example code provided by mathworks. engdemo.cpp and explore.c both worked.
3. I exported LD_LIBRARY_PATH =/app/matlab/r2019a/bin/glnxa64/ without any luck as well. It also didn't appear to change the behavior at all.
Here are the error outputs. Thoughts?
g++ -Wl,-rpath,/app/matlab/r2019a/bin/glnxa64 -Wl,-rpath,/app/matlab/r2019a/sys/os/glnxa64 -L/app/matlab/r2019a/sys/os/glnxa64 -o test_tb rt_logging.o test_tb.o test_tb_capi.o test_tb_data.o test_tb_tgtconn.o rt_logging_mmi.o rtw_modelmap_utils.o raccel_main_new.o raccel_sup.o raccel_mat.o simulink_solver_api.o raccel_utils.o common_utils.o ext_svr.o updown.o ext_work.o rtiostream_interface.o rtiostream_tcpip.o rtiostream_utils.o ../../../slprj/sim/test/testlib.a \
/app/matlab/r2019a/bin/glnxa64/libmwboost_locale.so.1.65.1: undefined reference to `std::__cxx11::numpunct<char>::id@GLIBCXX_3.4.21'
/app/matlab/r2019a/bin/glnxa64/libmwboost_serialization.so.1.65.1: undefined reference to `typeinfo for std::__codecvt_utf8_base<wchar_t>@GLIBCXX_3.4.21'
/app/matlab/r2019a/bin/glnxa64/libut.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)@GLIBCXX_3.4.21'
0 comentarios
Respuestas (1)
Default
el 27 de Nov. de 2019
a colleague had me do the following and it resolved the issue for me:
Under Simulink Configuration Parameters (ctrl+E) -> Simulation Target -> "Additional build information" -> Libraries add the following
/usr/local/MATLAB/R2019a/sys/os/glnxa64/libstdc++.so.6
NOTE: the install path and version of the library may vary with install/MATLAB version.

0 comentarios
Ver también
Categorías
Más información sobre MATLAB Compiler en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!