How to install MinGW 4.9.2 for Matlab

조회 수: 86 (최근 30일)
Hamza Mahdi
Hamza Mahdi 2017년 6월 19일
댓글: sujit Sharan 2023년 11월 17일
I have trouble installing the MinGW addon. I followed the instructions in the following link: https://www.mathworks.com/matlabcentral/answers/313286-why-do-i-see-a-java-util-zip-zipexception-error-in-my-installer-log-file-when-i-try-to-install-the
After I added the ZIP files to the target folder I tried to use the addon installer again, and I got past what I got stuck on previously. However, the addon installer is now stuck on 'Registering Support for MinGW-w64 compiler 4.9.2'
Please help me and thanks

채택된 답변

Hamza Mahdi
Hamza Mahdi 2017년 6월 22일
I installed the 2017 version and was able to add MinGW
  댓글 수: 2
vikram singh
vikram singh 2020년 9월 18일
Step 1:
Visit the following link and install the latest version of the TDM-GCC Compiler (in my case the latest version available, as of 16/07/2020, was: TDM-GCC 9.2.0 release):
The default installation location will be: C:\TDM-GCC-64
Step 2:
In MATLAB command prompt, type and run:
setenv('MW_MINGW64_LOC','C:\TDM-GCC-64')
Step 3:
In MATLAB command prompt, type and run:
mex -setup
And you are done with the stated compiler.
sujit Sharan
sujit Sharan 2023년 11월 17일
This works!

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

추가 답변 (19개)

Jatin Waghela
Jatin Waghela 2017년 6월 22일
MATLAB only supports TDM-gcc MinGW 4.9.2 for use in MATLAB for compiling MEX-files. Other versions of MinGW or MinGW 4.9.2 downloaded from other sources would not work.
If you are using MATLAB R2015b or R2016a, then download the MinGW installer from the link below: http://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-the-mingw-w64-c-c++-compiler-from-tdm-gcc
This installer requires MathWorks account and involves registration and configuration after the installation, which will help MATLAB recognize MinGW.
If you are using MATLAB R2016b, then search for 'MATLAB Support for the MinGW-w64 C/C++ Compiler from TDM-GCC' from the MATLAB Add-ons menu. More information on accessing the Add-ons menu can be found in the following link: https://www.mathworks.com/help/matlab/matlab_env/get-add-ons.html
You can then install the support package from the Add-on explorer.
  댓글 수: 2
Hamza Mahdi
Hamza Mahdi 2017년 6월 22일
I did that but that did not work. I ended up installing matlab2017a and then installed MinGW using the addon menu.
Zihao Liu
Zihao Liu 2018년 7월 16일
Hi I'm using R2015b, looks like the first link (intended for R2015b and R2016a) does not work any more.. The page says the file only works version after R2017?
And there seems huge difficulty to get a mingw-w64 4.9.2.
The mingw-w32 4.9.2 is available but not being used by R2015b..
Any suggestions?

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


Fabrice
Fabrice 2018년 6월 25일
I have trouble with Matlab 2014a to compile, on a Windows 10 laptop (cannot configure mex to generate files, cannot find an appropriate compiler even if I have on my PC Visual Studio 2017, MinGW, ...). How should I process to use mex, i.e. get C files compiled and continue with Matlab Mex files as I did before ? Thanks

Vinesh
Vinesh 2020년 1월 15일
Hello
Actually i have Matlab2017a, and i try to install my carte dspace 1104.
I have the same problems for instal the supports TDM-gcc MinGW 4.9.2 for use in MATLAB for compiling MEX-files. Other versions of MinGW or MinGW 4.9.2 downloaded from other sources would not work.
any suggestions ....

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697
  댓글 수: 2
Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697
Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

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


Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697
  댓글 수: 1
Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

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


Madan
Madan 2022년 9월 8일
Well credit loan c u s t o m e r care number 8409658697

Community Treasure Hunt

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

Start Hunting!

Translated by