# GTK_FAQ.txt # Huan Chen, 2/16/2017 # GTK FAQs Some students searched for GTK examples on the web and copied and pasted the code from the browser to the terminal, met some errors: # Error 1: the "GtkApplication" in the code cannot be recognized; # Error 2: --------------------- gcc -c simple.c `PKG_CONFIG_PATH=/usr/share/pkgconfig pkg-config --cflags gtk+-3.0` -g -o simple.o Package gtk+-3.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-3.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-3.0' found simple.c:10:21: error: gtk/gtk.h: No such file or directory --------------------- Class "GtkApplication" is offered in GTK+3.0 https://people.gnome.org/~desrt/gtk/html/GtkApplication.html The version of GTK library on our eecs server (http://newport.eecs.uci.edu/) is 2.0 # for example, check the gtk version on the "laguna" server [huanc3@laguna ~/GTK_Example]$ pkg-config --modversion gtk+-2.0 2.24.23