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 :

[MATLAB Coder] Problème génération DLL


Sujet :

MATLAB

  1. #1
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mars 2015
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Eure et Loir (Centre)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2015
    Messages : 3
    Par défaut [MATLAB Coder] Problème génération DLL
    Bonjour à tous !

    Pour vous expliquer le contexte, je cherche à transformer des algorithmes Matlab (.m) en code C/C++ afin de pouvoir les implémenter dans dans Visual Studio 2013 pour une application Windows phone.

    Pour cela j'utilise donc Matlab CODER qui est censé pouvoir me générer un fichier .dll à partir de mes algorithmes cependant je n'arrive pas à compiler.

    Depuis l'onglet Build de matlab Coder je choisis "C/C++ Dynamic Librairy" en tant que Output Type, "generate Code Only" est décoché, est lorsque j'appuie sur "Build" une erreur survient que m'indique de consulter les logs de compilation et j'y trouve ceci:

    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
     
       1   C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMODEL=MyFunc -DHAVESTDIO -DUSE_RTMODEL -IJ:/Step1_chaine_complete/MatlabCoder -IJ:/Step1_chaine_complete/MatlabCoder/codegen/dll/MyFunc -IJ:/Step1_chaine_complete/Matlab -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -Fo"MyFunc_initialize.obj" "MyFunc_initialize.c"
        2   C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMODEL=MyFunc -DHAVESTDIO -DUSE_RTMODEL -IJ:/Step1_chaine_complete/MatlabCoder -IJ:/Step1_chaine_complete/MatlabCoder/codegen/dll/MyFunc -IJ:/Step1_chaine_complete/Matlab -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -Fo"MyFunc_terminate.obj" "MyFunc_terminate.c"
        3   C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMODEL=MyFunc -DHAVESTDIO -DUSE_RTMODEL -IJ:/Step1_chaine_complete/MatlabCoder -IJ:/Step1_chaine_complete/MatlabCoder/codegen/dll/MyFunc -IJ:/Step1_chaine_complete/Matlab -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -Fo"MyFunc.obj" "MyFunc.c"
        4   C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMODEL=MyFunc -DHAVESTDIO -DUSE_RTMODEL -IJ:/Step1_chaine_complete/MatlabCoder -IJ:/Step1_chaine_complete/MatlabCoder/codegen/dll/MyFunc -IJ:/Step1_chaine_complete/Matlab -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -Fo"rt_nonfinite.obj" "rt_nonfinite.c"
        5   C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMODEL=MyFunc -DHAVESTDIO -DUSE_RTMODEL -IJ:/Step1_chaine_complete/MatlabCoder -IJ:/Step1_chaine_complete/MatlabCoder/codegen/dll/MyFunc -IJ:/Step1_chaine_complete/Matlab -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -Fo"rtGetNaN.obj" "rtGetNaN.c"
        6   C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcc64 -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/include64 -DMODEL=MyFunc -DHAVESTDIO -DUSE_RTMODEL -IJ:/Step1_chaine_complete/MatlabCoder -IJ:/Step1_chaine_complete/MatlabCoder/codegen/dll/MyFunc -IJ:/Step1_chaine_complete/Matlab -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -Fo"rtGetInf.obj" "rtGetInf.c"
        7   C:/PROGRA~1/MATLAB/R2014a/sys/perl/win32/bin/perl.exe C:/PROGRA~1/MATLAB/R2014a/rtw/c/tools/mkvc_lnk.pl MyFunc.lnk MyFunc_initialize.obj MyFunc_terminate.obj MyFunc.obj rt_nonfinite.obj rtGetNaN.obj rtGetInf.obj lccstub.obj
        8   "### Creating dynamic library "./MyFunc.dll" ..."
        9   C:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/bin/lcclnk64 -dll -entry LibMain -s -LC:/PROGRA~1/MATLAB/R2014a/sys/lcc64/lcc64/lib64  MyFunc.def -o ./MyFunc.dll @MyFunc.lnk  
       10   cannot open lccstub.obj
       11   gmake: *** [MyFunc.dll] Error 1
       12   The make command returned an error of 2
       13   'An_error_occurred_during_the_call_to_make' n'est pas reconnu en tant que commande interne
       14   ou externe, un programme ex‚cutable ou un fichier de commandes.
       15   
       16   Error(s) encountered while building model "MyFunc":
       17   ### Failed to generate all binary outputs.
    J'ai fais des recherches mais je n'ai rien trouvé d'utile pour résoudre mon problème. C'est pourquoi je vous implore à l'aide .

  2. #2
    Expert confirmé
    Avatar de duf42
    Homme Profil pro
    Formateur en informatique
    Inscrit en
    Novembre 2007
    Messages
    3 111
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France

    Informations professionnelles :
    Activité : Formateur en informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2007
    Messages : 3 111
    Par défaut
    Bonjour,

    Que te renvoie la commande mex -setupAs-tu bien l'un des compilateurs suivant installé: Liste des compilateurs supportés

    Duf

Discussions similaires

  1. Réponses: 1
    Dernier message: 29/01/2015, 16h46
  2. Génération DLL avec 2 fichiers .lib
    Par JeanPhi dans le forum MFC
    Réponses: 7
    Dernier message: 27/08/2007, 12h02
  3. Problème génération DLL (jni)
    Par pitator dans le forum Entrée/Sortie
    Réponses: 2
    Dernier message: 23/03/2007, 10h14
  4. problème execution dll
    Par semenzato dans le forum MFC
    Réponses: 15
    Dernier message: 19/12/2003, 16h40
  5. Problème de DLL.
    Par Lunedor dans le forum C++Builder
    Réponses: 2
    Dernier message: 29/11/2003, 10h17

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