本帖最后由 Ericwjc 于 2014-6-17 19:35 编辑

运行 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/R2012a/win64.html

Please choose your compiler for building MEX-files:

Would you like mex to locate installed compilers [y]/n? y

No supported SDK or compiler was found on this computer.

For a list of supported compilers, see

http://www.mathworks.com/support/compilers/R2012a/win64.html

Error using mex (line 206)

Unable to complete successfully.

如果 Would you like mex to locate installed compilers [y]/n?n

Select a compiler:

[1] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker)

[2] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker)

[3] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker)

[4] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)

[5] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker)

[6] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker)

[7] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker)

[8] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker)

[9] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)

[10] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)

[11] Microsoft Software Development Kit (SDK) 7.1

[12] Microsoft Visual C++ 2005 SP1

[13] Microsoft Visual C++ 2008 SP1

[14] Microsoft Visual C++ 2010

[0] None

Compiler:

compiler 选 11或者13或者14都不行。

Warning: The default location for Microsoft Visual C++ 2010 compiler is:

"C:\Program Files (x86)\Microsoft Visual Studio 10.0"

but either that directory does not exist or the configuration

is invalid.

Use C:\Program Files (x86)\Microsoft Visual Studio 10.0 anyway [y]/n? y

Please verify your choices:

Compiler: Microsoft Visual C++ 2010

Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0

Are these correct [y]/n? y

*****************************************************************************

Error: Microsoft Visual C++ 2010 requires the Microsoft Windows Software

Development Kit (SDK), but the SDK cannot be found.  Examine your

Microsoft Visual C++ 2010 installation.

*****************************************************************************

Error using mex (line 206)

Unable to complete successfully.

请教高手,谢谢!

mex问题解决了!!!!!

之前按照网上说的安装各种 "Win SDK for Windows 7 and .NET 4",由于下载了 “GRMSDK_EN_DVD.iso”这个文件,安装的时候总是会显示 “Setup could not find the file WinSDK_amd64\WinSDK_amd64.msi at any of the specified source locations”。

然后还是在网上各种搜索,后来在看到了下面的说明:

================================================

File Name: GRMSDK_EN_DVD.iso

Chip: X86

CRC#: 0xCA4FE79D

SHA1: 0x8695F5E6810D84153181695DA78850988A923F4E

================================================

File Name: GRMSDKX_EN_DVD.iso

Chip: AMD64

CRC#: 0xB417A4F7

SHA1: 0x3393C98B8468CB3505557854922707510F8B65E1

================================================

File Name: GRMSDKIAI_EN_DVD.iso

Chip: Itanium

CRC#: 0x5E0E4BEA

SHA1: 0xAE454215585A044EBE593E9F71FF1A4BC03D56A8

================================================

看到了上面的”Chip: AMD64“,于是想这个会不会和“Setup could not find the file WinSDK_amd64\WinSDK_amd64.msi at any of the specified source locations”中的“amd64”有关,于是就下载了“GRMSDKX_EN_DVD.iso”,接着安装顺。

>> 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/R2012a/win64.html

Please choose your compiler for building MEX-files:

Would you like mex to locate installed compilers [y]/n? n

Select a compiler:

[1] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker)

[2] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker)

[3] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker)

[4] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)

[5] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker)

[6] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker)

[7] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker)

[8] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker)

[9] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)

[10] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)

[11] Microsoft Software Development Kit (SDK) 7.1

[12] Microsoft Visual C++ 2005 SP1

[13] Microsoft Visual C++ 2008 SP1

[14] Microsoft Visual C++ 2010

[0] None

Compiler: 13

Warning: The default location for Microsoft Visual C++ 2008 SP1 compiler is:

"C:\Program Files (x86)\Microsoft Visual Studio 9.0"

but either that directory does not exist or the configuration

is invalid.

Use C:\Program Files (x86)\Microsoft Visual Studio 9.0 anyway [y]/n? y

Please verify your choices:

Compiler: Microsoft Visual C++ 2008 SP1

Location: C:\Program Files (x86)\Microsoft Visual Studio 9.0

Are these correct [y]/n? y

***************************************************************************

Warning: MEX-files generated using Microsoft Visual C++ 2008 require

that Microsoft Visual Studio 2008 run-time libraries be

available on the computer they are run on.

If you plan to redistribute your MEX-files to other MATLAB

users, be sure that they have the run-time libraries.

***************************************************************************

Trying to update options file: C:\Users\Administrator\AppData\Roaming\MathWorks\MATLAB\R2012a\mexopts.bat

From template:              C:\PROGRA~1\MATLAB\R2012a\bin\win64\mexopts\msvc90opts.bat

Done . . .

**************************************************************************

Warning: The MATLAB C and Fortran API has changed to support MATLAB

variables with more than 2^32-1 elements.  In the near future

you will be required to update your code to utilize the new

API. You can find more information about this at:

Building with the -largeArrayDims option enables the new API.

**************************************************************************

但还是 compile failed !!!!???????????????????????????

