MEX will not find Visual Basic
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
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.
Antworten (1)
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
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.
Siehe auch
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!