- Download “mingw.mlpkginstall” file from the following link: https://in.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/52848/versions/22/download/mlpkginstall
- Double click this file and follow the steps for installation.
Unable to install MinGW-w64
84 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (2 件)
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
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').
EDIT: This link worked for me as mex -setup works : https://www.mathworks.com/matlabcentral/answers/313298-i-already-have-mingw-on-my-computer-how-do-i-configure-it-to-work-with-matlab#answer_244144
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
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:
- 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
- Extract the ZIP-file in an empty directory. Ensure that there are no spaces in the path, for example: “C:\MinGW-64”
- 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.
- Set the variable to the path mentioned in step 2 above, for example: “MW_MINGW64_LOC=C:\MinGW-64”.
- 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:
- https://in.mathworks.com/matlabcentral/answers/663443
- https://in.mathworks.com/matlabcentral/answers/717545
I hope this helps you in resolving the issue.
Best Regards,
Lokesh
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!