Above is Linux under the GTK + configuration required library, about the functions of each library, view http://www.gtk.org/overview.php, as for the library download in http://www.gtk.org/download/linux.php.
One-click Installation and configuration of GTK + under Linux: (FEDORA16 and CentOS configuration succeeded)
Required Components:
# yum Install gtk2 gtk2-devel gtk2-devel-docs
Optional components:
# yum Install Gnome-devel Gnome-devel-docs
After installation, write a program test.
1#include <gtk/gtk.h>2 3 intMainintargcChar*argv[])4 {5Gtkwidget *windows;6Gtk_init (&argc,&argv);7 8Windows =gtk_window_new (gtk_window_toplevel);9 gtk_widget_show (Windows);Ten One Gtk_main (); A - return 0; -}
Compile link execution for GTK + programs
$ gcc-o Simple simple.c ' pkg-config--libs--cflags gtk+-2.0 '
$./simple
If a dialog box appears, it means success!
CentOS Linux configuration GTK +