GTK + official guide: http://zetcode.com/tutorials/gtktutorial/
GTK + official guide
GTK + wiki URL: http://en.wikipedia.org/wiki/GTK%2B
Download and install GTK +: http://zhidao.baidu.com/question/323664703.html
Http://blog.csdn.net/ouyangzhan/article/details/5734832
In addition, gdk is used in GTK + when a 2D graphics library is used. This is its official address: http://developer.gnome.org/gdk3/stable/
While gdk underlying uses Cairo Library, to understand this library can access this address: http://cairographics.org/documentation/
To download and install GTK + in Ubuntu, perform the following steps:
1. sudo apt-Get install gnome-core-devel
2. sudo apt-Get install libgtk *
If the gnome-core-devel command cannot be executed due to Linux version issues, you can directly run install libgtk *, which will install all GTK-related libraries including PKG-config.
Then, enter PKG-config -- cflags -- libs GTK +-3.0 on the console.
To view all the header files and library paths required by GTK + 3.0.
To develop GTK + 3.0 based on Eclipse IDE, you need to set the path of the header file and Library:
The header file path requires the following:
/Usr/include/glib-2.0/
/Usr/include/atk-1.0/
/Usr/include/gdk-pixbuf-2.0/
/Usr/include/Cairo/
/Usr/include/pango-1.0/
/Usr/lib/x86_64-linux-gnu/glib-2.0/include/
/Usr/include/gtk-3.0/
The library path must include:
/Usr/lib/x86_64-linux-gnu/
The required libraries include:
Gtk-3
Gobject-2.0
Pangocairo-1.0
Gio-2.0
Atk-1.0
Gdk-3
G Lib-2.0
Note: in Linux, the library file name is prefixed with Lib, followed by the Library name, followed by. A or. So.