Problem with mex compiler

1 view (last 30 days)
Daniel
Daniel on 2 Apr 2013
Hi there,
I had this setup in the past and it worked well. But after upgrading to R2012a I can't run the mex compiler. At the setup, the following error is received... Any advice is welcome!
>> 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/R2012a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler: [1] Microsoft Visual C++ 2008 SP1 in c:\Program Files (x86)\Microsoft Visual Studio 9.0
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 SP1 Location: c:\Program Files (x86)\Microsoft Visual Studio 9.0
Are these correct [y]/n? y
*************************************************************************** Error: Could not find the 64-bit compiler. This may indicate that the "X64 Compilers and Tools" or the Microsoft Windows Software Development Kit (SDK) 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.
>>
>> ver ------------------------------------------------------------------------------------------------------- MATLAB Version: 7.14.0.739 (R2012a) MATLAB License Number: •••••• Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1) Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ 64-Bit Server VM mixed mode -------------------------------------------------------------------------------------------------------

Answers (1)

Jan
Jan on 2 Apr 2013
according to the error message, it would be helpful to check this and explain it accordingly:
This may indicate that the "X64 Compilers and Tools" or the Microsoft Windows Software Development Kit (SDK) is not installed.
There have been problems with the order of the installations and a bugfix from Microsoft. Please search in this forum for the many corresponding threads.

Categories

Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!