Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 +=

like image 735
Youssef Bouhjira Avatar asked Mar 20 '23 13:03

Youssef Bouhjira


1 Answers

It worked by adding

unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += gtk+-2.0
like image 61
Youssef Bouhjira Avatar answered Mar 23 '23 04:03

Youssef Bouhjira