Error using Application Compiler to create Standalone .exe application
Mostrar comentarios más antiguos
I am trying to use Application Compiler to create Standalone .exe file. I get error in the 1st step- Creating Binaries. The log is as follows:
ant:
<ant>
<mkdir dir="C:\Users\Rishabh\Documents\MATLAB\simple_gui\for_redistribution" />
<mkdir dir="C:\Users\Rishabh\Documents\MATLAB\simple_gui\for_testing" />
</ant>
mcc -C -o simple_gui -W WinMain:simple_gui -T link:exe -d C:\Users\Rishabh\Documents\MATLAB\simple_gui\for_testing -v C:\Users\Rishabh\Documents\MATLAB\simple_gui.m
Test checkout of feature 'Compiler' failed.
mcc failed.
I have using Matlab 2013b on windows 10 and have installed Windows SDK 7.1 along with the patch Visual Studio 2010 SP1 C++ Compiler to overcome the issue of a version later than .NET framework 4.0 being installed as windows 10 has 4.6.1
The .m files is also attached.
2 comentarios
Walter Roberson
el 31 de Dic. de 2015
You did not attach anything.
RIshabh Golchha
el 1 de En. de 2016
Editada: RIshabh Golchha
el 1 de En. de 2016
Respuestas (3)
Sean de Wolski
el 31 de Dic. de 2015
0 votos
It looks like the license for the compiler is not available. Are you using it on a concurrent license?
5 comentarios
Walter Roberson
el 31 de Dic. de 2015
Note that you need the MATLAB Compiler Toolbox.
RIshabh Golchha
el 31 de Dic. de 2015
RIshabh Golchha
el 31 de Dic. de 2015
Sean de Wolski
el 31 de Dic. de 2015
Concurrent license means that you're connected to a license server sharing licenses with colleagues. If amongst you, you have one compiler license, which is not uncommon, then only one person can use it at a time. The error points to a license checkout failure:
Test checkout of feature 'Compiler' failed.
RIshabh Golchha
el 1 de En. de 2016
Image Analyst
el 1 de En. de 2016
Try running this code in a new script:
% Check that user has the MATLAB COMPILER installed.
hasToolbox = license('test', 'compiler');
if hasToolbox
message = sprintf('You have the MATLAB Compiler installed.');
uiwait(helpdlg(message));
else
% User does not have the toolbox installed.
message = sprintf('Sorry, but you do not seem to have the Compiler product installed.');
uiwait(helpdlg(message));
end
What happens when you run it?
9 comentarios
RIshabh Golchha
el 1 de En. de 2016
Walter Roberson
el 1 de En. de 2016
You may have it installed, but do you have it licensed? What does
which mcc
license('test','Compiler')
RIshabh Golchha
el 1 de En. de 2016
Editada: RIshabh Golchha
el 1 de En. de 2016
Walter Roberson
el 1 de En. de 2016
Do you possibly have multiple MATLAB sessions open? If so then close all of them and then open one and try again.
RIshabh Golchha
el 1 de En. de 2016
Image Analyst
el 1 de En. de 2016
You might have to call the Mathworks on Monday.
RIshabh Golchha
el 2 de En. de 2016
Image Analyst
el 2 de En. de 2016
I have no idea - I don't have that kind of license but I see people with such licenses asking here quite a bit. I don't know why it's so problematic. You don't have the Student Suite, do you? Because that license cannot have the compiler available to it.
Walter Roberson
el 4 de En. de 2016
Academic licenses are not necessarily concurrent licenses: they can also be node-locked or named user.
RIshabh Golchha
el 4 de En. de 2016
0 votos
2 comentarios
Image Analyst
el 4 de En. de 2016
Why not go all the way to R2015b? Why install an already outdated version?
RIshabh Golchha
el 4 de En. de 2016
Categorías
Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!