merci.
Mais je sais très bien faire ce que tu as fait, a savoir compiler un projet sous gtk 1.2 (j'insiste sur le 1.2)
Mais mes sources utilisent des fonctions de gtk 2.0 (2.0 important) : lorsque j'essaye de compiler avec gtk 1.2 g logiquement des erreurs..
CE que je cherche n'est pas de savoir comment compiler avec gtk 1.2, mais de savoir INSTALLER et COMPILER avec GTK 2.0.
voila.
sinon, ca marche pour toi sous win ?
***raph***
-------------------------------
Réponse au message :
-------------------------------
Alors j'ai mis un boutton dans une fenetre et j'ai enregister (voir image 1) !!
La j'ouvre une console (bash) dans le dossier "Projets" et je fait './autogen.sh' puis make et je lance l'application dans le dossier src (voir image 2) !!
voila ce que j'obtiens :
//DEBUT//////////////////////////////////////////////////////////////////////////////////////////////
bash-2.04# ./autogen.sh
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.
processing .
Running aclocal ...
Running autoheader...
Running automake --gnu ...
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
automake: Makefile.am: installing `./INSTALL'
automake: Makefile.am: installing `./COPYING'
Running autoconf ...
Running ./configure ...
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating config.h
Now type `make' to compile the package.
bash-2.04# make
cd . && autoheader
make all-recursive
make[1]: Entering directory `/root/Projets/projet1'
Making all in src
make[2]: Entering directory `/root/Projets/projet1/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/glib/include -I/usr/X11R6/include
-g -O2 -Wall -c main.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/glib/include -I/usr/X11R6/include
-g -O2 -Wall -c support.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/glib/include -I/usr/X11R6/include
-g -O2 -Wall -c interface.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/glib/include -I/usr/X11R6/include
-g -O2 -Wall -c callbacks.c
gcc -g -O2 -Wall -o projet1 main.o support.o interface.o callbacks.o -L/usr/l
ib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX1
1 -lm
make[2]: Leaving directory `/root/Projets/projet1/src'
make[2]: Entering directory `/root/Projets/projet1'
make[2]: Leaving directory `/root/Projets/projet1'
make[1]: Leaving directory `/root/Projets/projet1'
//FIN////////////////////////////////////////////////////////////////////////////////////////////////
Bon là y'a aucune erreur sinon prends un de tes codes sources (windows) et compile-le avec cette ligne de commande ou fait un 'Makefile'
//DEBUT//////////////////////////////////////////////////////////////////////////////////////////////
PS : ma version de GTK et GLIB est 1.2.8 donc je t'es mis la commande pour afficher le chemin des includes !!
gtk-config --libs ==> -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
gtk-config --cflags ==> -I/usr/lib/glib/include -I/usr/X11R6/include
glib-config --libs ==> -L/usr/lib -lglib
glib-config --cflags ==> -I/usr/lib/glib/include
Bon je me rappelle plus la ligne de commande mais tu fais "gcc -o ton_fichier.c ton_fichier -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -I/usr/lib/glib/include -I/usr/X11R6/include -L/usr/lib -lglib -I/usr/lib/glib/include"
//FIN////////////////////////////////////////////////////////////////////////////////////////////////
Bon si y'a une erreur fait moi un screenshot !!
Image1

Image2
