DM365 touchscreen with Qt

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

Equipment Needed

Prerequisites

This guide assumes you have succesfully set up the LCD with the DM365 according to the getting started guide in the download section of Avnet's DM365 AIB.

It also assumes you have completed the steps in the DM365 Getting Started Guide.

Testing the LCD With the DVSDK

Patching the Kernel

Some modifications need to be made to the kernel provided with the DaVinci LSP to enable LCD and touchscreen functionality.

Install the Test Binaries

/bin - files will be named ts_*; these are the touchscreen tests
/disptest - contains files for running the display tests
/etc - contains ts.conf
/include - contains tslib.h
/lib - files containing touchscreen libraries
/root - contains .profile; this includes environment variables needed for touchscreen support

Running the Demos

sendln "setenv bootfile uImage-dm365"
sendln "setenv ipaddr 192.157.144.93"
sendln "setenv serverip 192.157.144.96"
sendln "setenv rootpath /home/user/workdir/dm365"
# run makenfsboot
# boot
# cd /disptest
# ./disp_images.sh
# ts_calibrate
# ts_test

Installing the Qt Demos

This section closely follows Building Qt for ARM only devices.

$ tar xzf qt-everywhere-opensource-src-4.6.0.tar.gz
cp -R [qt-install-dir]/mkspecs/qws/linux-arm-g++/ [qt-install-dir]/mkspecs/qws/linux-dm365-g++/
#
# qmake configuration for building with arm-linux-g++
#

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC                = arm_v5t_le-gcc
QMAKE_CXX               = arm_v5t_le-g++
QMAKE_LINK              = arm_v5t_le-g++
QMAKE_LINK_SHLIB        = arm_v5t_le-g++

#modifications to include ts-lib
QMAKE_INCDIR            = /home/user/workdir/dm365/usr/include
QMAKE_LIBDIR            = /home/user/workdir/dm365/lib

# modifications to linux.conf
QMAKE_AR                = arm_v5t_le-ar cqs
QMAKE_OBJCOPY           = arm_v5t_le-objcopy
QMAKE_STRIP             = arm_v5t_le-strip

load(qt_config)
$ ./configure -prefix /opt/qt-embedded -embedded arm -platform /qws/linux-x86-g++ -xplatform /qws/linux-dm365-g++ -depths 16,24,32 -no-cups \
-no-largefile -no-accessibility -no-openssl -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc –fast -qt-mouse-tslib
$ gmake
$ gmake install
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
export QWS_DISPLAY=LinuxFb:/dev/fb2

Running the Qt Demos

# export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/opt/qt-embedded/lib
# ./<Demo Name> -qws
Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox