当前位置:网站首页>[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
边栏推荐
- Common form verification
- Recommend an open source free drawing software draw IO exportable vector graph
- Experience of mathematical modeling in 18 year research competition
- Research on open source OCR engine
- Scripy tutorial - (2) write a simple crawler
- Syntax Error: TypeError: this. getOptions is not a function
- Es index (document name) fuzzy query method (database name fuzzy query method)
- LeetCode 1351、统计有序矩阵中的负数
- Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
- Plato farm is one of the four largest online IEOS in metauniverse, and the transaction on the chain is quite high
猜你喜欢
2022DASCTF Apr X FATE 防疫挑战赛 CRYPTO easy_real
2022dasctf APR x fat epidemic prevention challenge crypto easy_ real
Linux64Bit下安装MySQL5.6-不能修改root密码
Rt-1052 learning notes - GPIO architecture analysis
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
内网渗透之DOS命令
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
Leetcode 994, rotten orange
Customize timeline component styles
內網滲透之DOS命令
随机推荐
Preliminary understanding of cache elimination algorithm (LRU and LFU)
Common form verification
bounding box iou
16MySQL之DCL 中 COMMIT和ROllBACK
Solution to PowerDesigner's failure to connect to MySQL in x64 system
[latex] 5 how to quickly write out the latex formula corresponding to the formula
Investigate why close is required after sqlsession is used in mybatties
Zdns was invited to attend the annual conference of Tencent cloud basic resources and share the 2020 domain name industry development report
Come in and teach you how to solve the problem of port occupation
Scrapy教程 - (2)寫一個簡單爬蟲
Analysis of the relationship between generalized Bim and CAD under the current background
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Easy to use nprogress progress bar
The ODB model calculates the data and outputs it to excel
How can matlab obtain the truncated image in trainingimagelabeler
Why does ES6 need to introduce map when JS already has object type
三十.什么是vm和vc?
Identification of bolt points in aerial photography based on perception
Customize timeline component styles
Tensorflow 2 basic operation dictionary