mbuild -setup: how to setup a compiler x64 on matlab 2013a?

5 vues (au cours des 30 derniers jours)
Nour Tateb
Nour Tateb le 7 Sep 2016
Hi, i am currently trying to create an excel addin using Matlab 2013a and windows 10. I get the following error message:
>> mex -setup
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler:
[1] Intel C++ 13.0 (with Microsoft Software Development Kit (SDK) linker)
[2] Intel C++ 13.0 (with Microsoft Visual C++ 2010 linker)
[3] Intel C++ 13.0 (with Microsoft Visual C++ 2012 linker)
[4] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker)
[5] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker)
[6] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker)
[7] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[8] Intel Visual Fortran 13 (with Microsoft Software Development Kit (SDK) linker)
[9] Intel Visual Fortran 13.0 (with Microsoft Visual C++ 2010 linker)
[10] Intel Visual Fortran 13.0 (with Microsoft Visual C++ 2012 linker)
[11] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker)
[12] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker)
[13] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker)
[14] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker)
[15] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[16] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)
[17] Microsoft Software Development Kit (SDK) 7.1
[18] Microsoft Visual C++ 2005 SP1
[19] Microsoft Visual C++ 2008 SP1
[20] Microsoft Visual C++ 2010
[21] Microsoft Visual C++ 2012
[0] None
Compiler: 19
Warning: The default location for Microsoft Visual C++ 2008 SP1 compiler is:
"C:\Program Files (x86)\Microsoft Visual Studio 9.0"
but either that directory does not exist or the configuration
is invalid.
Use C:\Program Files (x86)\Microsoft Visual Studio 9.0 anyway [y]/n? n
Please enter the location of your compiler: [C:\Program Files (x86)\Microsoft Visual Studio 9.0] C:\Program Files (x86)\Microsoft Visual Studio 14.0
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 SP1
Location: C:\Program Files (x86)\Microsoft Visual Studio 14.0
Are these correct [y]/n? y
*****************************************************************************
Error: Could not find the Microsoft Windows Software Development Kit (SDK).
This may indicate that the Microsoft Windows Software Development
Kit (SDK) or the "X64 Compilers and Tools" is not installed.
To build 64-bit MEX-files Microsoft Visual C++ 2008 requires that
these two packages are installed properly.
*****************************************************************************
Error using mex (line 206)
Unable to complete successfully.
I have installed visual studio 2008 but for some reason matlab can't see the compiler.
Can anyone please help?
Many thanks

Réponses (1)

Walter Roberson
Walter Roberson le 8 Sep 2016
The directory you replied with, "C:\Program Files (x86)\Microsoft Visual Studio 14.0" would be a directory associated with Visual Studio 2015 which R2013a does not know how to find the tools for.
I suspect that you might have installed Visual Studio 2008 Express. R2013a does not support the Express editions: it needs the Professional editions.
R2013a is not supported for Windows 10. You will have difficulty getting a compiler to work.
You might be able to install SDK 7.1, but I do not know if the difficulties with installing .NET 4.0 were ever resolved for Windows 10.

Catégories

En savoir plus sur Call C++ from MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by