How to setup mex in Win 8
Ältere Kommentare anzeigen
Is it the same to set up mex in Windows 8 as it in Windows 7? I tried SDK for Win 7, but it does not work. Where can I find SDK for Win 8? Thank you for your help
3 Kommentare
Jan
am 9 Dez. 2012
Could you elaborate "it doesn't work", please?
Michael
am 11 Dez. 2012
Same issue. What is a valid mex compiler for R2012b (or 2012a) on Windows 8? I have tried the following: Windows SDK 7 (it claims a newer version of .net is already installed and so skips that part), Windows 8 SDK, Visual Studio Express 2012 for Desktop (and for Metro). Whenever I try "mex -setup", it cannot find any valid compilers.
Michael
am 11 Dez. 2012
Update: I got it to recognize the compiler by first installing an earlier SDK: http://www.microsoft.com/en-us/download/details.aspx?id=3138 and then installing the newer one: http://www.microsoft.com/en-us/download/details.aspx?id=8279
Antworten (6)
Benzun Pious
am 23 Jan. 2013
Bearbeitet: Walter Roberson
am 23 Jan. 2013
5 Stimmen
Hi,
Was having this issue. This is mostly because you have the Visual C++ 2010 Redistributable Package for x86 and x64 installed in your computer. This prevents windows from installing the 7.1v of the SDK.
I solved it by going to control panel and uninstalling the Visual C++ 2010 Redistributable Package for x64 and x86 and then installing the Microsoft SDK 7.1.
After that you should be able to run mex -setup and it should detect the sdk and everything will be fine.
Hope it helps!
Benzun
3 Kommentare
Netiwit
am 4 Mai 2013
this helps!!!! Thank you!!!
peppa
am 12 Dez. 2013
I have done like what you said.. now the error is Making simulation target "similartopaper_sfun", ...
C:\Users\user\Downloads\slprj\_sfprj\similartopaper\_self\sfun\src>call "\..\..\VC\vcvarsall.bat" AMD64 The system cannot find the path specified.
C:\Users\user\Downloads\slprj\_sfprj\similartopaper\_self\sfun\src>nmake -f similartopaper_sfun.mak 'nmake' is not recognized as an internal or external command, operable program or batch file.
Ugur
am 12 Nov. 2014
Thanks Benzun, worked like a charm !
You need to install the Windows SDK 7.1 for Matlab 2012b even under Windows 8. See: http://www.mathworks.com/support/solutions/en/data/1-FPLDGV/
The installation of the SDK7.1 under Windows 8 fails, when you have a newer MSVC 2010 redistributable installed. So uninstall this at first. See: http://support.microsoft.com/kb/2717426.
If this works, please ask the technical support to add this information on the list of supported compilers.
1 Kommentar
Royi Avital
am 27 Dez. 2013
Is there any other free 64 Bit alternative under Windows?
Juhua Huang
am 13 Dez. 2012
0 Stimmen
3 Kommentare
Jan
am 13 Dez. 2012
Please explain why you assume, that Win8 does not support the SDK7.1.
Juhua Huang
am 17 Dez. 2012
joeDiHare
am 27 Apr. 2013
I am experiencing the same issue.
Here the error given when I try to install it on my Win 8, R2012b:
14:12:49 27 April 2013: [SDKSetup:Error] Config_Products_Install: Windows SDK Setup (failed): Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information. Stack: at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent) at SDKSetup.Product.SetupProduct(TaskMode taskMode, ManualResetEvent CancelEvent) at SDKSetup.ProductCollection.SetupProducts(TaskMode taskMode, DownloadManager downloadManager, ManualResetEvent cancelEvent) at SDKSetup.ConfigProducts.DoCurrentTask(TaskMode Task)
When I installed the SDK 8, then I get this:
>> mex -setup
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2012b/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
No supported SDK or compiler was found on this computer. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2012b/win64.html
Error using mex (line 206) Unable to complete successfully.
Christian Jensen
am 14 Feb. 2013
0 Stimmen
I also find myself in need of a (free) mex compiler that works with 64 bit Windows 8 and MATLAB 2012b?
lithika
am 27 Dez. 2013
If u r not able to solve the issue using the previously told method, Follow this...this might help u..FOR WINDOWS 8,64 bit Step 1: Install microsoft SDK 7.1 in compatibility mode as told below (a)after the required file is downloaded from net, right click on the driver and select properties (b)select the compatibility tab,click the compatibility mode check box to select it (C)select the previous version of ur OS(i did as windows XP,SP2) (d)click OK now try to install the setup..
STEP 2:Now building the mex-files in matlab environment..... After installing microsoft SDK 7.1, in matlab 2012a (if u r using it) type "mex -setup" in the command window. list of the installed compiler will b displayed and select microsoft SDK 7.1 from the list..
Now u can use the C/C++ files,Mex files,,,,,,
naadiya khudabux
am 14 Apr. 2016
0 Stimmen
Hello everyone!! i am facing the same problem. could you guys please be kind enough to tell me What is a valid mex compiler for R2015b on Windows 8.1?
Thank you
9 Kommentare
naadiya khudabux
am 14 Apr. 2016
am using 64-bit windows
naadiya khudabux
am 17 Apr. 2016
Bearbeitet: Walter Roberson
am 17 Apr. 2016
i have intalled viual studio 2015 and SDK 7.1 and still am facing this error..
>> mex -setup
Error using mex
No supported compiler or SDK was found. You can install the freely available
MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, see
http://www.mathworks.com/support/compilers/R2015b/win64.html
Walter Roberson
am 17 Apr. 2016
Did you install VS 2015 Professional, or did you install VS 2015 Express? It needs the Professional version.
To get the SDK 7.1 to work on Windows 8.*, you will need to be sure that .NET 4.0 gets installed, which can be slightly tricky on Windows 8 (which has .NET 4.5 installed)
naadiya khudabux
am 17 Apr. 2016
yeah i have installed vs 2015 community version.. can u please share the link to download vs professional
Walter Roberson
am 17 Apr. 2016
https://www.visualstudio.com/en-us/products/visual-studio-professional-with-msdn-vs.aspx and click on the green Download button.
naadiya khudabux
am 17 Apr. 2016
Bearbeitet: naadiya khudabux
am 17 Apr. 2016
thanks i didnt uninstall the 2015 community version just update to professional version . i already have .net 4.0 installed. but still is not working . can u explain me more i really in need to install mex compiler.it will b highly appreciated
Walter Roberson
am 17 Apr. 2016
Sorry that is outside my experience.
naadiya khudabux
am 18 Apr. 2016
okay thank you for help :)
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!