How can I achieve an executable with Matlab r2014b for windows?

1 vue (au cours des 30 derniers jours)
Lino Smaldo
Lino Smaldo le 28 Jan 2015
Commenté : Andreas Goser le 28 Jan 2015
First of all I apologize for my english. I am using Matlab r2014b for windows but I don't be able to achieve a "standalone application" with "application compiler". After a few second I've launched process, it retrieves me a box with "error during packaging". In the log file for executable's creation of script "untitled.m", it is written:
mcc -C -o Untitled -W WinMain:Untitled -T link:exe -d \\psf\Home\Desktop\Untitled\for_testing -v \\psf\Home\Desktop\Untitled.m
Test checkout of feature 'Compiler' failed.
mcc failed.
So, I read many posts for this problem and I've got these results:
mbuild -setup
MBUILD configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
mex -setup
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
license('test','compiler')
ans =
1
ver
MATLAB Version: 8.4.0.150421 (R2014b)
MATLAB License Number: unknown
Operating System: Microsoft Windows 7 Home Basic Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Could be my problem connected with the "unknown license number" that Matlab doesn't recognize?
Pleas help me. Thanks for your answers.

Réponses (1)

Andreas Goser
Andreas Goser le 28 Jan 2015
Modifié(e) : Andreas Goser le 28 Jan 2015
Resolving this may need multiple steps. Starting with successful installation and licensing. Licensing you already did with
license('test','compiler')
But the "ver" output should definitely return a license number and the list of products installed. Did you cut off the list below "Server VM mixed mode"?
  2 commentaires
Lino Smaldo
Lino Smaldo le 28 Jan 2015
yes, I cut off it. The complete list is:
ver
MATLAB Version: 8.4.0.150421 (R2014b)
MATLAB License Number: unknown
Operating System: Microsoft Windows 7 Home Basic Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Version 8.4 (R2014b)
Simulink Version 8.4 (R2014b)
Communications System Toolbox Version 5.7 (R2014b)
Control System Toolbox Version 9.8 (R2014b)
Curve Fitting Toolbox Version 3.5 (R2014b)
DSP System Toolbox Version 8.7 (R2014b)
Fixed-Point Designer Version 4.3 (R2014b)
Fuzzy Logic Toolbox Version 2.2.20 (R2014b)
Global Optimization Toolbox Version 3.3 (R2014b)
Image Processing Toolbox Version 9.1 (R2014b)
MATLAB Compiler Version 5.2 (R2014b)
Neural Network Toolbox Version 8.2.1 (R2014b)
Optimization Toolbox Version 7.1 (R2014b)
Partial Differential Equation Toolbox Version 1.5 (R2014b)
Signal Processing Toolbox Version 6.22 (R2014b)
Simulink Control Design Version 4.1 (R2014b)
Statistics Toolbox Version 9.1 (R2014b)
Symbolic Math Toolbox Version 6.1 (R2014b)
Moreover it also show me
!mcc
Error: Could not check out a Compiler license:
License server machine is down or not responding.
See the system administrator about starting the license server system, or
make sure you're referring to the right host (see LM_LICENSE_FILE).
Feature: Compiler
Hostname: matlab-license
License path: C:\Users\Lino\AppData\Roaming\MathWorks\MATLAB\R2014b_licenses;C:\Program Files\MATLAB\R2014b\licenses\license.dat;C:\Program Files\MATLAB\R2014b\licenses\network.lic;
FlexNet Licensing error:-96,7. System Error: 11001 "Comm. error"
For further information, refer to the FlexNet Licensing documentation,
available at "www.flexerasoftware.com"..
Andreas Goser
Andreas Goser le 28 Jan 2015
That is a bit obscure as the license test is successful. License manager error -96 is well know and described here. Most of the time it needs your IT to resolve it.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Manage Products dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by