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 ?
106 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2016-6-10
[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.
回答(1 个)
Walter Roberson
2016-6-9
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 个评论
Walter Roberson
2016-6-10
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
2016-6-10
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
另请参阅
类别
在 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!