This chapter describes, howto install qphoto on you handheld. As Im using the familiar distribution with QT-Embedded and QTopia as the desktop on my iPaq, this chapter will only describe, how it works for "my" situation.
Nevertheless It should give a similar way also for other handhelds usin QTopia.
QPhoto is available from my homepage as an ipgk. The source version needs still some time to be prepared and some more documentation, but the ipkg is the most important thing, because you can use it out of the box (I hope).
The handheld should run the familiar distro (0.5.1) including the libjpeg_62 package included as a binary. You should have installed a QTopia 1.5.0 (available from http://www.Trolltech.com. including the libqte.so.2.3.2.
The libqte unfortunately does not support native jpeg. As most cameras use this format, you have to create an own libqte including sytem jpeg support.
For this grab the final qte-2.3.2 sources from trolltech, copy the
qconfig-qpe.h
file from your QTopia (or QPE) sources into
the QTDIR, where you anpacked the QT-Embedded tarball.
export QTDIR=$PWD
./configure -qconfig qpe -system-jpeg -xplatform linux-ipaq-g++ \
-I/where_your_arm_kernel_inludes_are -I/where_your_arm_compiler_inludes_are
will prepare for compilation, while a make
will start the compilation.
You can find more documentation on
Grab the ipk files from my homepage and transfer them to the handheld. Unpack them using
ipkg install qphoto_x.y.z_arm.ipk
and clear the ipg itself.
Alternatively, you can also add http://www.uv-ac.de/ipkgs
to your /etc/ipkg.conf. Doing update;ipkg install qphoto
will install qphoto. Dont forget libqte_2.3.2_jpeg_arm and the libjpeg
itself.
Before you can start, QPhoto needs to know, where its configuration is stored. For this, you have to setup an appropriate environment variable QPHOTOCFG. On your handheld, you can do that in the /etc/profile (assuming you use the user root). Insert the line
export QPHOTOCFG=/root/Applications/docs/qphoto
assuming you are using bash or similar.
This is the location where QPhoto finds its configuration file. The following paragraph shows the programs config file as an example.
Note
From version 0.1.1 on this is done by the installation process postinstall.
To get the environment variable working, you have to reboot your handheld.
<?qphoto version="0.1.0" type="config"?>
#-------------------------------------------------------------
# Cfg-File for qphoto
# written from qphoto : V0.2.1
# last modified : date = 02.02.2002
# time = 17:20:34
#
# File is automatically generated, dont modify manually
#
[HEADER]
[HEADER]
DATAPATH=/root/Application/qphoto/data;
FLASHPATH=dcim/100canon;
DEVICE=/dev/hda1;
MOUNTPOINT=/mnt/hda;
FILEEXT=jpg;
LEFTPATH=/mnt/hda/dcim/100canon;
RIGHTPATH=/mnt/hda/bilder;
HELPPROG=helpbrowser;
HELPFILE=/opt/QtPalmtop/docs/qphoto/en/index.html;
SCREEN WIDTH=240;
SCREEN HEIGHT=320;
PREVIEW WIDTH=100;
PREVIEW HEIGHT=75;
FULLSCREEN WIDTH=225;
FULLSCREEN HEIGHT=300;
FULLSCREEN ROTATION=270;
##EOF QPHOTO CFG FILE qphoto.cfg
You can chage the setup using the setup
button on the main screen.
A setup dialog is opened, wich allows you the change the different config
file entries.
The setup dialog shows a listview, where config entries are grouped together. The user can change the different entries.