MEX will not find Visual Basic
1 次查看(过去 30 天)
显示 更早的评论
I'm using matlab 2015b on a windows 8.1 machine, and I need to compile .dll files in order to use phantom camera software for a research project I'm working on. I have visual studio 2015, and when I give the
"mex -setup"
command, I get back an error message saying that there is no SDK (which there is) and that a compiler wasn't found and directs me to a website which tells me that visual basic 2015 should work. I've tried many different things, including trying to alter the search path for MEX. I looked into the registries and found that visual basic is definitely in there.
Whats up? I just need Matlab to use visual basic to compile my .dll's
Thanks!
1 个评论
Geoff Hayes
2015-10-15
Susan - what does the following return
mex -setup -v
The above is similar to the command that you have run but with verbosity enabled. Please post the results here so that we can debug the problem further. Please also verify that your Visual Studio provides one of the compilers that are listed at the following link http://www.mathworks.com/support/compilers/R2015b/index.html.
回答(1 个)
Rohit Kudva
2015-10-19
Hi Susan,
As Geoff mentioned, if will be really helpful if you could post the output of
>> mex -setup -v
One possible reason for this issue can be that MATLAB was trying to find Windows SDK 8.1 but did not find it and thus failed to list Visual C++ 2015 as a compiler. The Windows SDK 8.1 gets installed as a part of the Visual Studio 2015. Check if SDK 8.1 is installed on the machine. If not, install SDK 8.1. Also, there is a possibility that instead of SDK 8.1, SDK 8.1A is present on the machine. In such cases, uninstall SDK 8.1A and install SDK 8.1. This should allow MATLAB to list Visual C++ 2015 as an installed compiler.
Regards,
Rohit
4 个评论
Geoff Hayes
2015-10-27
I don't think that you can trick MEX into searching for 8.1 instead. Perhaps Rohit will have a solution.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!