| 1 |
1. How to use the Opie build system |
| 2 |
==================================== |
| 3 |
For more complete instructions on getting started, please see: |
| 4 |
|
| 5 |
http://opie.sourceforge.net/cgi-bin/moin.cgi/BuildOpie |
| 6 |
|
| 7 |
There's also a tutorial document at: |
| 8 |
|
| 9 |
http://www.uv-ac.de/opiedev/opiedev.html |
| 10 |
|
| 11 |
The API reference currently is at: |
| 12 |
|
| 13 |
http://opie.sourceforge.net/apidocs/ |
| 14 |
|
| 15 |
You will need qvfb, uic and (if you want to develop applications) designer |
| 16 |
compiled and linked against Qt/X11. That means you must download and |
| 17 |
configure/make it: |
| 18 |
|
| 19 |
wget ftp://ftp.trolltech.com/qt/source/qt-x11-2.3.2.tar.gz |
| 20 |
|
| 21 |
Alternatively, you can get static binaries from here: |
| 22 |
|
| 23 |
http://www.bluelightning.org/files/opie/qt2-dev-tools-bin.tar.gz |
| 24 |
|
| 25 |
You will need Qt/Embedded 2.3.10. Note that we don't support any |
| 26 |
other Qt/Embedded version anymore. Qt/Embedded 2.3.12 is not recommended atm. |
| 27 |
|
| 28 |
You can get it from: |
| 29 |
ftp://ftp.trolltech.com/qt/source/qt-embedded-2.3.10-free.tar.gz |
| 30 |
|
| 31 |
Set QTDIR to point to your qt/embedded source tree, such as: |
| 32 |
export QTDIR=/opt/qt-2.3.10 |
| 33 |
|
| 34 |
You need to do set the OPIEDIR environment variable: |
| 35 |
export OPIEDIR=`pwd` |
| 36 |
or |
| 37 |
export OPIEDIR=~/projects/sources/opie |
| 38 |
or wherever you placed the Opie sources. |
| 39 |
|
| 40 |
You need to adjust your runtime library search path, |
| 41 |
so that the Qt/Embedded and Opie libraries can be found: |
| 42 |
export LD_LIBRARY_PATH=$OPIEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH |
| 43 |
|
| 44 |
You have to apply the patches corresponding to your Qt/Embedded version |
| 45 |
and copy the qconfig-qpe.h file to $QTDIR/src/tools: |
| 46 |
cd $QTDIR; cat $OPIEDIR/qt/qt-<version>.patch/qte<version>-all.patch | patch -p1 |
| 47 |
cp $OPIEDIR/qt/qconfig-qpe.h $QTDIR/src/tools |
| 48 |
|
| 49 |
You are now ready to configure and build Qt/Embedded |
| 50 |
|
| 51 |
cd $QTDIR |
| 52 |
echo 'yes' | ./configure -qconfig qpe -depths 4,16,24,32 -system-jpeg -system-libpng -system-zlib -no-xkb -no-sm -no-xft -qvfb |
| 53 |
make |
| 54 |
|
| 55 |
Note that the above command ( -qvfb ) compiles in the Virtual |
| 56 |
Framebuffer and is mostly meant for development on your host system. |
| 57 |
For cross compiling, you will need to use the -xplatform switch. |
| 58 |
See ./configure --help for details about the possible options. |
| 59 |
|
| 60 |
Once you have these compiled, be sure to set the PATH to ensure your |
| 61 |
(cross)-compiler is available. |
| 62 |
|
| 63 |
Then do the following in the opie source tree: |
| 64 |
|
| 65 |
make clean |
| 66 |
make menuconfig |
| 67 |
|
| 68 |
Now you can move through the menu and select or deselect anything.. |
| 69 |
Exit and save the configuration and enter "make" to build everything selected. |
| 70 |
|
| 71 |
Have fun! |
| 72 |
|
| 73 |
2. Required Libraries |
| 74 |
===================== |
| 75 |
|
| 76 |
For a successful Opie build, you need to install the following libraries and |
| 77 |
headers: |
| 78 |
|
| 79 |
* libsdl >= 1.2.0 |
| 80 |
http://www.libsdl.org/download-1.2.php |
| 81 |
|
| 82 |
* libxine >= 1.0 && <= 1.1 |
| 83 |
http://prdownloads.sourceforge.net/xine/ |
| 84 |
|
| 85 |
* libpcap >= 0.7.2 |
| 86 |
http://www.tcpdump.org/release/ |
| 87 |
|
| 88 |
* libetpan >= 0.34 |
| 89 |
http://prdownloads.sourceforge.net/libetpan/ |
| 90 |
|
| 91 |
* libsqlite >= 3.0.0 |
| 92 |
http://www.sqlite.org/download.html |
| 93 |
|
| 94 |
* One of: |
| 95 |
|
| 96 |
* libipk >= 138 |
| 97 |
ftp://handhelds.org/linux/packages/ipkg (currently unavailable) |
| 98 |
|
| 99 |
* libopkg 0.1.8 with C++ patch applied (or 0.1.9 when it is released) |
| 100 |
http://code.google.com/p/opkg/ |
| 101 |
|
| 102 |
* libobexftp >= 0.19 |
| 103 |
http://triq.net/obexftp.html |
| 104 |
|
| 105 |
* libsword >= 1.5.8 |
| 106 |
http://www.crossfire.org/sword |
| 107 |
|
| 108 |
* libbluez >= 2.25 |
| 109 |
http://www.bluez.org |
| 110 |
|
| 111 |
* libfreetype6 >= 2.21 |
| 112 |
http://www.freetype.org |
| 113 |
|
| 114 |
3. Required Programs |
| 115 |
==================== |
| 116 |
|
| 117 |
For a successful usage of Opie, you should install the following programs: |
| 118 |
|
| 119 |
* obexftp |
| 120 |
* obexftpd |
| 121 |
|
| 122 |
4. Supported Devices |
| 123 |
==================== |
| 124 |
|
| 125 |
Note that device support is not limited to these devices - if the Linux 2.6 |
| 126 |
kernel works on your device it can probably be supported with only minor |
| 127 |
changes. |
| 128 |
|
| 129 |
* Sharp Zaurus SL-5x00, SL-B500, SL-Cxx0, SL-Cxx00, SL-6000 |
| 130 |
* HP iPAQ h36xx, h37xx, h38xx, h39xx, h54xx, h55xx, h22xx, h191x, h194x, |
| 131 |
h4xxx, hx4700, rx1950 |
| 132 |
* SIEMENS SIMpad CL4, SL4, SLC, T-SinusPAD |
| 133 |
* MasterIA Beagle, Tradesquare.NL Tuxpad 1 |
| 134 |
* GMate Yopy 3x00 |
| 135 |
* Motorola EZX A780, E680 |
| 136 |
* Palm Tungsten T/T2/T3/T5/C/E/E2, LifeDrive, TX, Zire 71/72, |
| 137 |
Treo 600/650/680/700w/700p/750/755p, Foleo |
| 138 |
* HTC Universal |