Using this method, I successfully installed GTK2.20.1 in Ubuntu10.04. 1, install 1, install gcc/g ++/gdb/make and other basic programming tools $ sudoapt-getinstallbuild-essential2, install libgtk2.0-devlibglib2.0-dev and other development-related library files $ sudoapt-getinstallgnome-core -devel
I used this method to install GTK 2.20.1 in Ubuntu 10.04.
I. Installation
1. Install basic programming tools such as gcc/g ++/gdb/make
$sudo apt-get install build-essential
2. Install libgtk2.0-dev libglib2.0-dev and other development-related library files
$sudo apt-get install gnome-core-devel
3. It is used to automatically find the header file and library file location when compiling the GTK program.
$sudo apt-get install pkg-config
4. Install the devhelp GTK file viewing program.
$sudo apt-get install devhelp
5. Install gtk/glib API reference manual and other help documents
$sudo apt-get install libglib2.0-doc libgtk2.0-doc
6. Install GTK-based interface. GTK is the c/c ++ language graphics library for developing Gnome windows.
$sudo apt-get install glade libglade2-dev
Or
$sudo apt-get install glade-gnome glade-common glade-doc
7. Install gtk2.0 or download and install all the files required by gtk + 2.0.
$sudo apt-get install libgtk2.0-dev
Or
$sudo apt-get install libgtk2.0*