Qtopia core howto

From Gumstix User Wiki
Revision as of 11:11, 14 March 2008 by Zyagon (Talk | contribs)

Jump to: navigation, search

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/qt/source/qtopia-core-opensource-src-4.4.0-beta1.tar.gz
 $ tar xfzv tar xzvf qtopia-core-opensource-src-4.4.0-beta1.tar.gz ; cd qtopia-core-opensource-src-4.4.0-beta1/


configure, make and make install

 $ ./configure -embedded arm -little-endian -prefix /qtopia ; make ; sudo make install


tar and move it to gumstix (~83 MB including examples & demos)

 $ tar cvf ~/qtopia-core.tar --exclude=doc /qtopia
 gumstix: $ tar xvf qtopia-core.tar -C /media/cf ; 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 & calibrate touchscreen

 $ export QWS_MOUSE_PROTO='LinuxTP:/dev/input/touchscreen0'
 $ /qtopia/examples/qtopiacore/mousecalibration/mousecalibration -qws &