Unable to replace MINGWROOT with Microsoft SDK 7.1 for matlab compiler
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Suvrat Ramasubramanian
el 9 de Oct. de 2018
Comentada: Suvrat Ramasubramanian
el 12 de Oct. de 2018
I am using MATLAB 2015b. I have uninstalled MINGW compiler and successfully installed microsoft SDK 7.1 in windows 10 machine. When I run mex -setup I can see MS SDK7.1 and VS C++ 2010 being detected.
However when I try to build a simulink model with canoe interface, I get an error:
### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c ### TLC code generation complete. . ### Processing Template Makefile: C:\Program Files\MATLAB\R2015b\rtw\c\canoe\cn_msdll.tmf ### sim_test.mk which is generated from C:\Program Files\MATLAB\R2015b\rtw\c\canoe\cn_msdll.tmf is up to date ### Building sim_test: .\\sim_test.bat
H:\Documents\canoe_simulink_intergration\sim_test_cn_rtw>set WINSDK_71A=
H:\Documents\canoe_simulink_intergration\sim_test_cn_rtw>cd .
H:\Documents\canoe_simulink_intergration\sim_test_cn_rtw>call "$MINGWROOT\VC\vcvarsall.bat" x86 The system cannot find the path specified.
At this point I am unable to find a solution. I appreciate any help!
Thanks in advance.
4 comentarios
Ming Yue
el 12 de Oct. de 2018
I have VS 2017 on my machine and I noticed that "vcvarsall.bat" is also under C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build. It seems that the batch file is looking for the same resource in mingw's root folder. Is there a way to point to your VS instead?
Also, in your Simulink model, you can open the "Model Configuration Parameters" -> "Code Generation". Please check in each subcategories to see if you selected the right compiler. Especially, check if MinGW is selected in the Toolchain settings.
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.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!