GTK is a graphic library developed initially by Gimp (Gimp ToolKit). GTK was selected as default GUI to create the Gnome Desktop and currently it is used on many desktop environment (XFCE, LXDE, etc).
When GTK was developed it was depending on X Server (X11) but currently it can run over DirectFB.
In order to add GTK+ support on i.MX board you need first to choice DirectFB or X11 to be it's default graphic infrastructure.
The following pages contain informations and instruction of how to compile and use them.
If you want to compile GTK over DirectFB:
If you want to compile GTK over X11:
GTK2 package comes with "gtk-demo". It's a demo executable to demonstrate some GTK gadgets.
In order to use it with DirectFB, compile the following packages using LTIB:
[*] GTK2 [*] DirectFB [*] configure for use with touchscreen [*] DirectFB-examples "if you would like to test DirectFB" [*] Liberation fonts [*] Tslib
After starting Linux on i.MX, load the following modules:
mx# /etc/rc.d/init.d/gtk2 start gtk: creating gdk-pixbuf.loaders
mx# /etc/rc.d/init.d/pango start pango: creating module list
Execute gtk-demo:
mx# /usr/bin/gtk-demo
If you would like to test the gtk-demo application over X, start X first (tested on i.MX25 PDK):
mx# Xfbdev -screen 480×640 -mouse tslib,,device=/dev/input/event1 & mx# export DISPLAY=:0.0 mx# /usr/bin/gtk-demo