Quick 1.x / qml – Kontron KTAM3874-pITX User Manual
Page 215

KTD-S0057-I
Page 211 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
10.12.5 Qt
TM
Quick 1.x / QML
Qt
TM
Quick 1.x (QUICK = Qt User Interface Creation Kit) is based on Qt
TM
4.x and uses the QPainter/
QGraphics-View API. For the newer Qt
TM
Quick 2.x (based on SceneGraph, an OpenGL
®
ES 2.x abstraction
layer) you need Qt
TM
5.x which libraries are not included in the Debian
TM
Wheezy image. However, JsCore
(JavaScript
TM
engine of Webkit
TM
) serves the platform for the QML (Qt Meta Language or Qt Modeling
Language) part of Qt
TM
Quick 1.x. QML is also a scripting language which does not require compilation and
can instantly be run on many devices. Qt
TM
Quick uses the Qt
TM
Declarative module resp. library.
On an x86 Desktop PC using a cross compiler (Ubuntu
TM
environment) you need some additional libraries
(application dependent):
QtCore
QtGui
QtDeclarative
QtScript
QtSql
QtNetwork
QtXmlPatterns
glib-2.0
png12
expat
pcre
uuid
z (libz)
Some Qt
TM
dynamic libraries are available within the standard Debian
TM
image (have a look at the directo-
ries
/usr/lib/arm-linux-gnueabihf
respectively
/lib/arm-linux-gnueabihf
), especially these five libraries:
QtCore.so.4.8.2, QtGui.so.4.8.2, QtDBus.so.4.8.2, QtCLucene.so.4.8.2 and QtXml.so.4.8.2. 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. For further information see the previous chapter.
You need five additional libraries: QtDeclarative.so.4.8.2, QtScript.so.4.8.2, QtSql.so.4.8.2, QtNetwork.
so.4.8.2 and QtXmlPatterns.so.4.8.2. One way to download these files on the target hardware insists in the
use of
sudo apt-get install libqt4-dev
or with less effort
sudo apt-get install libqt4-opengl-dev
and thereafter these five files should also be copied to the cross compiler environment.
You can find a detailed list of all available Debian
TM
Wheezy packages and their associated content on
https://packages.debian.org/wheezy/allpackages