C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: Compile of 'cemdc.c' failed.

请教高手上述问题,非常感谢!

matlab 2012a mex设置,【mex成功但compile failed】:win7 64bit matlab R2012a mex问题相关推荐

  1. matlab错误103 577,小编为你作答win7系统安装MATLAB出现 license manager error 103错误的还原教程...

    win7旗舰版是用户量最大的一款操作系统:有不少人在使用中都遇见了win7系统安装MATLAB出现 license manager error 103错误的问题,相信很多朋友是人生中第一次碰到win7 ...

  2. Matlab神经网络工具箱中net.trainParam设置不成功问题

    Matlab神经网络工具箱中net.trainParam设置不成功问题 本人找寻很久发现即使设置了net.trainParam中的各参数值,但是在nntraintool显示后一直都没有改变,找遍全网都 ...

  3. matlab混合编程设置,matlab c++ 混合编程初始设置

    以前做过matlab7与c++的混合编程:将m函数编译成dll给C++调用,从而加快开发的进度.但是今天在matlab2008b 下面又做了一遍,发现matlab又改了很多东西,诸如增加了面向对象的的 ...

  4. matlab amesim 版本,高版本amesim—matlab联合仿真设置详细步骤.pdf

    高版本amesim-matlab联合仿真设置详细步骤 高版本AMESim-MATLAB 联合仿真设置详细步骤 说明:现以AMESimR12 .MATLAB2010a 为例说明,其他版本类似. 1.版本 ...

  5. yii 1.4 constant.php,yii 中设置提示成功信息,错误提示信息,警告信息

    方法一: Yii::app()->user->setFlash('success',"Data saved!"); 设置键值名为success的临时信息.在getFla ...

  6. python为什么运行不了_python为什么会环境变量设置不成功

    学习python编程,首先要配置好环境变量.本文主要讲解python的环境变量配置,在不同版本下如何安装 Windows 打开Python官方下载网站 x86:表示是32位电脑 x86-64:表示是6 ...

  7. python需要配置环境变量吗_python为什么会环境变量设置不成功

    学习python编程,首先要配置好环境变量.本文主要讲解python的环境变量配置,在不同版本下如何安装 Windows 打开Python官方下载网站 https://www.python.org/d ...

  8. 在MATLAB R2020a中设置m文件的字体大小

    在MATLAB R2020a中设置m文件的字体大小 1.打开MATLAB R2020a: 2.找到快速访问工具栏.如下图1: 3.打开图1中红色方框内的工具栏设置: 4.选择自定义工具栏: 5.打开字 ...

  9. 树莓派4B中中文字体和中文输入法设置不成功问题解决办法

    树莓派4B中中文字体和中文输入法设置不成功问题解决办法 按照树莓派新手入门手册的步骤,安装中文字库: sudo apt-get install ttf-wqy-zenhei 安装过程中如果碰到(Y/N ...

最新文章

  1. Android系统源码导入Android studio
  2. a*算法matlab代码_蚁群算法(含MATLAB代码)
  3. 关于保存到session里的信息
  4. 在C#2.0中使用Nullable可空类型
  5. pcb只开窗不镀锡_FPC、PCB和FFC的关系和区别-美好精密
  6. Excel向数据库插入数据(执行一次只需连接一次)-batch简单使用
  7. 华为留一手鸿蒙,华为“留一手”?华为P40或采用安卓+鸿蒙双系统!
  8. 【报告分享】2020大中华区人工智能成熟度调研:解码2020,展望数字未来.pdf(附下载链接)...
  9. 《shell脚本学习指南》自学笔记——入门
  10. C++实现人机对战围棋(使用Leela Zero权重)-策略
  11. Ubuntu下 VS code安装并配置C/C++模块
  12. 个人职场工作感悟总结「如何尽快地提升自我」
  13. java for冒号_浅谈对Java双冒号::的理解
  14. 使用matlab建立个人简历,HTML 使用表格制作简单的个人简历
  15. S32DS封装静态库相关问题
  16. WEBERP测试实录:一 webERP安装
  17. scite for php,SCITE配置系列
  18. 关于传奇聚灵珠Gom脚本的详细说明讲解
  19. stream对象集合按照时间进行排序
  20. 我花了两天把接外包的血泪写了出来

热门文章

  1. vue项目如何减少app.js和vender.js的体积
  2. 璀璨之蓝“引爆”全场 讯飞录音笔SR502宝石蓝科技感爆棚
  3. 【区块链】区块链是什么?20问:读懂区块链
  4. gc2000导出丝印和坐标_【干货】GC2000(GC-PowerStation)软件导出贴片坐标视频教程
  5. 令人无限遐想的各种PCIe加速板卡
  6. Linux中删除文件夹中所有文件或子文件夹
  7. 济南有了“盒区房”,帝王蟹、波士顿龙虾最快30分钟送达
  8. matlab设计倒频系统,OFDM技术仿真(MATLAB代码)
  9. FFT算法中的倒序法
  10. 毛毛雨的博客乐园—内容简介