Installation instructions for the FPC Qt/Embedded binding Demo program
Caution:
Instructions may be Mandriva specific
please adapt for your distribution:
- eg replace every /usr with /usr/local
- eg replace md with mkdir
- eg replace urpmi with ...
- etc
Download:
The files and packages you will need can be found on the
Downloads
page
Demo on i386 Qt/Embedded Virtual Framebuffer
- install latest i386 fpc (but that corresponds to the cross fpc you will install later)
$ urpmi fpc-2.0.4-0.i586.rpm
- install qtopia 1.5.0
$ urpmi qtopia-free-1.5.0-1.i386.rpm
- configure shell
$ source ./configure
- compile
$ ./compile
- run the Qt/Embedded Virtual Framebuffer
$ /opt/Qtopia/bin/qvfb -width 640 -height 480 &
- instruct demo to run on the Qt/Embedded Virtual Framebuffer
$ ./demo -qws
Demo on Zaurus arm
- First setup i386 demo (gives you qtopia, fpc.cfg, ...)
- install qtopia cross libraries
$ urpmi binutils-cross-arm-2.11.2-0.i386.rpm
$ urpmi gcc-cross-sa1100-2.95.2-0.i386.rpm
$ urpmi glibc-arm-2.2.2-0.i386.rpm
- install arm package
- download latest arm package eg arm-linux-fpc-2.0.4.i386-linux.tar
$ tar xvf arm-linux-fpc-2.0.4.i386-linux.tar
- run script and use /usr as destination for Mandriva
$ ./install.sh
- configure shell
$ source ./arm-configure
- compile
$ ./arm-compile
- copy binding library and demo executable to zaurus
$ scp arm-libqteintf.so.2.3.2 zaurus:/home/QtPalmtop/lib/libqteintf.so.2.3.2
$ scp demo zaurus:/home/zaurus
- run terminal program on zaurus
- setup some symlinks for libqteintf library as root
$ su
$ ln -s /home/QtPalmtop/lib/libqteintf.so.2.3.2 /home/QtPalmtop/lib/libqteintf.so.2.3
$ ln -s /home/QtPalmtop/lib/libqteintf.so.2.3 /home/QtPalmtop/lib/libqteintf.so.2
$ ln -s /home/QtPalmtop/lib/libqteintf.so.2 /home/QtPalmtop/lib/libqteintf.so
$ exit
- run the demo program as user zaurus (do not forget the previous exit!)
$ ./demo