mex -setup Compiler listed but cannot find SDK
2 views (last 30 days)
Show older comments
I am running R2011b with Windows 7(64 bit). I have installed MS visual c++ 2010 express. When I ran "mex -setup" it found the compiler but failed to complete because there was no SDK found. I tried installing the SDK 7.1 but it failed and I do not know why. So I installed SDK 7.0 which completed. mex -setup still reports no SDK.
I then tried R2010b. It finds C++ 2010 Express and C++ 2008 SP1 but again fails because the SDK cannot be found.
Can anyone help?
0 Comments
Answers (1)
Jan
on 22 Sep 2011
• For MSVC 2010:
If you only want to compile files through the MEX command, it is enough to install the SDK7.1 only and omit the MSVC 2010 Express installation. If you need the documentation of the WindowsAPI, the help tools of MSVC 2008 are very much better.
• For MSVC 2008:
"Both Microsoft Visual Studio 2008 and Windows Software Development Kit (SDK) 6.1 must be installed. When installing Microsoft Visual Studio, you must choose "X64 Compilers and Tools" when installing Microsoft Visual Studio; this is not selected by default."
2 Comments
Jan
on 23 Sep 2011
You are welcome. I've found this the hard way also. I've installed, reinstalled, uninstalled, installed the SP1 of MSVC Express and of the SDK, downloaded the DVD versions, stuck on the funny MS page, which told me: "Download the files appropriate for you. GRMSDK_EN_DVD.iso / GRMSDKIAI_EN_DVD.iso / GRMSDKX_EN_DVD.iso" and no descritpion on the page, what the difference between these three package is. Then I tried to install the MSDN help from a network drive. It starts and after 50% progress it freezed with the message "Do not stop the installation!". Killing it after 2 hours left so much junk on my harddisk, that I formatted it and reinstalled Windows.
See Also
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!