简体   繁体   English

使用mex -setup时出错:“未找到受支持的编译器或SDK”

[英]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.

相关问题 使用 mex 时出错:找不到支持的编译器或 SDK - Error using mex: No supported compiler or SDK was found Matlab 2017a无法识别编译器(使用mex时出错,未找到受支持的编译器或SDK) - Matlab 2017a not recognizing compiler (Error using mex No supported compiler or SDK was found) MATLAB在mex_compile Linux中找不到受支持的编译器或SDK - MATLAB No supported compiler or SDK was found in mex_compile Linux `未检测到使用 mex 支持的编译器时出错`:无法为 MATLAB 安装与 CUDA 兼容的 C++ 编译器 - `Error using mex Supported compiler not detected`: can't install a CUDA-compatible C++ compiler for MATLAB 使用mex在MATLAB中找不到C ++编译器 - No C++ compiler found in MATLAB using mex 在此计算机/ LIBSVM上找不到受支持的SDK编译器 - No supported SDK compiler found on this computer/LIBSVM MatLab中的Fortran-mex设置错误 - Fortran in MatLab - Error in mex Setup mex -setup似乎在编译期间已完成,但出现错误“未安装编译器” - mex -setup seems complete while during compilation i get error “no compiler installed” Matlab simulink 无法找到 Stateflow 和 MATLAB Function 模块所需的 C 编译器。 使用“mex -setup”选择支持的 C 编译器 - Matlab simulink Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler 如何将MATLAB的mex设置定向到Microsoft Windows SDK以进行C ++编译? (设置位置错误) - How to direct MATLAB's mex setup to the Microsoft Windows SDK for C++ compiling? (error in setting location)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM