problem while creating .exe file

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일

0 개 추천

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

alex
alex 2014년 6월 7일
>> ver ----------------------------------------------------------------------------------------------------
MATLAB Version: 8.3.0.532 (R2014a)
MATLAB License Number:
Operating System: Microsoft Windows 7 Home Premium Version 6.1 (Build 7601: Service Pack 1) Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 8.3 (R2014a)
Image Processing Toolbox Version 9.0 (R2014a)
MATLAB Compiler Version 5.1 (R2014a)
Statistics Toolbox Version 9.0
alex
alex 2014년 6월 7일
also having problem while trying mcc from command window
>> mcc -m alextest.m
Error using mcc
Test checkout of feature 'Compiler' failed.
Image Analyst
Image Analyst 2014년 6월 7일
편집: Image Analyst 2014년 6월 7일
I never see checkout. Do you have a multi-user license where you have to "check out" toolboxes or MATLAB licenses, instead of a personal single-user license like I have? You may need to call them on Monday.
32 bit is no problem. I have 64 bit and run both 32 and 64 bit versions of MATLAB on it.
alex
alex 2014년 6월 7일
편집: alex 2014년 6월 7일
windows are 64bit an matlab also 64bit,and i have single user license.
yes i guess i will call them on monday.
thank you very much for your time Mr Image Analyst!
Image Analyst
Image Analyst 2014년 6월 7일
You might try the -v option to make it more verbose.
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일

0 개 추천

@ 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일

0 개 추천

check !mcc to assure you have the proper license.
NEETHU PRAKASH
NEETHU PRAKASH 2016년 8월 4일

0 개 추천

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일

0 개 추천

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

Guillaume
Guillaume 2018년 7월 12일
Can you start your own question rather than answering a 4 year old question?
Have you tried following the instructions in the error message?
YOGESH SINGH JADON
YOGESH SINGH JADON 2018년 7월 12일
no because i did not get
raguram nammalwar
raguram nammalwar 2021년 7월 7일
편집: Image Analyst 2021년 7월 8일
You may not have installed the MATLAB compiler, if not, you will get the error.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2014년 6월 7일

편집:

2021년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by