I use this method successfully install GTK2.24.10 in Ubuntu12.04 record 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 File sudoapt-getinstallgnome-core-devel
I used this method to install GTK 2.24.10 in Ubuntu12.04 and record it.
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
7. Install gtk2.0 or download and install all the files required by gtk + 2.0.
Sudo apt-get install libgtk2.0-dev
View the GTK library version
1. View version 2.x
Pkg-config -- modversion gtk +-2.0
2. view the version of pkg-config.
Pkg-config -- version
3. Check whether gtk is installed.
Pkg-config -- list-all grep gtk