Filter löschen
Filter löschen

MEX will not find Visual Basic

3 Ansichten (letzte 30 Tage)
Susan Griffith
Susan Griffith am 15 Okt. 2015
Kommentiert: Geoff Hayes am 27 Okt. 2015
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 Kommentar
Geoff Hayes
Geoff Hayes am 15 Okt. 2015
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Rohit Kudva
Rohit Kudva am 19 Okt. 2015
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 Kommentare
Susan Griffith
Susan Griffith am 27 Okt. 2015
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 am 27 Okt. 2015
I don't think that you can trick MEX into searching for 8.1 instead. Perhaps Rohit will have a solution.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Troubleshooting in MATLAB Compiler SDK finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by