Closed dufresnep closed 1 month ago
But I don't know yet where I could add the -I/usr/include/gtk-3.0
paul@bismark:~/Téléchargements/stklos-2.00/extensions/gtklos$ pkg-config --cflags gtk+-3.0
-pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
paul@bismark:~/Téléchargements/stklos-2.00/extensions/gtklos$ ls
found that on: https://www.linuxquestions.org/questions/programming-9/gtk-gtk-h-not-found-when-trying-to-compile-c-gtk-program-4175698277/
Hi Paul,
If you have installed the devel package after having configured STklos, you'll have to run configure
again. Normally, you should see the output of pkg-config
in the file extensions/gtklos/lib/stklos/Makefile
(to initialize the variable GTKFLAGS near line 345).
After applying the trick:
export STKLOS_GTK_DIR=/usr/lib/x86_64-linux-gnu
I got:I have tried to edit it a bit, to fix the path:
#include <gtk-3.0/gtk/gtk.h>