Error using Application Compiler to create Standalone .exe application

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 件のコメント

Walter Roberson
Walter Roberson 2015 年 12 月 31 日
You did not attach anything.
RIshabh Golchha
RIshabh Golchha 2016 年 1 月 1 日
編集済み: RIshabh Golchha 2016 年 1 月 1 日
Roberson- Sorry missed it earlier. Attached one

サインインしてコメントする。

回答 (3 件)

Sean de Wolski
Sean de Wolski 2015 年 12 月 31 日

0 投票

It looks like the license for the compiler is not available. Are you using it on a concurrent license?

5 件のコメント

Walter Roberson
Walter Roberson 2015 年 12 月 31 日
Note that you need the MATLAB Compiler Toolbox.
RIshabh Golchha
RIshabh Golchha 2015 年 12 月 31 日
What is concurrent license? And how do I verify if I am on it or something else?
RIshabh Golchha
RIshabh Golchha 2015 年 12 月 31 日
Roberson- I think I do have the Matlab compiler toolbox as that is why I was able to at least start the application compiler
Sean de Wolski
Sean de Wolski 2015 年 12 月 31 日
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
RIshabh Golchha 2016 年 1 月 1 日
No. I am not on concurrent license. I have a standalone one

サインインしてコメントする。

Image Analyst
Image Analyst 2016 年 1 月 1 日

0 投票

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 件のコメント

RIshabh Golchha
RIshabh Golchha 2016 年 1 月 1 日
As expected.. You have MATLAB Compiler installed
Walter Roberson
Walter Roberson 2016 年 1 月 1 日
You may have it installed, but do you have it licensed? What does
which mcc
show? And also check with license()
license('test','Compiler')
RIshabh Golchha
RIshabh Golchha 2016 年 1 月 1 日
編集済み: RIshabh Golchha 2016 年 1 月 1 日
which mcc - C:\Program Files\MATLAB\R2013b\toolbox\compiler\mcc.mexw64
What does this mean?
license('test','Compiler')- 1
Walter Roberson
Walter Roberson 2016 年 1 月 1 日
Do you possibly have multiple MATLAB sessions open? If so then close all of them and then open one and try again.
RIshabh Golchha
RIshabh Golchha 2016 年 1 月 1 日
No. I have only session. Multiple session means opening multiple Matlab terminals at the same time right?
Image Analyst
Image Analyst 2016 年 1 月 1 日
You might have to call the Mathworks on Monday.
RIshabh Golchha
RIshabh Golchha 2016 年 1 月 2 日
Ok. Seems like the last option now.
A friend of mine has licensing through his university. So that would be concurrent license right?
He is facing a similar issue. Does concurrent licensing have any other way to solve the issues or are they the same
Image Analyst
Image Analyst 2016 年 1 月 2 日
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
Walter Roberson 2016 年 1 月 4 日
Academic licenses are not necessarily concurrent licenses: they can also be node-locked or named user.

サインインしてコメントする。

RIshabh Golchha
RIshabh Golchha 2016 年 1 月 4 日

0 投票

I shifted to Matlab 2015a and have installed runtime libraries(mcr) in addition to what I did when I was using 2013b and the application compiler is working.
So I think I was missing mcr earlier. Thanks everyone for your help

2 件のコメント

Image Analyst
Image Analyst 2016 年 1 月 4 日
Why not go all the way to R2015b? Why install an already outdated version?
RIshabh Golchha
RIshabh Golchha 2016 年 1 月 4 日
Actually that is what I could get from institute at present

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeC Shared Library Integration についてさらに検索

質問済み:

2015 年 12 月 31 日

コメント済み:

2016 年 1 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by