Difference between revisions of "Qtopia platform howto"

From Gumstix User Wiki
Jump to: navigation, search
(remove spam)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
download and unpack
+
we need qtopia to find the compiler (symlinks & path)
  
 +
  $ cd path-to/gumstix-oe/tmp/cross/bin ; for f in arm-angstrom-linux-gnueabi-*; do n=$(echo $f|cut -b 28-); ln -s $f arm-linux-$n; done
 +
  $ PATH=$PATH:path-to/gumstix-oe/tmp/cross/bin/ ; export PATH
 +
 +
 +
download and unpack
  
 
   $ wget ftp://ftp.trolltech.com/qtopia/source/qtopia-opensource-src-4.3.1.tar.gz
 
   $ wget ftp://ftp.trolltech.com/qtopia/source/qtopia-opensource-src-4.3.1.tar.gz
   $ tar xfzv qtopia-opensource-src-4.3.1.tar.gz ; cd qtopia-opensource-4.3.1/
+
   $ tar xfzv qtopia-opensource-src-4.3.1.tar.gz
  
  
 +
configure, make and make install
  
we need qtopia to find the compiler
+
  $ mkdir qtopia-platform ; cd qtopia-platform
 +
  $ ../qtopia-opensource-4.3.1/configure -separate-debug-info -little-endian -edition platform -xplatform arm -arch arm -no-telephony -prefix /qtopia
 +
  $ make ; make install
  
  
  $ ln -s path-to/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-g++ path-to/gumstix-oe/tmp/cross/bin/arm-linux-g++
+
tar image and move it to gumstix
  $ PATH=$PATH:path-to/gumstix-oe/tmp/cross/bin/ ; export PATH
+
  
 +
  $ cd image ; tar cfv ~/qtopia-platform.tar .
  
configure, make and make install
+
  gumstix: $ mkdir /media/cf/qtopia ; tar xvf qtopia-platform.tar -C /media/cf/qtopia ; ln -s /media/cf/qtopia/ /qtopia
  
+
 
   $ ./configure -separate-debug-info -little-endian -edition platform -xplatform arm -arch arm -prefix /qtopia ; make ; make install
+
qtopia needs libstdc++, move it to your gumstix's /lib or somewhere it can be found
 +
 
 +
   $ cd path-to/gumstix-oe/tmp/staging/arm-angstrom-linux-gnueabi/lib/
 +
  $ tar cfv ~/libstdc++.tar libstdc++.so*
 +
 
 +
  libstdc++.so
 +
  libstdc++.so.6
 +
  libstdc++.so.6.0.8
 +
 
 +
  gumstix: $ tar xvf libstdc++.tar -C /lib
 +
 
 +
 
 +
 
 +
set variables for qtopia & run
 +
 
 +
  $ export QWS_MOUSE_PROTO='LinuxTP:/dev/input/touchscreen0'
 +
  $ /qtopia/bin/qpe -qws & 
 +
 
 +
 
 +
calibrate touchscreen
 +
 
 +
  $ /qtopia/bin/qcop service send Launcher "execute(QString)" "calibrate" &
  
  
tar image and move it to gumstix
 
  
  
  $ tar cfv ~/qtopia-platform.tar /qtopia/image
 
  
  gumstix: $ tar xvf qtopia-platform.tar -C /mnt/cf/qtopia ; ln -s /mnt/cf/qtopia/ /qtopia
 
  
 +
'''incomplete''' touchscreen and keyboard not working. mouse works
 +
 
  
  
[[Category:howtos]]
+
[[Category:How_to_-_general]]

Latest revision as of 15:36, 23 November 2010

we need qtopia to find the compiler (symlinks & path)

 $ cd path-to/gumstix-oe/tmp/cross/bin ; for f in arm-angstrom-linux-gnueabi-*; do n=$(echo $f|cut -b 28-); ln -s $f arm-linux-$n; done
 $ PATH=$PATH:path-to/gumstix-oe/tmp/cross/bin/ ; export PATH


download and unpack

 $ wget ftp://ftp.trolltech.com/qtopia/source/qtopia-opensource-src-4.3.1.tar.gz
 $ tar xfzv qtopia-opensource-src-4.3.1.tar.gz


configure, make and make install

 $ mkdir qtopia-platform ; cd qtopia-platform
 $ ../qtopia-opensource-4.3.1/configure -separate-debug-info -little-endian -edition platform -xplatform arm -arch arm -no-telephony -prefix /qtopia 
 $ make ; make install


tar image and move it to gumstix

 $ cd image ; tar cfv ~/qtopia-platform.tar .
 gumstix: $ mkdir /media/cf/qtopia ; tar xvf qtopia-platform.tar -C /media/cf/qtopia ; ln -s /media/cf/qtopia/ /qtopia


qtopia needs libstdc++, move it to your gumstix's /lib or somewhere it can be found

 $ cd path-to/gumstix-oe/tmp/staging/arm-angstrom-linux-gnueabi/lib/
 $ tar cfv ~/libstdc++.tar libstdc++.so*
 libstdc++.so
 libstdc++.so.6
 libstdc++.so.6.0.8
 gumstix: $ tar xvf libstdc++.tar -C /lib


set variables for qtopia & run

 $ export QWS_MOUSE_PROTO='LinuxTP:/dev/input/touchscreen0'
 $ /qtopia/bin/qpe -qws &  


calibrate touchscreen

 $ /qtopia/bin/qcop service send Launcher "execute(QString)" "calibrate" &




incomplete touchscreen and keyboard not working. mouse works