




全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
解决Matlab2012b找不到编译器的问题+解决补丁!matlab在关联编译器的时候,会出现找不到编译器的问题,原因是matlab要找windows sdk的mt.exe,找不到,必然报错. 因为vs2012在安装时,windows sdk的mt.exe位置变了,可能matlab还是按照老的路径找,肯定找不到(原来在windows sdks下面,现在在windows kits下面).matlab在关联编译器的时候,会出现找不到编译器的问题,原因是matlab要找windows sdk的mt.exe,找不到报错的.因为vs2012在安装时,windows sdk的mt.exe位置变了,而matlab还是按照老的路径找,肯定找不到(原来在windows sdks下面,现在在windows kits下面).如果你的环境是64位windows,并且vs2012装在默认目录下,matlab是64位版本,那么直接使用附件的文件,把他们添加到matlab/bin/win64下面的相关目录下即可,一个4个文件,放在2个目录.如果你的vs目录不是默认的,或者是32位版本,或者vs版本不是2012,那么需要修改附件里面的相关目录的设置(其实就是cl.exe和mt.exe的目录位置),我修改的方法是直接设置成目标目录(默认安装的位置),不是读注册表,这样简单,也无需修改注册表,以及建立什么目录链接(mklink).当然如果你的mt.exe目录不在Windows kits下,那需要修改附件的文件.附件里有一个word文件,是我修改的标识,当做帮助来用.使用方法,1 把附件相关的4个文件添加到matlab/bin/win64下面的2个相关目录2 在matlab 里面运行 mbuild -setup, 然后选 y, 再选择2012的那个项目,再选y3 这是应该成功了4 mex -setup也是一样的.有一个奇怪的情况,就是.stp文件必须直接修改,我在桌面修改,然后覆盖到matlab目录后,其实并没有覆盖,还是原来的文件. 修改时要注意.大家从这下载解决补丁吧!VS2010MEXSupport.zipHow can I use Microsoft Visual C+ 2010 to create MEX files with MATLAB 7.10 (R2010a)?官网解决方案:Solution:The Microsoft Visual C+ 2010 compiler is not supported on the released version of MATLAB 7.10 (R2010a), but support can be added by installing a patch. To install the patch:1. Download the patch attached to this Solution. The patch includes files needed to support these combinations of MATLAB and Visual C+ 2010:? Visual C+ 2010 Professional and 64-bit MATLAB 7.10 (R2010a)? Visual C+ 2010 Professional and 32-bit MATLAB 7.10 (R2010a)? Visual C+ 2010 Express (Windows SDK 7.1 also required) and 64-bit MATLAB 7.10 (R2010a)? Visual C+ 2010 Express and 32-bit MATLAB 7.10 (R2010a)2. Launch MATLAB 7.10 (R2010a). If running on Windows Vista or Windows 7 run as administrator by right-clicking on the MATLAB shortcut and choosing Run As Administrator. This permits modification of files in the MATLAB installation path.3. Confirm that you are running MATLAB 7.10 (R2010a). You can check this using the About box available at Help-About MATLAB.4. Unzip the contents of the patch into your MATLAB installation using the following command on the MATLAB command window.unzip( path_to_zip_file, matlabroot);This command will automatically unzipped the files in the correct folder and you do not have to worry about placing them in correct folder.5. Set up MEX to use Visual C+ 2010 with the command:mex setupVisual C+ 2010 should now be among the listed options.Note that this patch will only work with MATLAB 7.10 (R2010a). Using this patch with any version of MATLAB is not supported.Other MathWorks products such as Real-Time Workshop do not support Visual C+ 2010.Refer to/support/compilers/R2010a/index.htmlfor up-to-date information concerning supported compilers. Related Documents/Files: VS2010MEXSupport.zip具体操作方式: mex -setupWelcome to mex -setup. This utility will help you set upa default compiler. For a list of supported compilers, see/support/compilers/R2012b/win64.htmlPlease choose your compiler for building MEX-files:Would you like mex to locate installed compilers y/n? ySelect a compiler:1 Microsoft Software Development Kit (SDK) 7.1 in C:Program Files (x86)Microsoft Visual Studio 10.00 NoneCompiler: 1Please verify your choices:Compiler: Microsoft Software Development Kit (SDK) 7.1Location: C:Program Files (x86)Microsoft Visual Studio 10.0Are these correct y/n? y* Warning: MEX-files generated using Microsoft Windows Software Development Kit (SDK) require that Microsoft Visual Studio 2010 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:UsersAdministratorAppDataRoamingMathWorksMATLABR2012bmexopts.batFrom template: C:PROGRA1MATLABR2012bbinwin64mexoptsmssdk71opts.batDone . . .* Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 232-1 elements. In the near future you will be required to update
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年轨道交通站点周边文化娱乐项目开发社会稳定风险评估报告
- 2025年高校创新创业教育课程体系构建与创新创业教育国际化发展研究报告
- 2025届北京市石景山区市级名校高二化学第二学期期末监测模拟试题含解析
- 广东省惠州市2025年化学高二下期末调研试题含解析
- 2025至2030神经内分泌肿瘤药行业产业运行态势及投资规划深度研究报告
- 煤矿安全事故隐患
- 安全管理的几个阶段
- 《证券投资实务》(附微课第3版)-课程思政指引
- 幼儿园安全教育培训计划
- 直播带货公司对账规定
- 2025年中小学暑假安全教育主题家长会 课件
- 近视管理白皮书(2025)专家共识-
- GB/T 31586.1-2015防护涂料体系对钢结构的防腐蚀保护涂层附着力/内聚力(破坏强度)的评定和验收准则第1部分:拉开法试验
- 关节脱位患者的护理-关节脱位患者的护理(外科护理ppt)
- 产品合格证模板-合格证模板样本
- 水泵试运行调试记录
- 半导体中载流子的统计分布和计算
- 组织部处级干部培训审计财经纪律课件
- 史上最全最权威妇产科icd编码培训【版】课件
- 心血管诊治与抢救标准操作规程(SOP)
- 中南大学自主招生综合素质测试面试试题答题技巧
评论
0/150
提交评论