• [^] # Re: pkg-config est ton ami

    Posté par . En réponse au message compiler avec gcc appliquation gtk. Évalué à 1.

    merci

    voila ce que craignais:

    Package gtk+-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-2.0' found
    essaigtk.c:2:20: gtk/gtk.: No such file or directory

    donc je dois installer gtk+-2.0
    je l'ai télécharger decompresse le fichier puis ./configure

    configure: error: Library requirements (glib-2.0 >= 2.0.0 atk >= 1.0.0 pango >= 1.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them

    ok j'install glib-2.0 sans probleme puis au tour de atk qui me dis
    checking for GLIB - version >= 2.0.0...
    *** 'pkg-config --modversion glib-2.0' returned 2.0.0, but GLIB (2.4.6)
    *** was found! If pkg-config was correct, then it is best
    *** to remove the old version of GLib. You may also be able to fix the error
    *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
    *** /etc/ld.so.conf. Make sure you have run ldconfig if that is
    *** required on your system.
    *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
    *** to point to the correct configuration files

    donc je s'uposse que je dois désinstaller glib2.0 car j'ai déja la version 2.4.6 ?

    oui mais comment faire ? (je suis un noob mais j'essaye de m'amélioré)