MEX will not find Visual Basic

조회 수: 2 (최근 30일)
Susan Griffith
Susan Griffith 2015년 10월 15일
댓글: Geoff Hayes 2015년 10월 27일
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
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
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
Susan Griffith
Susan Griffith 2015년 10월 27일
You're right about the SDK not being a match, I hadn't noticed that. But we've been using visual studio 2015 as our compiler and it's not working despite the fact that it's listed among the supported compilers for 2015b. Is there a way to get MEX to search for 8.1 instead of 7.1?
Geoff Hayes
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 CenterFile 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!

Translated by