Specifications

SHARP CORPORATION
Sharp SL-series Zaurus “Qtopia” Development Start-up Guide
Ver 1.11, February 28, 2003, 12/63
1.1.3. Qt/Embedded / Qtopia Build Environment
Native development for the Zaurus is done using C++ and Qt by TrollTech. Qtopia comes with a virtual frame
buffer (qvfb) so that you can test applications under X11 without having to have a Zaurus. To run applications on
the Zaurus (and the qvfb) you need to link against QPE rather then Qt. See section 4 for more details about qvfb.
To start development you need to obtain the Qtopia SDK from Trolltech. GPL edition
(qtopia-free-1.5.0-1.i386.rpm) can be located at the following URL. Note that if you use this GPL version, you
have to follow the terms and conditions set forth in the GPL (GNU Public License, see http://www.gnu.org/
for
details). If you are doing commercial development you need to obtain the commercial SDK:
http://www.trolltech.com/developer/download/qtopia.html
. (GPL edition Qtopia SDK)
https://www.regnow.com/softsell/nph-softsell.cgi?item=7131-1
(Commercial Edition)
Install the rpm in the same manner as to how the cross compiler was installed:
rpm -Uvh qtopia-free-1.5.0-1.i386.rpm
By default, RPM installs the Qtopia SDK in the
/opt/Qtopia/
directory.
1.1.4. Configuring Your Compiler Environment
After the toolchain and the SDK are installed, you should create the two batch files in your home directory. One
sets up the environment variables for compiling x86 versions of SL-series Zaurus applications (using the qvfb)
and the other for setting the environment variables for doing native ARM cross-compiling for the SL-series Zaurus.
More information can be found at (http://docs.zaurus.com/linux_compiler_setup_howto.shtml
) The following are
examples of the scripts:
Batch file #1, dev-x86-qpe.sh
#!/bin/bash
# dev-x86-qpe.sh
# location : /usr/bin
if [ -z ${ORG_PATH} ]
then
ORG_PATH=${PATH}
export ORG_PATH
fi
if [ -z ${ORG_LD_LIBRARY_PATH} ]
then
ORG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
export ORG_LD_LIBRARY_PATH
fi
CROSSCOMPILE=/opt/Embedix/tools:/usr/local/x86/2.95.3/bin:/opt/Embedix/tools
QPEDIR=/opt/Qtopia
QTDIR=/opt/Qtopia
PATH=/usr/local/x86/2.95.3/bin:$QTDIR/bin:$QPEDIR/bin:${ORG_PATH}:/opt/Embedix/tools/bin
TMAKEPATH=/opt/Qtopia/tmake/lib/qws/linux-x86-g++/
LD_LIBRARY_PATH=$QTDIR/lib:${ORG_LD_LIBRARY_PATH}
export QPEDIR QTDIR PATH TMAKEPATH LD_LIBRARY_PATH PS1
echo "Altered environment for Sharp Zaurus Development x86"