IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

MATLAB Discussion :

Problème de compilation


Sujet :

MATLAB

  1. #1
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2012
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Avril 2012
    Messages : 12
    Points : 9
    Points
    9
    Par défaut Problème de compilation
    Bonjour à tous,

    Après avoir créé une interface GUI avec Matlab, j'ai voulu la compiler grace à la commande -mv nom_du_fichier.m

    Or, durant la compilation, je peux lire à la fin :
    Executing command: mbuild -O -v -output "interface_calcul" "interface_calcul_main.c" "interface_calcul_mcc_component_data.c" -link exe 
    'perl' n'est pas reconnu en tant que commande interne 
    ou externe, un programme ex‚cutable ou un fichier de commandes.
    De ce fait, aucun fichier.exe n'est créé.

    Une solution?

    Merci

  2. #2
    Rédacteur/Modérateur

    Avatar de Jerome Briot
    Homme Profil pro
    Freelance mécatronique - Conseil, conception et formation
    Inscrit en
    Novembre 2006
    Messages
    20 302
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Freelance mécatronique - Conseil, conception et formation

    Informations forums :
    Inscription : Novembre 2006
    Messages : 20 302
    Points : 52 882
    Points
    52 882
    Par défaut
    Pourrais-tu nous montrer le message d'erreur complet ?

    Pourrais-tu nous fournir le code d'une interface simple qui reproduit ce problème ?

    Quelle est ta version de MATLAB et quel est ton système d'exploitation ?
    Ingénieur indépendant en mécatronique - Conseil, conception et formation
    • Conception mécanique (Autodesk Fusion 360)
    • Impression 3D (Ultimaker)
    • Développement informatique (Python, MATLAB, C)
    • Programmation de microcontrôleur (Microchip PIC, ESP32, Raspberry Pi, Arduino…)

    « J'étais le meilleur ami que le vieux Jim avait au monde. Il fallait choisir. J'ai réfléchi un moment, puis je me suis dit : "Tant pis ! J'irai en enfer" » (Saint Huck)

  3. #3
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2012
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Avril 2012
    Messages : 12
    Points : 9
    Points
    9
    Par défaut
    Bonjour,

    Après avoir fait une interface simple et l'avoir compilé, j'obtiens le même message d'erreur.
    Je suis sur Windows XP avec la version de Matlab : 7.0.1.24704 (R14) Service Pack 1

    Le message entier est le suivant :


    Compiler version: 4.1.1 (R14SP1) 
    Parsing file "d:\interface_matlab\interface_calcul.m" 
    	(Referenced from: "Compiler Command Line"). 
    Parsing file "c:\matlab701\toolbox\compiler\deploy\matlabrc.m" 
    	(Referenced from: "Compiler Command Line"). 
    Parsing file "c:\matlab701\toolbox\compiler\dirname.m" 
    	(Referenced from: "Compiler Command Line"). 
    Parsing file "c:\matlab701\toolbox\compiler\deploy\deployprint.m" 
    	(Referenced from: "Compiler Command Line"). 
    Parsing file "c:\matlab701\toolbox\matlab\graph2d\grid.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\uitools\gui_mainfcn.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\uitools\guidata.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\general\ispc.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\scribe\legend.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "d:\interface_matlab\lit_fichier_hfss_9.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "d:\interface_matlab\polar_loic.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\general\saveas.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "d:\interface_matlab\smith.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\strfun\str2double.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\strfun\strcat.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\graph2d\title.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\uitools\waitbar.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\graph2d\xlabel.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\graph3d\xlim.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\graph2d\ylabel.m" 
    	(Referenced from: "d:\interface_matlab\interface_calcul.m"). 
    Parsing file "c:\matlab701\toolbox\compiler\deploy\hgrc.m" 
    	(Referenced from: "c:\matlab701\toolbox\compiler\deploy\matlabrc.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\general\usejava.m" 
    	(Referenced from: "c:\matlab701\toolbox\compiler\deploy\matlabrc.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\iofun\fileparts.m" 
    	(Referenced from: "c:\matlab701\toolbox\compiler\dirname.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\graphics\gcbf.m" 
    	(Referenced from: "c:\matlab701\toolbox\compiler\deploy\deployprint.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\graphics\print.m" 
    	(Referenced from: "c:\matlab701\toolbox\compiler\deploy\deployprint.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\uitools\printdlg.m" 
    	(Referenced from: "c:\matlab701\toolbox\compiler\deploy\deployprint.m"). 
    Parsing file "c:\matlab701\toolbox\matlab\iofun\tempname.m" 
    	(Referenced from: "c:\matlab701\toolbox\compiler\deploy\deployprint.m"). 
    Generating file "interface_calcul_main.c". 
    Depfun main loop, iteration 1 
    Processing C:\MATLAB701\toolbox\matlab\mcc.enc 
    1 item(s) added. 
    Processing C:\MATLAB701\toolbox\database\mcc.enc 
    1 item(s) added. 
    Processing D:\Interface_matlab\interface_calcul.fig 
    1 item(s) added. 
    Processing dependencies... 
    0 item(s) added. 
    Depfun main loop, iteration 2 
    Processing dependencies... 
    0 item(s) added. 
    Processing include files... 
    2 item(s) added. 
    Processing exclude list... 
    0 item(s) removed. You can review the mccExcludedFiles.log file for the list of functions not included in the CTF archive. 
    Processing directories installed with MCR... 
    1652 item(s) removed. You can review the mccExcludedFiles.log file for the list of functions not included in the CTF archive. 
    2 item(s) added. 
    Generating MATLAB path for the compiled application... 
    Created 33 path items. 
    Depfun main loop converged in 2 iterations, total number of files = 71 
    Generating file "interface_calcul_mcc_component_data.c". 
    Executing command: mbuild -O -v -output "interface_calcul" "interface_calcul_main.c" "interface_calcul_mcc_component_data.c" -link exe 
    'perl' n'est pas reconnu en tant que commande interne 
    ou externe, un programme ex‚cutable ou un fichier de commandes. 
    'perl' n'est pas reconnu en tant que commande interne 
    ou externe, un programme ex‚cutable ou un fichier de commandes.

  4. #4
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2012
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Avril 2012
    Messages : 12
    Points : 9
    Points
    9
    Par défaut
    Voici l'interface simple que j'avais testé, mais dont la compilation entraîne la même erreur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
     
    function varargout = test(varargin)
     
    % Begin initialization code - DO NOT EDIT
    gui_Singleton = 1;
    gui_State = struct('gui_Name',       mfilename, ...
                       'gui_Singleton',  gui_Singleton, ...
                       'gui_OpeningFcn', @test_OpeningFcn, ...
                       'gui_OutputFcn',  @test_OutputFcn, ...
                       'gui_LayoutFcn',  [] , ...
                       'gui_Callback',   []);
    if nargin && ischar(varargin{1})
        gui_State.gui_Callback = str2func(varargin{1});
    end
     
    if nargout
        [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
    else
        gui_mainfcn(gui_State, varargin{:});
    end
    % End initialization code - DO NOT EDIT
     
     
    % --- Executes just before test is made visible.
    function test_OpeningFcn(hObject, eventdata, handles, varargin)
     
    % Choose default command line output for test
    handles.output = hObject;
     
    % Update handles structure
    guidata(hObject, handles);
     
     
     
     
    % --- Outputs from this function are returned to the command line.
    function varargout = test_OutputFcn(hObject, eventdata, handles) 
     
     
    % Get default command line output from handles structure
    varargout{1} = handles.output;
     
     
    % --- Executes on button press in pushbutton1.
    function pushbutton1_Callback(hObject, eventdata, handles)
    h=waitbar(0,'testing...');
    for j=1:1000,waitbar(j/1000);end;close(h);

  5. #5
    Membre éprouvé
    Avatar de ol9245
    Homme Profil pro
    Chercheur
    Inscrit en
    Avril 2007
    Messages
    985
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 62
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Chercheur

    Informations forums :
    Inscription : Avril 2007
    Messages : 985
    Points : 1 158
    Points
    1 158
    Billets dans le blog
    1
    Par défaut
    Pour une raison qui m'échappe, ton script a besoin de Perl et Perl est pas (ou mal) installé sur ta machine. Je n'ai pas une grande aide à te proposer mais tu peux essayer de googler le texte de ton erreur. C'est souvent une bonne idée et là, ça brasse pas mal de pages. A toi de voir lesquelles correspondent à ton problème.

    'perl' n'est pas reconnu en tant que commande interne

    Bonne chance,
    "La vraie grandeur se mesure par la liberté que vous donnez aux autres, et non par votre capacité à les contraindre de faire ce que vous voulez." Larry Wall, concepteur de Perl.

  6. #6
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2012
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Avril 2012
    Messages : 12
    Points : 9
    Points
    9
    Par défaut
    Très bien merci, je vais voir ça.

Discussions similaires

  1. problème de compilation sous visual C++
    Par fabmili dans le forum MFC
    Réponses: 4
    Dernier message: 08/02/2004, 19h52
  2. problème de compil devc++ socket
    Par stefdem dans le forum Autres éditeurs
    Réponses: 2
    Dernier message: 11/12/2003, 11h33
  3. Réponses: 1
    Dernier message: 29/10/2003, 12h16
  4. Problème de compilation de la DLL du XMLRad
    Par [DreaMs] dans le forum XMLRAD
    Réponses: 2
    Dernier message: 16/04/2003, 16h46
  5. Réponses: 1
    Dernier message: 27/05/2002, 01h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo