I have installed visual studio express 2013 but mex is saying Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64.
How to setup mex for Matlab ?
30 views (last 30 days)
Show older comments
Hi,
I am trying to run the Deep Learning Framework on Matlab and the instructions are unfortunately, confusing for a newbie like me.
I am supposed to "Install MATLAB, and make sure that its mex is in your $PATH"
1) What is mex and how do i make sure that 'its' mex is in my $PATH ? I have done a bit of searching on google and it turns out that mex allows Matlab to read code written in C/C++ ? I have also tried to use the cmd line in matlab to setup mex but it says "No supported compiler or SDK was found."
2) Do I need to install visual studio for this ?
Caffe on github: https://github.com/BVLC/caffe
3 Comments
Walter Roberson
on 10 Jun 2016
[copied from duplicate Question]
Hi
How do i setup mex in matlab ? I am using 2014a windows 7. I cant upgrade to 2015b. When I type mex - setup matlab says Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64.
Answers (1)
Walter Roberson
on 9 Jun 2016
It has been quite a number of years since any Visual Studio Express was supported. If you look at the list at http://www.mathworks.com/support/compilers/R2014a/win64 you will see that it specifically lists the Professional versions, not the Express versions.
Depending on which operating system you are using, you might be able to use the SDK 7.1 . However, if you are using Windows 10, you are probably not going to be able to get any compiler to work with your R2014a MATLAB, unless perhaps you can get one of the commercial Intel compilers to work.
4 Comments
Walter Roberson
on 10 Jun 2016
Here you said you are using Windows 10. In your duplicate question (which I have moved to above) you say you are using Windows 7. Which is it? It makes a big difference in compiler support!
Walter Roberson
on 10 Jun 2016
If you are using SDK 7.1, then just install Microsoft's SDK 7.1, and then at the MATLAB command line give the command
mex -setup
See Also
Categories
Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!