Kontron KTAM3874-pITX User Manual
Page 160

KTD-S0057-I
Page 156 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
10.12.3 GTK+ 3.x
GTK+ represents a multi-platform Graphical User Interface Toolkit with a wide range of widgets and con-
trols. On an x86 Desktop PC using a cross compiler (Ubuntu
TM
environment) you need some additional
libraries (application dependent):
gtk-3
gdk-3
gobject-2.0
glib-2.0
pango-1.0
pangocairo-1.0
gdk_pixbuf-2.0
cairo
png12
expat
selinux
pcre
gio-2.0
z (libz)
All dynamic libraries are available within the standard Debian
TM
image (most of them in the directories
/usr/lib/arm-linux-gnueabihf
and
/lib/arm-linux-gnueabihf
). The best way for development consists in the
use of these libraries which should be copied from the target hardware to the cross compiler environment.
Maybe you also need some additional Include-files like
glibconfig.h
or the directory
gdk-pixbuf
. Normally
all x86 Include-files are compatible with the ARM
®
files and could be copied to the ARM
®
environment.
Another possible option represents the download of
libgtk-3-dev
(includes all necessary libraries and
Include-files) on the target hardware with
sudo apt-get install libgtk-3-dev
but this approach is not really recommended. For further steps see the chapter
Sound Programming with
ALSA
. Maybe a link creation or renaming of library files could be required. Please note that the develop-
ment libraries are not needed for the execution of GTK+ applications on the target hardware because the
standard Debian
TM
image contains all necessary files.
ATTENTION
If you download the 'libgtk-3-dev' environment on the target hardware with-
out special precautions the image will likely be corrupted. The integrated
files 'libcairo.so.2' and 'libcairo-gobject.so.2' are special versions and should
not be overwritten.
Without special precautions the following download message appears (extract):
The following extra packages will be installed:
autopoint binutils build-essential debhelper dpkg-dev fakeroot g++ g++-4.6
gcc gcc-4.6 gettext gettext-base git git-man html2text intltool-debian
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libasprintf0c2 libatk1.0-dev libc-dev-bin libc6-dev libcairo-gobject2
libcairo-script-interpreter2 libcairo2 libcairo2-dev libdpkg-perl libelf1
liberror-perl libexpat1-dev libfile-fcntllock-perl libfontconfig1-dev
libfreetype6-dev libgdk-pixbuf2.0-dev libgettextpo0 libglib2.0-bin
libglib2.0-dev libice-dev libmail-sendmail-perl libpango1.0-dev libpcre3-dev