MATLAB Answers

problem while creating .exe file

41 views (last 30 days)
alex
alex on 7 Jun 2014
Hello!
i have made this script which is only the command
disp 'hello'
and i want to create a .exe file and run it through command prompt.
when i open deploytool and start package i have an error:
Error during packaging,and in the log.txt there is:
Test checkout of feature 'Compiler' failed.
mcc failed.
Any help?
my Matlab version is R2014a and i have installed compiler toolbox
Thank yoy very much!

Answers (5)

Image Analyst
Image Analyst on 7 Jun 2014
Next, type ver and paste the results back here but be sure to delete your license number from the results. You'd be surprised how many times people say they have the toolbox installed but they really don't.
  7 Comments
Mohammad Abouali
Mohammad Abouali on 30 Nov 2014
Wow, You have the whole thing. All the toolboxes. How much did that cost?

Sign in to comment.


pradeep kumar
pradeep kumar on 30 Nov 2014
@ Harsheel , hellow Sir . I have tried your recommanded method .
>> license('checkout', 'Compiler')
ans =
1
But still facing the same problem as mentioned by Mr Alex . Kindly help me . Thanks in advance
  2 Comments
pradeep kumar
pradeep kumar on 1 Dec 2014
@ Image Analyst , Thank you for your suggestion .

Sign in to comment.


Rajeev Yadav
Rajeev Yadav on 15 Jan 2015
check !mcc to assure you have the proper license.

NEETHU PRAKASH
NEETHU PRAKASH on 4 Aug 2016
Hi all i also had this issue ... but now it was solved...While you are installing your matlab ,please kindly do these.... when you will be asked to activate the product you can refuse to activate OR select activation without internet and use "X:\serial\license.lic" as license file 6) copy folder "bin" and its content from folder "X:\serial\MatlabX32" or "X:\serial\MatlabX64" (depending on 32-bit or 64-bit you have installed) to folder where you installed Matlab WITH OVERWRITING of existing files This could ask you to use Administrative rights (for Windows newer then WinXP)

YOGESH SINGH JADON
YOGESH SINGH JADON on 12 Jul 2018
hello everyone i am facing a problem while i am enter the command deploytool in command window for creating a standalone .exe file of matlab code. The error show as Could not save project file There was an error writing a project file to the current folder.You might not have write permission to this folder.To continue packaging,change your MATLAB current folder to writable folder,and then click here
  2 Comments
YOGESH SINGH JADON
YOGESH SINGH JADON on 12 Jul 2018
no because i did not get

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!