mex -setup Compiler listed but cannot find SDK
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jan
2011-9-22
• 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 个评论
Jan
2011-9-23
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!