problem while creating .exe file

3 次查看(过去 30 天)
alex
alex 2014-6-7
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!

回答(5 个)

Image Analyst
Image Analyst 2014-6-7
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 个评论
Harsheel
Harsheel 2014-6-9
编辑:Harsheel 2014-6-9
Seems like you've installed the MATLAB Compiler product but do not have access to the license. Execute the following:
>> license('checkout', 'Compiler')
If it errors out then MATLAB is unable to find a license for the toolbox and you may want to talk with the Install Team.
Mohammad Abouali
Mohammad Abouali 2014-11-30
Wow, You have the whole thing. All the toolboxes. How much did that cost?

请先登录,再进行评论。


pradeep kumar
pradeep kumar 2014-11-30
@ 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 个评论
Image Analyst
Image Analyst 2014-11-30
It looks like either a license or installation issue. For either of those, the Mathworks will give free telephone help. I suggest you take advantage of that.
pradeep kumar
pradeep kumar 2014-12-1
@ Image Analyst , Thank you for your suggestion .

请先登录,再进行评论。


Rajeev Yadav
Rajeev Yadav 2015-1-15
check !mcc to assure you have the proper license.

NEETHU PRAKASH
NEETHU PRAKASH 2016-8-4
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 2018-7-12
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
  3 个评论
raguram nammalwar
编辑:Image Analyst 2021-7-8
You may not have installed the MATLAB compiler, if not, you will get the error.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by