Cross compiling Qt/E

24
Jun 2010

Hope the content is reproduced precisely the way I tried it some days back...This should have been the post before this

Initally download the toolchain from

http://wiki.openmoko.org/wiki/Toolchain

Create symbolic link for the needed toolchain

lrwxrwxrwx  arm-linux-ar -> arm-angstrom-linux-gnueabi-ar
lrwxrwxrwx  arm-linux-c++ -> arm-angstrom-linux-gnueabi-c++filt
lrwxrwxrwx  arm-linux-cpp -> arm-angstrom-linux-gnueabi-cpp
lrwxrwxrwx  arm-linux-g++ -> arm-angstrom-linux-gnueabi-g++
lrwxrwxrwx  arm-linux-gcc -> arm-angstrom-linux-gnueabi-gcc
lrwxrwxrwx  arm-linux-gcov -> arm-angstrom-linux-gnueabi-gcov
lrwxrwxrwx  arm-linux-gdb -> arm-angstrom-linux-gnueabi-gdb
lrwxrwxrwx  arm-linux-ld -> arm-angstrom-linux-gnueabi-ld
lrwxrwxrwx  arm-linux-objcopy -> arm-angstrom-linux-gnueabi-objcopy
lrwxrwxrwx  arm-linux-strip -> arm-angstrom-linux-gnueabi-strip
 

set PATH variable

PATH=$PATH:/usr/local/openmoko/arm/bin/

compile the tslib for arm(ref the link)

http://automon.donaloconnor.net/cross-compiled-qt-embedded-step-by-step/74/

copy the generated lib(.so) as well as header file in the needed location
/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libts.so
and
/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/tslib.h
then download the needed version of qt http://qt.nokia.com/downloads/
and to cross compile give the cmd

./configure -embedded arm -qt-mouse-tslib

In case of tslib being stored in some other directory specify the
./configure -embedded arm -qt-mouse-tslib -I and -L

then  be sure to include the crosscompiler path for root

make && sudo make install


this will create
/usr/local/Trolltech/Qt-*

cp this on the same location in the device

For mokotouch to be compiled be sure to have the same dir as specified
as the build-mokotouch.sh includes this dir

copy the MOKOTOUCH in the device under /usr/local/MokoTouch
stop the service as below

/etc/init.d/x* stop for shr/om
/etc/init.d/qpe.sh stop for qtmoko