Clear Filters
Clear Filters

Unable to install MinGW-w64

139 views (last 30 days)
MAGDALINI EFTHYMIADOU
MAGDALINI EFTHYMIADOU on 15 Sep 2023
Edited: Samih on 14 Dec 2023
I tried to install MinGW-w64 compiler, but there is the error shown in the picture below. The problem is that although I followed all the instructions here Why do I receive an Error regarding third party software when Downloading or Installing a support package? - MATLAB Answers - MATLAB Central (mathworks.com), I am not able to install it and compile C files of course. Any idea?

Answers (2)

Harimurali
Harimurali on 4 Oct 2023
Hi Magdalini,
I understand that you are facing a download error while trying to install the MinGW-w64 compiler using the add-ons manager in MATLAB.
You can follow these steps to install the “MATLAB Support for MinGW-w64 C/C++ Compiler" instead of directly installing it from the add-ons manager:
After installation completes, you can refer the instructions given in the following link to test MinGW compiler:
I hope this helps.
  1 Comment
Samih
Samih on 14 Dec 2023
Edited: Samih on 14 Dec 2023
I downloaded mingw.mlpkginstall yet I still get the same error.
I found this error after trying to run the slexFMCWExample.slx file from
openExample('radar/slexFMCWExampleExample').
But I still get a fatal error : Error:C:\Users\admin\OneDrive - Universit├® Mohammed VI Polytechnique\Documents\MATLAB\Examples\R2023b\radar\slexFMCWExampleExample\slprj\_cgxe\slexFMCWExample\src\slexFMCWExample_cgxe.c:4:38: fatal error: m_MTEGyCJwG4ag6dipsC4WoC.h: No such file or directory
Are there any workarounds?

Sign in to comment.


Lokesh
Lokesh on 4 Oct 2023
Hi Magdalini,
I understand that you are facing issues while installing the MinGW-w64 compiler.
Please refer to the following steps to resolve the issue:
  1. Download “MinGW 6.3: https://sourceforge.net/projects/mingww64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/6.3.0/threads-posix/seh/x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
  2. Extract the ZIP-file in an empty directory. Ensure that there are no spaces in the path, for example: “C:\MinGW-64
  3. Create the environment variable “MW_MINGW64_LOC. You can find instructions on how to create an environment variable here: http://www.mathworks.com/matlabcentral/answers/223482.
  4. Set the variable to the path mentioned in step 2 above, for example: “MW_MINGW64_LOC=C:\MinGW-64.
  5. Restart MATLAB and then call 'mex -setup' in MATLAB to check and configure MinGW. The output should show something like: "MEX configured to use 'MinGW64 Compiler (C)'...".
You can refer to the following MATLAB Answers for further clarification:
I hope this helps you in resolving the issue.
Best Regards,
Lokesh

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!