Partage
  • Partager sur Facebook
  • Partager sur Twitter

[Kubuntu 6.10] wxGTK 2.8.0

    1 janvier 2007 à 12:23:50

    Bonjour,

    Je codais des GUI avec wxWidgets avec mon ancienne distrib (fedora core 5) et je n'avais eu aucun problème pour installer wxGTK 2.7.1.

    La je suis passer sous kubuntu, et je ne trouve aucun package 2.8.0

    J'ai essayer tant bien que mal d'installer avec les tarballs mais quand je fais ./configure:

    checking for GTK+ - version >= 2.0.0... no
    *** Could not run GTK+ test program, checking why...
    *** The test program failed to compile or link. See the file config.log for the
    *** exact error that occured. This usually means GTK+ is incorrectly installed.
    configure: error:
    The development files for GTK+ were not found. For GTK+ 2, please
    ensure that pkg-config is in the path and that gtk+-2.0.pc is
    installed. For GTK+ 1.2 please check that gtk-config is in the path,
    and that the version is 1.2.3 or above. Also check that the
    libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
    --libs' are in the LD_LIBRARY_PATH or equivalent.


    J'ai essayer de compiler avec la 2.6.3 et:

    zoloom@zoloom-desktop:~/Programmation/Cpp/µFrag$ g++ gui.cpp moteur.cpp -o uFrag `wx-config --libs --cppflags`
    gui.cpp:107:25: error: wx/aboutdlg.h: Aucun fichier ou répertoire de ce type
    gui.cpp: In member function ‘virtual bool uFrag::OnInit()’:
    gui.cpp:117: error: conversion from ‘const char [6]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp: In constructor ‘fenp::fenp(const wxString&, const wxPoint&, const wxSize&, long int)’:
    gui.cpp:129: error: conversion from ‘const char [11]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:130: error: conversion from ‘const char [13]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:131: error: conversion from ‘const char [8]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:132: error: conversion from ‘const char [5]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:133: error: conversion from ‘const char [9]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:134: error: conversion from ‘const char [10]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:135: error: conversion from ‘const char [10]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:136: error: conversion from ‘const char [17]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:138: error: conversion from ‘const char [18]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:139: error: conversion from ‘const char [21]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:140: error: conversion from ‘const char [18]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:141: error: conversion from ‘const char [18]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:143: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:144: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:145: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:146: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:148: error: conversion from ‘const char [9]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:167: error: conversion from ‘const char [9]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:195: error: conversion from ‘const char [21]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:199: error: conversion from ‘const char [23]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp: In member function ‘void fenp::about(wxCommandEvent&amp;)’:
    gui.cpp:219: error: ‘wxAboutDialogInfo’ was not declared in this scope
    gui.cpp:219: error: expected `;' before ‘info’
    gui.cpp:220: error: ‘info’ was not declared in this scope
    gui.cpp:220: error: converting to execution character set: Chaîne multi-octets ou étendue de caractères invalide ou incomplète
    gui.cpp:231: error: ‘wxAboutBox’ was not declared in this scope
    gui.cpp: In constructor ‘fen_option::fen_option(const wxString&, const wxPoint&, const wxSize&, long int)’:
    gui.cpp:246: error: conversion from ‘const char [53]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:247: error: conversion from ‘const char [58]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:248: error: conversion from ‘const char [52]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp: In member function ‘void fen_option::show(wxCommandEvent&amp;)’:
    gui.cpp:265: error: conversion from ‘const char [8]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp: In member function ‘void fenp::aide(wxCommandEvent&amp;)’:
    gui.cpp:271: error: conversion from ‘const char [130]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:271: error: conversion from ‘const char [5]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp: In member function ‘void fenp::parcourir1(wxCommandEvent&amp;)’:
    gui.cpp:277: error: cannot convert ‘const char*’ to ‘const wxChar*’ for argument ‘1’ to ‘wxString wxFileSelector(const wxChar*, const wxChar*, const wxChar*, const wxChar*, const wxChar*, int, wxWindow*, int, int)’
    gui.cpp: In member function ‘void fenp::parcourir2(wxCommandEvent&amp;)’:
    gui.cpp:284: error: cannot convert ‘const char*’ to ‘const wxChar*’ for argument ‘1’ to ‘wxString wxFileSelector(const wxChar*, const wxChar*, const wxChar*, const wxChar*, const wxChar*, int, wxWindow*, int, int)’
    gui.cpp: In member function ‘void fenp::saveas(wxCommandEvent&amp;)’:
    gui.cpp:291: error: cannot convert ‘const char*’ to ‘const wxChar*’ for argument ‘1’ to ‘wxString wxFileSelector(const wxChar*, const wxChar*, const wxChar*, const wxChar*, const wxChar*, int, wxWindow*, int, int)’
    gui.cpp: In member function ‘void fenp::fragmentation(wxCommandEvent&amp;)’:
    gui.cpp:297: error: ambiguous overload for ‘operator==’ in ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>() == ""’
    /usr/include/wx-2.6/wx/string.h:1436: note: candidates are: bool operator==(const wxString&, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1440: note:                 bool operator==(const wxChar*, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1474: note:                 bool operator==(const wxString&, const wxWCharBuffer&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1509: note:                 bool operator==(wxChar, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1510: note:                 bool operator==(const wxString&, wxChar) <near match>
    /usr/include/wx-2.6/wx/longlong.h:916: note:                 bool operator==(long int, const wxLongLong&amp;) <near match>
    /usr/include/wx-2.6/wx/longlong.h:929: note:                 bool operator==(long unsigned int, const wxULongLong&amp;) <near match>
    gui.cpp:299: error: conversion from ‘const char [49]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:299: error: conversion from ‘const char [7]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:302: error: ambiguous overload for ‘operator==’ in ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>() == ""’
    /usr/include/wx-2.6/wx/string.h:1436: note: candidates are: bool operator==(const wxString&, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1440: note:                 bool operator==(const wxChar*, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1474: note:                 bool operator==(const wxString&, const wxWCharBuffer&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1509: note:                 bool operator==(wxChar, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1510: note:                 bool operator==(const wxString&, wxChar) <near match>
    /usr/include/wx-2.6/wx/longlong.h:916: note:                 bool operator==(long int, const wxLongLong&amp;) <near match>
    /usr/include/wx-2.6/wx/longlong.h:929: note:                 bool operator==(long unsigned int, const wxULongLong&amp;) <near match>
    gui.cpp:304: error: conversion from ‘const char [34]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:304: error: conversion from ‘const char [7]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:307: error: ambiguous overload for ‘operator!=’ in ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>() != ""’
    /usr/include/wx-2.6/wx/string.h:1442: note: candidates are: bool operator!=(const wxString&, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1446: note:                 bool operator!=(const wxChar*, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1478: note:                 bool operator!=(const wxString&, const wxWCharBuffer&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1511: note:                 bool operator!=(wxChar, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1512: note:                 bool operator!=(const wxString&, wxChar) <near match>
    /usr/include/wx-2.6/wx/longlong.h:917: note:                 bool operator!=(long int, const wxLongLong&amp;) <near match>
    /usr/include/wx-2.6/wx/longlong.h:930: note:                 bool operator!=(long unsigned int, const wxULongLong&amp;) <near match>
    gui.cpp:307: error: ambiguous overload for ‘operator!=’ in ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>() != ""’
    /usr/include/wx-2.6/wx/string.h:1442: note: candidates are: bool operator!=(const wxString&, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1446: note:                 bool operator!=(const wxChar*, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1478: note:                 bool operator!=(const wxString&, const wxWCharBuffer&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1511: note:                 bool operator!=(wxChar, const wxString&amp;) <near match>
    /usr/include/wx-2.6/wx/string.h:1512: note:                 bool operator!=(const wxString&, wxChar) <near match>
    /usr/include/wx-2.6/wx/longlong.h:917: note:                 bool operator!=(long int, const wxLongLong&amp;) <near match>
    /usr/include/wx-2.6/wx/longlong.h:930: note:                 bool operator!=(long unsigned int, const wxULongLong&amp;) <near match>
    gui.cpp:309: error: conversion from ‘const char [82]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
    gui.cpp:309: error: conversion from ‘const char [9]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>


    Bref c'est la galère et je suis PAUMÉ

    A l'aide!

    Merci d'avance

    PS: Ce code compilait très bien sur fedora core 5, donc il est techniquement juste!
    • Partager sur Facebook
    • Partager sur Twitter
      1 janvier 2007 à 13:36:10

      Tu as essayé d'ajouter d'autres dépots que ceux par défault ? Car moi je l'ai trouvé :p Par contre je ne sais pas la version ni le dépot (J'en profite : il n'y a pas une commande quand on voit un fichier de se renseigner sur le dépot et la version ?)
      • Partager sur Facebook
      • Partager sur Twitter
        1 janvier 2007 à 13:52:31

        J'ai juste le depot officiel et universe.

        C'est quel dépot?

        Merci
        • Partager sur Facebook
        • Partager sur Twitter
          1 janvier 2007 à 13:55:03

          Essaye d'ajouter les dépots de ce tuto et ensuite de decommenter tous les autres :D

          Si tu ne sais pas comment faire bha... suis le tuto xD
          • Partager sur Facebook
          • Partager sur Twitter
            1 janvier 2007 à 14:02:32

            Impossible de récupérer http://apt.tt-solutions.com/ubuntu/dists/edgy/main/binar y-i386/Packages.gz 404 Not Found
            Lecture des listes de paquets... Fait
            W: GPG error: http://apt.tt-solutions.com edgy Release: Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKE Y 06EA41DE4F6C1E86
            W: Duplicate sources.list entry http://fr.archive.ubuntu.com edgy/main Packages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_edgy_main_binary-i386_Pac kages)
            W: Duplicate sources.list entry http://fr.archive.ubuntu.com edgy/main Translati on-fr (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_edgy_main_i18n_Tran slation-fr)
            W: Duplicate sources.list entry http://fr.archive.ubuntu.com edgy/restricted Pac kages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_edgy_restricted_bin ary-i386_Packages)
            W: Duplicate sources.list entry http://fr.archive.ubuntu.com edgy/restricted Tra nslation-fr (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_edgy_restrict ed_i18n_Translation-fr)
            W: Vous pouvez lancer « apt-get update » pour corriger ces problèmes.
            E: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.

            aie j'ai fait des conneries, dis moi, tu pourrais pas me donner ton sources.list? Ca m'aiderai bcp!

            Tiens mon msn: CENSURED

            Mais si quelqu'un d'autre piouvais m'aider bien sûr ^^
            • Partager sur Facebook
            • Partager sur Twitter
              1 janvier 2007 à 14:33:25

              Le miens étant d'un bordel sans nom pour installer mes logs a deux francs je te conseil de chercher sur la doc de ubuntu le sources.list de base

              Tape dépot dans le moteur de recherche :D
              • Partager sur Facebook
              • Partager sur Twitter
                1 janvier 2007 à 14:51:55

                C'est bon pour les depots.

                je cherche wxGTK

                zoloom@zoloom-desktop:~$ sudo apt-get install wxGTK
                Lecture des listes de paquets... Fait
                Construction de l'arbre des dépendances
                Reading state information... Fait
                E: Impossible de trouver le paquet wxGTK

                SNIF
                • Partager sur Facebook
                • Partager sur Twitter
                  1 janvier 2007 à 20:56:30

                  fait

                  apt-cache search wxGTK


                  Et dit moi ce que ça t'affiche
                  • Partager sur Facebook
                  • Partager sur Twitter
                    1 janvier 2007 à 21:53:09

                    zoloom@zoloom-desktop:~$ apt-cache search wxGTK
                    libwxgtk2.4-1 - wxWindows Cross-platform C++ GUI toolkit (GTK+ runtime)
                    libwxgtk2.4-1-contrib - wxWindows Cross-platform C++ GUI toolkit (runtime contrib libs)
                    libwxgtk2.4-contrib-dev - wxWindows Cross-platform C++ GUI toolkit (development contrib libs)
                    libwxgtk2.4-dbg - wxWindows Cross-platform C++ GUI toolkit (GTK+ development)
                    libwxgtk2.4-dev - wxWindows Cross-platform C++ GUI toolkit (GTK+ development)
                    libwxgtk2.6-0 - wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
                    libwxgtk2.6-dbg - wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
                    libwxgtk2.6-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
                    python-wxgtk2.4 - wxWindows Cross-platform C++ GUI toolkit (wxPython binding)
                    python-wxgtk2.6 - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)
                    wammu - Phone manager
                    zoloom@zoloom-desktop:~$

                    Voila merci
                    • Partager sur Facebook
                    • Partager sur Twitter

                    [Kubuntu 6.10] wxGTK 2.8.0

                    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
                    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
                    • Editeur
                    • Markdown