[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Pb de compilation avec GTK 2.2.4...



Nicolas Rueff a écrit:
Ainsi parla Alain D'EURVEILHER le 347ème jour de l'an 2003:

  
pkg-config --cflags --libs gtk+-2.0
    
que donne cette commande ?
  
J'ai essayé ceci :
dans mon Makefile :
--------------
GLIBS     = `gtk-config --libs --cflags`
GFLAGS     = `gtk-config --cflags`
GNLIBS     = `gnome-config --cflags --libs gnomeui`
GNFLAGS = `gnome-config --cflags`
GTALL     = `pkg-config --cflags --libs gtk+-2.0`
GTFLAGS = `pkg-config --cflags gtk+-2.0`
GTLIBS     = `pkg-config --libs gtk+-2.0`

all: reboot

reboot: reboot.o
    cc reboot.o -o reboot $(GTALL)

reboot.o: reboot.c
    cc reboot.c -c -o  reboot.o $(GTFLAGS)

clean:
    rm -f *.o
-----------------------
Puis :
-----------------------
13:17 bozz@BOZZ ~/gtk/test1% make clean && make
rm -f *.o
cc reboot.c -c -o  reboot.o `pkg-config --cflags gtk+-2.0`
cc reboot.o -o reboot `pkg-config --cflags --libs gtk+-2.0`
13:20 bozz@BOZZ ~/gtk/test1%
------------------------

=>Ca semble mieux. Mais ai-je raison de faire ainsi ??

thx AlaiN.
Reply to: