我目前正在学习SIFTGPU matlab教程,并停留在这个非常早期的部分:
SIFTGPU是用C++编写的,必须保存为.mex (MatlabExternal)文件,然后才能从Matlab调用它。要创建.mex文件,必须确保通过以下方式设置Matlab以访问外部C++编译器 mex -setup 进入Matlab命令窗口,并按照屏幕上的指令操作.
因为我没有Visual 2010和Windows,所以我遵循了C++在http://www.mathworks.com/support/compilers/R2011a/win64.html上的指示
然而,当涉及到matlab时,这两种软件的安装都很好:
>> 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/R2011a/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++ 2010 Express in D:\VS2010
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Visual C++ 2010 Express
Location: D:\VS2010
Are these correct [y]/n? y
*****************************************************************************
Error: Microsoft Visual C++ 2010 Express requires the Microsoft Windows
Software Development Kit (SDK), but the SDK cannot be found.
For more information about the required SDK, see:
http://www.mathworks.com/support/compilers/R2011a/win64.html
*****************************************************************************
??? Error using ==> mex at 208
Unable to complete successfully.我不知道下一步该去哪里。谁能告诉我在安装VC++ Express 2010和Windows之后下一步需要做什么?
发布于 2012-10-12 11:42:24
不要安装。安装Windows -它附带一个编译器,该设置与MATLAB一起工作。Visual也没有为我工作,因为您需要运行批处理文件来设置环境。
编辑这是安装了后的mex配置屏幕:
mex -setup 欢迎来到mex -setup。此实用工具将帮助您设置 默认编译器。有关受支持编译器的列表,请参见 http://www.mathworks.com/support/compilers/R2012a/win64.html 请选择用于生成MEX文件的编译器: 您想要mex定位已安装的编译器y/n吗?是 选择一个编译器: 1 (SDK) 7.1在C:\Program (X86)\ 10.0中 无 编译器:
https://stackoverflow.com/questions/12858067
复制相似问题