Simulink Accelerator Mode is using the wrong compiler and won't build
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jesse Hopkins
el 14 de Mzo. de 2019
Comentada: Jesse Hopkins
el 18 de Feb. de 2020
I am attempting to run a set of simuilnk models using model references. I have both MinGW and Visual Studio installed, and switch between them regularly using mex -setup. I typically leave the Simulink model configset 'Toolchain' parameter at 'Auto', which has worked for many years.
However, my current model ALWAYS seems to want to use visual studio to compile the top-level model accelerator target, even when mex -setup is set to MinGW (both C and C++), and I've even manually set the 'Toolchain' parameter to 'MinGW64 | gmake (64-bit Windows)'!
Curiosly, the referenced models (which are sharing the same referenced config set) ARE built with the MinGW toolchain, but when the top-level accelerator target is attempted to update, it bombs out with the message:
The model 'FSIM_FsimTestModel' is configured to use the compiler 'Microsoft Visual C++ 2015 (C):TMF', however the referenced model 'FSIM_FsimTestModel_referenced' was built with 'MinGW64 Compiler (C):Toochain' which is not compatible for a model reference hierarchy build. Consider configuring all models to use the same compiler. The Build Process will terminate.
The message politely suggests to "Consider configuring all models to use the same compiler", but I've exhausted all of my knowledge of how to accomplish this? Any thoughts?
Why is the top level model claiming to be congifured for Visual Studio when it's 'Toolchain' parameter is explicitly set to 'MinGW64 | gmake (64-bit Windows)'?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Support for MinGW-w64 C/C++ 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!