Unable to install MinGW-w64

조회 수: 82 (최근 30일)
MAGDALINI EFTHYMIADOU
MAGDALINI EFTHYMIADOU 2023년 9월 15일
편집: Samih 2023년 12월 14일
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?

답변 (2개)

Harimurali
Harimurali 2023년 10월 4일
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
Samih
Samih 2023년 12월 14일
편집: Samih 2023년 12월 14일
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?

댓글을 달려면 로그인하십시오.


Lokesh
Lokesh 2023년 10월 4일
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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by