All Boards GTK+

Showing results for 
Search instead for 
Did you mean: 

All Boards GTK+

No ratings

All Boards GTK+


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:

All Boards DirectFB

If you want to compile GTK over X11:

All Boards X11

All Boards GTK Manually

All Boards GTK Glade

GTK Demo

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 

GTK Demo with X

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 

Tags (1)
Version history
Revision #:
2 of 2
Last update:
‎09-10-2020 02:56 AM
Updated by: