• [^] # Re: tutoriel - Glade

    Posté par (site web personnel, Mastodon) . En réponse au message GTK, perdu. Évalué à 2.

    il faut installer le paquetage de développement ( *-devel chez mandriva) de gtk:

    [root@liberforce luis]# urpmq -i libgtk+2.0_0-devel
    Name : libgtk+2.0_0-devel
    Version : 2.8.3
    Release : 4.2.20060mdk
    Group : Development/GNOME and GTK+
    Size : 13884588 Architecture: i586
    Source RPM : gtk+2.0-2.8.3-4.2.20060mdk.src.rpm Build Host: mercury.mandriva.com
    Packager : Mandriva Security Team <security@mandriva.com>
    URL : http://www.gtk.org
    Summary : Development files for GTK+ (GIMP ToolKit) applications
    Description :
    The libgtk+-devel package contains the static libraries and header files
    needed for developing GTK+ (GIMP ToolKit) applications. The libgtk+-devel
    package contains GDK (the General Drawing Kit, which simplifies the interface
    for writing GTK+ widgets and using GTK+ widgets in applications), and GTK+
    (the widget set).


    Donc tu installes avec urpmi libgtk+2.0_0-devel
    Ensuite à partir des tutoriels GTK, tu verras la bonne ligne de commande pour compiler un exemple d'application gtk: ça ressemble souvent à gcc monexample.c -o monexample `pkg-config --cflags --libs gtk+-2.0`