All Forums
 Embedded Linux
 Linux FAQ
 How do I run Qt on my system?
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

KnowledgeBase

296 Posts

Posted - 18 Apr 2003 :  16:46:26  Show Profile  Email Poster
First, down load Qt version 3.1.2 from the Trolltech web site.

Then apply this patch to the Qt source code and use the following commands on your PC to build Qt:

export QTDIR=`pwd`
./configure -embedded arm -qt-mouse-linuxtp -DQT_QWS_ADS
gmake

Put the 'lib' directory on your board (a conventient way to do this is with NFS, alternatively, you could use a jffs or cramfs on the on-board flash memory).

To run a Qt program on your board, use the following commands (assuming that the lib directory is in /nfs/qt/lib):

export QTDIR=/nfs/qt
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib
export QWS_MOUSE_PROTO=linuxtp

For a PS2 mouse the last line should be changed to:

export QWS_MOUSE_PROTO=IntelliMouse

For a serial mouse:

export QWS_MOUSE_PROTO=Microsoft

To run the example in $QTDIR/examples/widgets:

./widgets -qws

Here is a calibration program (adapted from Opie) that you can use to calibrate the touch screen. This program saves the calibration parameters in the file /etc/pointercal.

jlackey

213 Posts

Posted - 24 Jul 2003 :  13:18:04  Show Profile  Email Poster
For a USB mouse, use:
    export QWS_MOUSE_PROTO=IntelliMouse

and replace /dev/psaux with a link to /dev/input/mice, i.e.
    cd /dev
    rm psaux
    ln -s input/mice psaux

Qt will see the USB mouse as a PS2 mouse.

To configure the kernel to support USB mice, be sure the following are enabled in your kernel configuration:
    CONFIG_INPUT=y
    CONFIG_INPUT_MOUSEDEV=y
    CONFIG_USB_HID=y
    CONFIG_USB_HIDINPUT=y


Go to Top of Page

rwhaley

628 Posts

Posted - 25 Aug 2003 :  15:06:41  Show Profile  Email Poster
With the release of 2.4.19_rmk7_pxa2_adsx4 the Qt patches are no longer necessary for Xscale boards (currently AGX and BitsyX).

The new touch screen driver in this release both reduces noise and provides compatibility with the Ipaq touchscreen drivers. The new touch screen driver is not compatible with the old touchscreen driver.

When building Qt for use with this release, you should not apply the ADS Qt patch described in the original message above. Instead you should build with -DQT_QWS_IPAQ.

Before running Qt add the following entries in /dev:

ln -s /dev/ts /dev/h3600_ts
ln -s /dev/ts_raw /dev/h3600_tsraw

Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000