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

wxWidgets Discussion :

Compilation avec wxMathPlot


Sujet :

wxWidgets

  1. #1
    Membre régulier
    Homme Profil pro
    Chargé d'affaire
    Inscrit en
    Avril 2014
    Messages
    105
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Chargé d'affaire

    Informations forums :
    Inscription : Avril 2014
    Messages : 105
    Points : 97
    Points
    97
    Par défaut Compilation avec wxMathPlot
    Bonsoir tout le monde,


    J'essaye de créer un projet wxWigets comportant un élément mpwindows (j'aimerai dans un futur très proche pouvoir tracer des courbes)...


    Bref je télécharge wxMathplot que je décompresse. Je crée un projet wxWidgets


    Je rajouter la wxMathplot.h et .cpp à mon projet. Je compile et là j'ai plein d'erreurs de compilation (alors que j'ai une fenêtre vierge).

    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
    ||=== Build: Release in testwxMathplot (compiler: GNU GCC Compiler) ===|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'bool mpWindow::SaveScreenshot(const wxString&, int, wxSize, bool)':|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2239|warning: 'bool wxImage::SaveFile(const wxString&, long int) const' is deprecated (declared at C:\wxWidgets-3.0.2\include/wx/image.h:560) [-Wdeprecated-declarations]|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'void mpMovableObject::ShapeUpdated()':|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: expected id-expression before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: expected ';' before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: 'wxlogcheck2610' was not declared in this scope|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: expected ';' before ')' token|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'void mpCovarianceEllipse::RecalculateShape()':|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2749|error: expected id-expression before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2749|error: expected ';' before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2749|error: 'wxlogcheck2749' was not declared in this scope|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2749|error: expected ';' before ')' token|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2750|error: expected id-expression before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2750|error: expected ';' before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2750|error: 'wxlogcheck2750' was not declared in this scope|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2750|error: expected ';' before ')' token|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2751|error: expected id-expression before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2751|error: expected ';' before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2751|error: 'wxlogcheck2751' was not declared in this scope|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2751|error: expected ';' before ')' token|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2763|error: expected id-expression before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2763|error: expected ';' before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2763|error: 'wxlogcheck2763' was not declared in this scope|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2763|error: expected ';' before ')' token|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'void mpPolygon::setPoints(const std::vector<double>&, const std::vector<double>&, bool)':|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2847|error: expected id-expression before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2847|error: expected ';' before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2847|error: 'wxlogcheck2847' was not declared in this scope|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2847|error: expected ';' before ')' token|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'void mpBitmapLayer::SetBitmap(const wxImage&, double, double, double, double)':|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2877|error: expected id-expression before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2877|error: expected ';' before 'for'|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2877|error: 'wxlogcheck2877' was not declared in this scope|
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2877|error: expected ';' before ')' token|
    ||=== Build failed: 28 error(s), 1 warning(s) (0 minute(s), 4 second(s)) ===|

    J'ai essayé de comprendre toute la soirée mais en vain. Je peux joindre le fichier mathplot.cpp (je ne sais pas si je peux légalement le faire...).

    En plus du fait que ça ne compile pas, ce qui me chagrine c'est le fait que je ne comprennne pas les erreurs du type
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: 'wxlogcheck2610' was not declared in this scope|
    En effet, il n'y a nullle par la variable wxlogcheck2610 dans le code.

    Je vous remercie par avance de l'aide que vous pourrez m'apporter. Je n'ai pas codé depuis 4 ans en c++ et le retour est difficile...

  2. #2
    Membre averti Avatar de wxXav
    Homme Profil pro
    Développeur amateur
    Inscrit en
    Décembre 2008
    Messages
    214
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur amateur

    Informations forums :
    Inscription : Décembre 2008
    Messages : 214
    Points : 354
    Points
    354
    Par défaut
    Hello.

    D'après ce que j'ai pu voir, wxMathPlot n'a pas encore été complètement testé avec wxWidgets 3.

    J'ai testé d'intégrer les fichiers "mathplot.h" et "mathplot.cpp" à un projet existant, et j'ai eut les mêmes messages que toi.

    En ce qui concerne le warning à propos de wxImage::SaveFile, ça n'est pas très gênant.
    Et pour résoudre les erreurs, il suffit de remplacer toutes les instances de "::wxLogError" par "wxLogError" et ça compile nickel.

    @+
    Xav'

  3. #3
    Membre régulier
    Homme Profil pro
    Chargé d'affaire
    Inscrit en
    Avril 2014
    Messages
    105
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Chargé d'affaire

    Informations forums :
    Inscription : Avril 2014
    Messages : 105
    Points : 97
    Points
    97
    Par défaut
    Merci!


    Du coup je vais essayer de trouver une autre bibliothèque pour tracer des courbes... Tu en aurais une à me conseiller? Celle ci avait l'air sympa..

  4. #4
    Membre averti Avatar de wxXav
    Homme Profil pro
    Développeur amateur
    Inscrit en
    Décembre 2008
    Messages
    214
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur amateur

    Informations forums :
    Inscription : Décembre 2008
    Messages : 214
    Points : 354
    Points
    354
    Par défaut
    Salut.

    Si wxMathPlot correspond à ce que tu recherches, essayes, tu verras bien.

    Et si tu rencontres des problèmes avec, rien ne t'empêche d'en parler à l'auteur sur la page sourceforge correspondante (c'est d'ailleurs là bas que j'ai trouvé l'astuce des remplacements dans le fichier source pour que la compilation puisse se faire.

    @+
    Xav'

Discussions similaires

  1. Problème à l'exécution avec wxWindows (compilé avec BCC55)
    Par ShootDX dans le forum Autres éditeurs
    Réponses: 5
    Dernier message: 14/11/2003, 19h04
  2. Réponses: 1
    Dernier message: 29/10/2003, 13h16
  3. Problemes de compilation avec g++ sous linux
    Par Selimmel dans le forum Autres éditeurs
    Réponses: 3
    Dernier message: 19/09/2003, 14h43
  4. [JB9][EJB]Compiler avec Make ou javac ?
    Par _gtm_ dans le forum JBuilder
    Réponses: 4
    Dernier message: 11/07/2003, 16h59
  5. Compilation avec un Makefile
    Par Mau dans le forum GTK+ avec C & C++
    Réponses: 3
    Dernier message: 28/02/2003, 12h30

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