当前位置:网站首页>[matlab 2016 use mex command to find editor visual studio 2019]
[matlab 2016 use mex command to find editor visual studio 2019]
2022-04-23 20:37:00 【Zhongai0049】
【Matlab2016 Use mex Command to find the editor Visual Studio2019】
Recently, I want to use VS and matlab Programming , But there's no way to make matlab find VS, After many inquiries , Specially recorded here .
problem :mex Command error
mex -setup
Misuse mex
No supported compiler or SDK. You can install the free MinGW-w64 C/C++ compiler ; See installation MinGW-w64 compiler . More options , Please visit http://www.mathworks.com/support/compilers/R2016b/win64.html.
It was found that the problem was caused by the inability to find the compiler , Therefore, the detailed mode is used to check the specific reasons , The order is as follows :
mex -setup -v
Detailed mode on .
… Looking for compiler ‘Intel C++ Composer XE 2013 with Microsoft SDK 7.1 ’…
… Looking for environment variables ‘ICPP_COMPILER14’… no .
… Looking for environment variables ‘ICPP_COMPILER13’… no .
No compiler installed found ‘Intel C++ Composer XE 2013 with Microsoft SDK 7.1 ’.
… Looking for compiler ‘Intel C++ Composer XE 2013 with Microsoft Visual Studio 2012 ’…
… Looking for environment variables ‘ICPP_COMPILER14’… no .
… Looking for environment variables ‘ICPP_COMPILER13’… no .
No compiler installed found ‘Intel C++ Composer XE 2013 with Microsoft Visual Studio 2012 ’.
… Looking for compiler ‘Intel C++ Composer XE 2013 with Microsoft Visual Studio 2013 ’…
… Looking for environment variables ‘ICPP_COMPILER14’… no .
… Looking for environment variables ‘ICPP_COMPILER13’… no .
No compiler installed found ‘Intel C++ Composer XE 2013 with Microsoft Visual Studio 2013 ’.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft SDK 7.1 ’…
… Looking for environment variables ‘ICPP_COMPILER15’… no .
No compiler installed found ‘Intel Parallel Studio XE 2015 with Microsoft SDK 7.1 ’.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2012 ’…
… Looking for environment variables ‘ICPP_COMPILER15’… no .
No compiler installed found ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2012 ’.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2013 ’…
… Looking for environment variables ‘ICPP_COMPILER15’… no .
No compiler installed found ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2013 ’.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 ’…
… Looking for environment variables ‘ICPP_COMPILER15’… no .
No compiler installed found ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 ’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft SDK 7.1 ’…
… Looking for environment variables ‘ICPP_COMPILER16’… no .
No compiler installed found ‘Intel Parallel Studio XE 2016 with Microsoft SDK 7.1 ’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2012 ’…
… Looking for environment variables ‘ICPP_COMPILER16’… no .
No compiler installed found ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2012 ’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2013 ’…
… Looking for environment variables ‘ICPP_COMPILER16’… no .
No compiler installed found ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2013 ’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 ’…
… Looking for environment variables ‘ICPP_COMPILER16’… no .
No compiler installed found ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 ’.
… Looking for compiler ‘MinGW64 Compiler ’…
… Looking for environment variables ‘MW_MINGW64_LOC’… no .
No compiler installed found ‘MinGW64 Compiler ’.
… Looking for compiler ‘Microsoft Visual C++ 2012 ’…
… Looking for registry settings ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 11.0… no .
… Looking for registry settings ‘HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 11.0… no .
… Looking for registry settings ‘HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7’ 11.0… no .
… Looking for registry settings ‘HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7’ 11.0… no .
No compiler installed found ‘Microsoft Visual C++ 2012 ’.
… Looking for compiler ‘Microsoft Visual C++ 2013 Professional ’…
… Looking for registry settings ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 12.0… no .
… Looking for registry settings ‘HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 12.0… no .
… Looking for registry settings ‘HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7’ 12.0… no .
… Looking for registry settings ‘HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7’ 12.0… no .
No compiler installed found ‘Microsoft Visual C++ 2013 Professional ’.
… Looking for compiler ‘Microsoft Visual C++ 2015 Professional ’…
… Looking for registry settings ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 14.0… yes (‘C:\Program Files (x86)\Microsoft Visual Studio 14.0’).
… Looking for files ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe’… no .
No compiler installed found ‘Microsoft Visual C++ 2015 Professional ’.
… Looking for compiler ‘Microsoft Visual C++ 2019 ’…
… Looking for registry settings ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 16.0… no .
… Looking for registry settings ‘HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 16.0… no .
… Looking for registry settings ‘HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7’ 16.0… yes (‘C:\Program Files (x86)\Microsoft Visual Studio 16.0’).
… Executing order ‘set “vcroot=C:\Program Files (x86)\Microsoft Visual Studio 16.0”&for /f "delims= " %a in (‘type “C:\Program Files (x86)\Microsoft Visual Studio 16.0\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt”’) do @if exist “C:\Program Files (x86)\Microsoft Visual Studio 16.0\VC\Tools\MSVC%a\bin\HostX64\x64\cl.exe” call echo %vcroot%’… no .
No compiler installed found ‘Microsoft Visual C++ 2019 ’.
… Looking for compiler ‘Microsoft Windows SDK 7.1 ’…
… Looking for registry settings ‘HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1’ InstallationFolder… no .
… Looking for registry settings ‘HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v7.1’ InstallationFolder… no .
No compiler installed found ‘Microsoft Windows SDK 7.1 ’.
Misuse mex
No supported compiler or SDK. You can install the free MinGW-w64 C/C++ compiler ; See installation MinGW-w64 compiler . of
More options , Please visit http://www.mathworks.com/support/compilers/R2016b/win64.html.
It is found that the bold part is that the compiler is not found VS2019 Why . because matlab Finding the compiler is usually through the registry to find the corresponding compiler and SDK.
Open the registry : Press down win+r key , Input regedit Open registry editor .
seek matlab The corresponding file method is as follows :
Mainly looking for two files :HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE, They correspond to each other Matlab Medium HKCU and HKLM
according to MATLAB Error messages in , Corresponding search :
1. Find the way :’HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 16.0‘
Add string :
Right click to add a string , Name it 16.0, Change the value to VS2019 Installation directory .
————————————————
And then again in matlab Run in mex command :
Found compiler VS2019, Just choose the language you want to use .
Reference resources :1.Matlab2016 And above version settings VS compiler
2.vs2019+matlab2016b mex Not working properly , No compiler installed found
版权声明
本文为[Zhongai0049]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210547163281.html
边栏推荐
- Investigate why close is required after sqlsession is used in mybatties
- LeetCode 709、转换成小写字母
- Automatically fill in body temperature and win10 task plan
- LeetCode 1351、统计有序矩阵中的负数
- 【栈和队列专题】—— 滑动窗口
- Scrapy教程 - (2)寫一個簡單爬蟲
- Monte Carlo py solves the area problem! (save pupils Series)
- Syntaxerror: unexpected token r in JSON at position 0
- 打新债中签以后怎么办,网上开户安全吗
- The problem of 1 pixel border on the mobile terminal
猜你喜欢
Plato farm is one of the four largest online IEOS in metauniverse, and the transaction on the chain is quite high
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
GO语言开发天天生鲜项目第三天 案例-新闻发布系统二
Commit and rollback in DCL of 16 MySQL
go-zero框架数据库方面避坑指南
【SQL】字符串系列2:将一个字符串根据特定字符分拆成多行
LeetCode 116. 填充每个节点的下一个右侧节点指针
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
On BIM data redundancy theory
【栈和队列专题】—— 滑动窗口
随机推荐
ArcGIS JS version military landmark drawing (dovetail arrow, pincer arrow, assembly area) fan and other custom graphics
黑客的入侵方式你知道几种?
RT-1052学习笔记 - GPIO架构分析
Shanghai a répondu que « le site officiel de la farine est illégal »: l'exploitation et l'entretien négligents ont été « noirs » et la police a déposé une plainte
DOS command of Intranet penetration
Thirty What are VM and VC?
BMP JPEG picture to vector image contourtrace
Vulnhub DC: 1 penetration notes
2022DASCTF Apr X FATE 防疫挑战赛 CRYPTO easy_real
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
How to use PM2 management application? Come in and see
Numpy - creation of data type and array
Leetcode 232, queue with stack
How to do after winning the new debt? Is it safe to open an account online
Research on open source OCR engine
Rt-1052 learning notes - GPIO architecture analysis
Development of Matlab GUI bridge auxiliary Designer (functional introduction)
內網滲透之DOS命令
UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
【栈和队列专题】—— 滑动窗口