Trouble creating an exe file matlab compiler
    5 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi all, i'm having trouble creating an exe file from a GUI i created in matlab 2014b. When i use deploytool i get the following errors
ant:
<ant>
<mkdir dir="C:\Users\...\MATLAB\Sphere_GUI\for_redistribution" />
<mkdir dir="C:\Users\...\MATLAB\Sphere_GUI\for_testing" />
<mkdir dir="C:\Users\...\MATLAB\Sphere_GUI\for_redistribution_files_only" />
</ant>
mcc -C -o Sphere_GUI -W WinMain:Sphere_GUI -T link:exe -d C:\Users\...\MATLAB\Sphere_GUI\for_testing -v 'C:\Users\Moz\...\Sphere GUI\Sphere_GUI.m' 
Test checkout of feature 'Compiler' failed.
mcc failed.
Also
>> mbuild -setup
Error using mbuild (line 164)
Unable to complete successfully.
No supported compiler or SDK was found. For options, visit  http://www.mathworks.com/support/compilers/R2014b/win64.html.
and
>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit  http://www.mathworks.com/support/compilers/R2014b/win64.html.
I did install Microsoft Windows SDK 7.1 and .NET Framework 4.0.
What am i doing wrong?
2 Commenti
  Adam
      
      
 il 19 Feb 2016
				The first error is clearly telling you that it failed to find the license for the compiler.
To use mex you need a C++ compiler installed. I don't really know anything about Microsoft Windows SDK, but a quick glance online seems to suggest it supports .NET, not C++.
  Walter Roberson
      
      
 il 19 Feb 2016
				mex should be able to detect SDK 7.1. SDK 7.1 does support compiling C and C++.
However, we need to ask which MS Windows you are using. If you are using Windows 10 then the installation of SDK 7.1 and .NET 4.0 very likely failed. If you are using Windows 8 then you would probably have had difficulty installing .NET 4.0 but my understanding is that there was a work-around to get it installed.
Risposte (0)
Vedere anche
Categorie
				Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange
			
	Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


