solidlkp.blogg.se

Gtk 3
Gtk 3










gtk 3

This it, add this to your project source file and off you go. For subsequent ones you can simply 'duplicate' and then 'edit' to add each as a new entry. For the first one you can paste the line in even though an open file dialog is shown but you may need to go back and edit it to make it right. Go to: Project Properties > Build > C++ Compiler > General > Include Directories > and add in each one. usr/lib/arm-linux-gnueabihf/dbus-1.0/include 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/arm-linux-gnueabihf/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/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/includeĬonvert it into a list of directories and delete any duplicates, so you end up with something like this: Now you need to add all of the directories used by the gtk libraries – dull but necessary… Use this command: Note the single quote marks are correct and should be used as is!

gtk 3

`pkg-config –cflags gtk+-3.0` `pkg-config –libs gtk+-3.0`

gtk 3

Go to: Project Properties > Build > Linker > Compilation Line > Additional Options > paste in this: Include gtk and get programming – see here. Update your makefile to use the gtk libs and cflags:












Gtk 3