Borrar filtros
Borrar filtros

Trouble creating an exe file matlab compiler

1 visualización (últimos 30 días)
Moritz P.
Moritz P. el 19 de Feb. de 2016
Comentada: Walter Roberson el 19 de Feb. de 2016
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 comentarios
Adam
Adam el 19 de Feb. de 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
Walter Roberson el 19 de Feb. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by