Mbuild of MATLAB and Mex did not find a supported compiler or SDK solution--Collation

Source: Internet
Author: User

===========================================================================================

Workaround: Install Windows SDK 7.1

From:https://cn.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1

Prerequisite information

If you had any of the following cases true, see the troubleshooting sections at the bottom before proceeding with the SDK 7.1 Installation.

Microsoft Visual Studio C + + SP1 installed (version greater than 10.0.30319)

. NET Framework 4.5 installed (also bundled with Visual Studio or later)

Installing the WINDOWS SDK 7.1

1. Download Windows SDK for Windows 7 and. NET Framework 4 from Microsoft at:

http://www.microsoft.com/en-us/download/details.aspx?id=8279

2. When the download are complete, choose to run Winsdk_web.exe. Depending on your security settings, your may is prompted by the User account Control (UAC) to confirm "making changes Computer ".

3. After several seconds, the Setup Wizard is appear.

4. Click through the wizard, accepting the license agreement and not changing any of the installation folders.

5. Continue through the wizard to download and install the SDK. Depending on the speed of your Internet connection, this step would take a several minutes to a hour or more.

6. The Setup Wizard finishes.

Troubleshooting

. NET Framework 4.5 already installed

If you have the. NET Framework 4.5 installed, the SDK 7.1 may fail to install. In the case:

Uninstall. NET Framework 4.5.

Install the SDK 7.1 using the instructions above.

Reinstall. NET Framework 4.5.

If SDK 7.1 is already installed, but with a message saying. NET 4 could not being installed due to the presence of. NET 4.5, Need to uninstall. NET 4.5 first as well and retry.

Microsoft Visual Studio C + + SP1 already installed

If Microsoft Visual Studio C + + SP1 is already installed, the SDK 7.1 may fail to install. In the case:

Remove the redistributable packages (both x86 and x64). For this, navigate to the Windows Control Panel--click on "Programs"-click on "Programs and Features" se Lect the required programs to be removed.

Install SDK 7.1 Using the instructions above.

Apply the SDK 7.1 patch.

Reinstall Redistributable Packages.

If you have both Microsoft Visual Studio C + + SP1 and SDK 7.1 already installed, but running into various errors Durin G compilation, apply the SDK 7.1 patch to fix the issue.

"Ammintrin.h Missing" error

This occurs if only SDK 7.1 is installed (without Microsoft Visual C + + SP1 present on the machine), and then the SDK  7.1 Patch is applied. In the case:

Install Visual Studio C + + (if not already installed). Either Professional or Express works.

Upgrade Visual Studio C + + to SP1

Supporting LINKS and instructions

Installing the SDK 7.1 patch

The SDK 7.1 patch can download and installed from:

Upgrading Microsoft Visual Studio C + + SP1.

Microsoft Visual Studio C + + SP1 upgrade can be obtained from:

http://www.microsoft.com/en-us/download/details.aspx?id=23691

==============================================================================================

Matlab does not find a supported compiler or SDK solution summary

from:http://blog.csdn.net/gszhan/article/details/50951070

matlab compiler settings Sometimes encounter the following problems when using MATLAB to mix compilation


>> mbuild-setup error using Mbuild (line 164)
Unable to complete successfully.
No supported compilers or SDKs were found. For options, please visit Http://www.mathworks.com/support/compilers/R2014a/win64.

>> Mex-setup
Error using MEX

No supported compilers or SDKs were found. For options, please visit Http://www.mathworks.com/support/compilers/R2014a/win64.


Reason: Matlab to find the Windows SDK Mt.exe, can not find an error. Because vs2013 is installed, the Mt.exe location of the Windows SDK has changed, and Matlab is still looking for the old path. The original is under Windows SDKs, now under Windows kits). " (http://blog.csdn.NET/macong01/article/details/41356081)


The solution is mostly: Copy the files downloaded from the Web to the Bin\win64 mbuildopts and mexopts two folders in MATLAB.

Here's a summary of the replacement file:

Matlab 2011b + compiler VS2012

http://blog.csdn.net/macong01/article/details/41356081


matlab2013a+ compiler VS2013

Http://www.ilovematlab.cn/thread-298097-1-1.html 4L


matlab2015b + compiler vs2015

Http://www.ilovematlab.cn/thread-298097-1-1.html 10L

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.