Mini2440 Qt

From Kenneth Noyens
Jump to: navigation, search

Filesystem

cd oe/base/recipes/images/

create file qt4-image.bb:

require console-image.bb

DEPENDS += "qt4-embedded boost tslib"

IMAGE_INSTALL += "qt4-embedded \
                  tslib-calibrate tslib-tests \
                  boost-thread boost-date-time"
export IMAGE_BASENAME = "qt4-image"

Start building:

export BBPATH=/home/oe/oe/base/
bitbake qt4-image

Cross compile Qt SDK

bitbake meta-toolchain-qte
sudo tar -C / -xjf /home/oe/oe/build/deploy/glibc/sdk/angstrom- ... -linux-gnueabi-toolchain-qte.tar.bz2 (use TAB)

Cross compile your Qt program

cd in the directory of your .pro file

. /usr/local/angstrom/arm/environment-setup
qmake2
make

Run your qt program

Add the following lines to the /etc/profile file:

export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/touchscreen0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts

export QWS_MOUSE_PROTO=tslib:/dev/input/touchscreen0

After this you can run your cross compiled program on your embedded device