[英]Error using mex -setup: “No supported compiler or SDK was found”
I am using MatConvNet with the Microsoft Visual C/C++ 2015 compiler. 我将MatConvNet与Microsoft Visual C / C ++ 2015编译器一起使用。 It was installed and it worked. 它已安装且有效。 However, when I run mex -setup
I get the error message No supported compiler or SDK was found.
但是,当我运行mex -setup
,出现错误消息: No supported compiler or SDK was found.
MatConvNet still works and the compiler file is clearly in C:\\Program Files\\MATLAB\\R2017b\\bin\\win64\\mexopts
so why do I get that error message? MatConvNet仍然可以工作,并且编译器文件显然位于C:\\Program Files\\MATLAB\\R2017b\\bin\\win64\\mexopts
,为什么我会收到该错误消息?
Call: 呼叫:
mex -v -setup
Then look in the details, why your compiler was not found. 然后查看详细信息,为什么找不到您的编译器。
In my case eg it was because the registry variable: 以我为例,这是因为注册表变量:
HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\SxS\\VS7 HKLM \\ SOFTWARE \\ Wow6432Node \\微软\\ VisualStudio的\\的SxS \\ VS7
was set to 设置为
C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\TestPro C:\\ Program Files(x86)\\ Microsoft Visual Studio \\ 2017 \\ TestPro
instead of 代替
C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\ C:\\ Program Files(x86)\\ Microsoft Visual Studio \\ 2017 \\ Professional \\
You seem to be using MATLAB R2017b. 您似乎正在使用MATLAB R2017b。 The list of supported compilers states that R2017b supports MS Visual C++ 2015 professional , so I'm guessing, you're using the community edition. 受支持的编译器列表指出R2017b支持MS Visual C ++ 2015 Professional ,因此我想您正在使用社区版。
In that case, the easiest way forward is to get your hands on Visual C++ 2017, making sure that MatConvNet also works there. 在这种情况下,最简单的前进方法是动手使用Visual C ++ 2017,并确保MatConvNet也可以在那里工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.