MinGW64 is installed and configured but Error during Compile: An installed compiler was not detected.

5 views (last 30 days)
Hi
I have downloaded and installed the MingW-Compiler successfulr for ML2018b (at C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\mingw_w64.instrset):
... Looking for compiler 'MinGW64 Compiler (C)' ...
... Looking for environment variable 'MW_MINGW64_LOC' ...Yes ('C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\mingw_w64.instrset').
... Looking for file 'C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\mingw_w64.instrset\bin\gcc.exe' ...Yes.
... Looking for folder 'C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\mingw_w64.instrset' ...Yes.
Found installed compiler 'MinGW64 Compiler (C)'.
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.
You can find more information about this at:
https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
But if i tryied to build a Simulink model with included Model blocks (with child models) i got the following error during compile of the first child model:
### Loading TLC function libraries
......
### Generating TLC interface API for custom data
...
### Initial pass through model to cache user defined code
### Caching model source code
....................................
### Writing header file Test_TLCs_ModelRef_Scalar_types.h
### Writing header file Test_TLCs_ModelRef_Scalar.h
### Writing source file Test_TLCs_ModelRef_Scalar.c
.
### Writing header file Test_TLCs_ModelRef_Scalar_private.h
### TLC code generation complete.
### Generating TLC interface API.
....
### Creating ASAP2 file: Test_TLCs_ModelRef_Scalar.a2l
..
### Indenting ASAP2 file.
.
### Processing Template Makefile: C:\Program Files\MATLAB\R2018b\rtw\c\ert\ert_lcc64.tmf
### Build procedure for model: 'Test_TLCs_ModelRef_Scalar' aborted due to an error.
### ERROR during code generation for task subsystem "Test_TLCs_ModelRef_Scalar":
An installed compiler was not detected. Certain simulation modes, as well as host-based coder builds require that a compiler be installed. Please install one of the supported compilers for this release as listed at:
http://www.mathworks.com/support/compilers/R2018b.html
MATLAB must be restarted after the compiler is installed.
### ERROR during code generation for task subsystem "TLCs_A":
Model has compile errors.
Why did Matlab not found the correct Compiler and try to use ert_lcc64.tmf as Template Makefile?
Are there any other configuration steps necessary?
PS: I have also set the Envoirement variable MW_MINGW64_LOC to C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\mingw_w64.instrset
Thanks for any support!
Best Regards
Dennis
  3 Comments

Sign in to comment.

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!