Configuring Qt Creator for GTK+
I can’t setup Qt Creator for GTK+ on Ubuntu. I’m trying to compile this example but I got errors complaining about header files :
but I fixed them by adding this to the .pro
file
INCLUDEPATH += /usr/include/gtk-2.0
/usr/include/glib-2.0
/usr/lib/i386-linux-gnu/glib-2.0/include/
/usr/include/cairo/
/usr/include/pango-1.0/
/usr/lib/i386-linux-gnu/gtk-2.0/include/
/usr/include/gdk-pixbuf-2.0/
/usr/include/atk-1.0/
but I don’t know what to add for the LIBS +=
It worked by adding
unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += gtk+-2.0