User Tools

Site Tools


qt-embedded

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
qt-embedded [2013/06/11 02:42]
maxx [Prerequisites]
qt-embedded [2013/06/11 03:31] (current)
maxx [Qt application with touchscreen support]
Line 9: Line 9:
 </​code>​ </​code>​
 Other tools like autogen, libtool and others are considered to be installed on a development host. Other tools like autogen, libtool and others are considered to be installed on a development host.
 +==== Compile Qt sources ====
  
 Download qt sources from '​ftp://​ftp.qt-project.org/​qt/​source/'​. To avoid problems connected with the latest Qt 5.x version we'll use the latest from 4.x series: 4.8.1 Download qt sources from '​ftp://​ftp.qt-project.org/​qt/​source/'​. To avoid problems connected with the latest Qt 5.x version we'll use the latest from 4.x series: 4.8.1
Line 71: Line 72:
 make make
 </​code>​ </​code>​
-You will have a dynamically linked binary intended to run on a ARM system. However, as we chose the build with shared libraries, at first you need to install same libraries and fonts to the target. For this you can pack the whole folder '/​opt/​qte4.8.1',​ upload it to the target and then unpack it in the same destination ​ '/​opt',​ so both the host and the target had the same paths to the libraries and fonts.+You will have a dynamically linked binary intended to run on a ARM system. However, as we chose the build with shared libraries, at first you need to install same libraries and fonts to the target. For this you can pack the whole folder '/​opt/​qte4.8.1',​ upload it to the target and then unpack it in the same destination ​ '/​opt',​ so both the host and the target had the same paths to the libraries and fonts. ​After this you are able to run applications cross-compiled at a x86 linux system. 
 +==== Qt application with touchscreen support ==== 
 +For Tslib installation instructions refer to the page [[tslib]] 
 +<​code>​ 
 +export QWS_MOUSE_PROTO=tslib:/​dev/​input/​event0 
 +export TSLIB_CALIBFILE=/​usr/​local/​etc/​pointercal 
 +export TSLIB_CONFFILE=/​usr/​local/​etc/​ts.conf 
 +export TSLIB_PLUGINDIR=/​usr/​local/​lib/​ts 
 +</​code>​ 
 +To run an application with touchsreen input you can export all variables as described above, or simply run the application by issuing the command: 
 +<​code>​ 
 +QWS_MOUSE_PROTO=tslib:/​dev/​input/​event0 ./your-app -qws 
 +</​code>​
qt-embedded.1370932954.txt.gz · Last modified: 2013/06/11 02:42 by maxx