version up gtk+ 1.2 to 2.0



Hello.
 
I want to know how to version-up gtk+ from 1.2 to 2.0.
 
I tryed to version-up gtk+ from 1.2.10 to 2.0.1.
 
At first I installed the following rpm to RedHat7.2 installation PC.
(1)glib2-2.0.1-1gtk.i386.rpm
(2)glib2-devel-2.0.1-1gtk.i386.rpm
(3)pkgconfig-0.12.0-1gtk.i386.rpm
(4)atk-1.0.1-1gtk.i386.rpm
(5)atk-devel-1.0.1-1gtk.i386.rpm
(6)pango-1.0.1-1gtk.i386.rpm
(7)pango-devel-1.0.1-1gtk.i386.rpm
(8)gtk2-2.0.1-1gtk.i386.rpm
(9)gtk2-devel-2.0.1-1gtk.i386.rpm
 
And I tryed to complile the program made in the environment of gtk+1.2.10.
But autogen.sh command found gtk+1.2.10.
 
How can I cause autogen.sh command to find gtk+2.0.1?
 
 
Next,I changed configure.in file's AM_PATH_GTK.
But It caused the error like this.
 
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 2.0.0...
*** An old version of GTK+ (1.2.10) was found.
*** You need a version of GTK+ newer than 2.0.0. The latest version of
*** GTK+ is always available from ftp://ftp.gtk.org.
***
*** If you have already installed a sufficiently new version, this error
*** probably means that the wrong copy of the gtk-config shell script is
*** being found. The easiest way to fix this is to remove the old version
*** of GTK+, but you can also set the GTK_CONFIG environment to point to the
*** correct copy of gtk-config. (In this case, you will have to
*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf
*** so that the correct libraries are found at run-time))
no
configure: error: Cannot find GTK: Is gtk-config in path?
 
Next, I tryed to remove gtk+-1.2.10, but it caused the error like this.
 
error: removing these packages would break dependencies:
 gtk+-devel is needed by GConf-devel-1.0.4-3
 gtk+-devel is needed by gimp-devel-1.2.1-7
 gtk+-devel is needed by gnome-games-devel-1.4.0.1-4
 gtk+-devel is needed by imlib-devel-1.9.10-2
 gtk+-devel is needed by gnome-libs-devel-1.2.13-16
 
 
Unwillingly, I changed Makefile manually.
But It caused compile error like this.
 
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0    -g -O2 -Wall -c main.c
In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from main.c:10:
/usr/include/gtk-2.0/gdk/gdktypes.h:51:23: gdkconfig.h: No such file or directory
gdktypes.h includes gdkconfig.h, but gdkconfig.h doesn't exist.
 

April 3 2001
Atsuhiko Ikeda
<atuhiko cij co jp>
 


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