当前位置:网站首页>[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
边栏推荐
- Syntax Error: TypeError: this. getOptions is not a function
- Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
- Handwritten Google's first generation distributed computing framework MapReduce
- 打新债中签以后怎么办,网上开户安全吗
- Latest investigation and progress of building intelligence based on sati
- LeetCode 116. Populate the next right node pointer for each node
- The ODB model calculates the data and outputs it to excel
- Scripy tutorial - (2) write a simple crawler
- MySQL 存储过程和函数
- DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
猜你喜欢

Plato Farm元宇宙IEO上线四大,链上交易颇高

The construction and use of Fortress machine and springboard machine jumpserver are detailed in pictures and texts

Identification of bolt points in aerial photography based on perception

Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference

Monte Carlo py solves the area problem! (save pupils Series)

Recognition of high-speed road signs by Matlab using alexnet

2022dasctf APR x fat epidemic prevention challenge crypto easy_ real

High paid programmer & interview question series 91 limit 20000 loading is very slow. How to solve it? How to locate slow SQL?

上海回應“面粉官網是非法網站”:疏於運維被“黑”,警方已立案

Vulnhub DC: 1 penetration notes
随机推荐
Research on open source OCR engine
Es error: request contains unrecognized parameter [ignore_throttled]
Commit and ROLLBACK in DCL of 16mysql
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
DOS command of Intranet penetration
The problem of 1 pixel border on the mobile terminal
How to configure SSH public key in code cloud
XXXI` Prototype ` displays prototype properties and`__ proto__` Implicit prototype properties
JS arrow function user and processing method of converting arrow function into ordinary function
Zdns was invited to attend the annual conference of Tencent cloud basic resources and share the 2020 domain name industry development report
vulnhub DC:1渗透笔记
The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
Implementation of mypromise
Operation of numpy array
MySQL stored procedures and functions
Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
Devexpress 14.1 installation record
ArcGIS js api 4. X submergence analysis and water submergence analysis
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
bounding box iou