当前位置:网站首页>[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
边栏推荐
- What is the difference between a host and a server?
- SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
- MySQL stored procedures and functions
- Browser - learning notes
- Devexpress 14.1 installation record
- vulnhub DC:1渗透笔记
- 內網滲透之DOS命令
- JSX syntax rules
- Flex layout
- Numpy Index & slice & iteration
猜你喜欢
【PTA】L1-002 打印沙漏
Recognition of high-speed road signs by Matlab using alexnet
Numpy - creation of data type and array
Latest investigation and progress of building intelligence based on sati
LeetCode 542、01 矩阵
Operation of numpy array
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
How can matlab obtain the truncated image in trainingimagelabeler
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
随机推荐
Some basic configurations in interlij idea
The problem of 1 pixel border on the mobile terminal
打新债中签以后怎么办,网上开户安全吗
【PTA】整除光棍
LeetCode 1346、检查整数及其两倍数是否存在
GO语言开发天天生鲜项目第三天 案例-新闻发布系统二
Solve the Chinese garbled code of URL in JS - decoding
LeetCode 1337、矩阵中战斗力最弱的 K 行
Actual measurement of automatic ticket grabbing script of barley network based on selenium (the first part of the new year)
SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
6-5 字符串 - 2. 字符串复制(赋值) (10 分)C语言标准函数库中包括 strcpy 函数,用于字符串复制(赋值)。作为练习,我们自己编写一个功能与之相同的函数。
2022dasctf APR x fat epidemic prevention challenge crypto easy_ real
go-zero框架数据库方面避坑指南
Numpy Index & slice & iteration
Operation of numpy array
SQL: query duplicate data and delete duplicate data
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
Syntaxerror: unexpected token r in JSON at position 0
Case of the third day of go language development fresh every day project - news release system II
Latest investigation and progress of building intelligence based on sati