author | mickeyl <mickeyl> | 2003-12-09 23:11:46 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-12-09 23:11:46 (UTC) |
commit | a18b79ad644cfc1a48a87b7d0d06266737d21cbf (patch) (unidiff) | |
tree | 44d9e2449048ee3978d575fba22059cca77f497a | |
parent | b2dc1cd012f2426b3ffa5b29879cf1760cfbc2e6 (diff) | |
download | opie-a18b79ad644cfc1a48a87b7d0d06266737d21cbf.zip opie-a18b79ad644cfc1a48a87b7d0d06266737d21cbf.tar.gz opie-a18b79ad644cfc1a48a87b7d0d06266737d21cbf.tar.bz2 |
improve wording and correct facts
-rw-r--r-- | README | 81 |
1 files changed, 23 insertions, 58 deletions
@@ -1,77 +1,46 @@ | |||
1 | 1. How to use the new build system | 1 | 1. How to use the Opie build system |
2 | =============================== | 2 | ==================================== |
3 | There's a great document at: | 3 | There's a tutorial document at: |
4 | |||
5 | http://www.uv-ac.de/opiedev/opiedev.html | 4 | http://www.uv-ac.de/opiedev/opiedev.html |
6 | 5 | ||
7 | and the API is at: | 6 | The API reference currently is at: |
8 | http://handhelds.org/~zecke/apidocs/index.html | 7 | http://handhelds.org/~zecke/apidocs/index.html |
9 | 8 | ||
10 | 9 | You will need qvfb, uic and | |
11 | You will need qvfb, designer, and uic from a qt-x11-2.3.2 package. | 10 | (if you want to develop applications) designer |
11 | compiled and linked against qt-x11. | ||
12 | That means you must download and configure/make it. | 12 | That means you must download and configure/make it. |
13 | wget ftp://ftp.trolltech.com/qt/source/qt-x11-2.3.2.tar.gz | 13 | wget ftp://ftp.trolltech.com/qt/source/qt-x11-2.3.2.tar.gz |
14 | 14 | (Alternatively, you can get static binaries from http://www.vanille.de/tools) | |
15 | 15 | ||
16 | The recommended version of Qt embedded is qt-embedded-2.3.7 | 16 | The recommended version of Qt embedded is qt-embedded-2.3.7 |
17 | 17 | ||
18 | You can get it from: | 18 | You can get it from: |
19 | ftp://ftp.trolltech.com/qt/source/qt-embedded-2.3.7.tar.bz2 | 19 | ftp://ftp.trolltech.com/qt/source/qt-embedded-2.3.7.tar.bz2 |
20 | Other version will found in that directory. | ||
21 | |||
22 | 20 | ||
23 | Set QTDIR to point to your qt/embedded source tree, such as: | 21 | Set QTDIR to point to your qt/embedded source tree, such as: |
24 | |||
25 | export QTDIR=/opt/qt-2.3.7 | 22 | export QTDIR=/opt/qt-2.3.7 |
26 | 23 | ||
27 | Then you need to do | 24 | You need to do set the OPIEDIR environment variable: |
28 | export OPIEDIR=`pwd` | 25 | export OPIEDIR=`pwd` |
29 | or | 26 | or |
30 | export OPIEDIR=~/projects/sources/opie | 27 | export OPIEDIR=~/projects/sources/opie |
31 | or where ever you placed Opie sources. | 28 | or whereever you placed the Opie sources. |
32 | 29 | ||
33 | and then do: | 30 | You need to adjust your runtime library search path, |
31 | so that the Qt/Embedded and Opie libraries can be found: | ||
34 | export LD_LIBRARY_PATH=$OPIEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH | 32 | export LD_LIBRARY_PATH=$OPIEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH |
35 | 33 | ||
36 | You will want to apply the patches in the $OPIEDIR/qt directory to qt-embedded | 34 | You have to apply the qte<version>-all.patch to the Qt/Embedded |
37 | *NOTE* You can skip the qte234-for-opie091-simpad.patch | 35 | sources and copy the qconfig-qpe.h file to $QTDIR/src/tools: |
38 | patch, unless you are compiling for simpad. | ||
39 | |||
40 | cd $QTDIR; cat $OPIEDIR/qt/qte<version>*.patch | patch -p0 | 36 | cd $QTDIR; cat $OPIEDIR/qt/qte<version>*.patch | patch -p0 |
37 | cp $OPIEDIR/qt/qpe-config.h $QTDIR/src/tools | ||
41 | 38 | ||
39 | You are now ready to configure and build Qt/Embedded | ||
42 | 40 | ||
43 | 41 | cd $QTDIR | |
44 | 42 | echo 'yes' | ./configure -qconfig qpe -depths 4,16,24,32 -system-jpeg -system-libpng -system-zlib -no-xft -qvfb | |
45 | Now Qt Embedded is patched and ready to go! You are ready to configure and make qt embedded. | 43 | make |
46 | |||
47 | I run this script to configure qte | ||
48 | ------------------- start script | ||
49 | #!/bin/bash | ||
50 | ## this file is for easy configuring of qt embedded for Qtopia development, on x86 | ||
51 | |||
52 | configure_make () { | ||
53 | if configure_qt; then | ||
54 | make; | ||
55 | else exit -1 | ||
56 | fi | ||
57 | } | ||
58 | |||
59 | configure_qt () { | ||
60 | cd $QTDIR; | ||
61 | echo 'yes' | ./configure -qconfig qpe -depths 4,16,24,32 -system-jpeg -system-libpng -system-zlib -no-xft -qvfb; | ||
62 | |||
63 | } | ||
64 | |||
65 | # default configuration of Qt embedded for Opie | ||
66 | echo "Configuring Qt Embedded for Opie development...."; | ||
67 | if [ ! -e $QTDIR/src/tools/qconfig-qpe.h ]; then | ||
68 | cp $OPIEDIR/qt/qconfig-qpe.h $QTDIR/src/tools | ||
69 | fi | ||
70 | |||
71 | configure_make; | ||
72 | |||
73 | |||
74 | ------------------- end script | ||
75 | 44 | ||
76 | Once you have these compiled, be sure to set the PATH to ensure your (cross)compiler | 45 | Once you have these compiled, be sure to set the PATH to ensure your (cross)compiler |
77 | is available. | 46 | is available. |
@@ -86,23 +55,18 @@ Exit and save the configuration and enter "make" to create opie... | |||
86 | 55 | ||
87 | Have fun with it ! | 56 | Have fun with it ! |
88 | 57 | ||
89 | If you get into trouble there are other make's | 58 | If you get into trouble there are other makefile targets |
90 | 59 | ||
91 | make clean-configs | 60 | make clean-configs |
92 | is a useful one. | 61 | is a useful one. |
93 | 62 | ||
94 | |||
95 | Ciao, Stefan | ||
96 | and ljp <lpotter@trolltech.com> | ||
97 | |||
98 | |||
99 | 2. Used Libraries | 63 | 2. Used Libraries |
100 | ================ | 64 | ================ |
101 | 65 | ||
102 | The following Libraries are used in Opie. | 66 | The following Libraries are used in Opie. |
103 | For a successfull build you must install these librarys and headers. | 67 | For a successfull build you must install these librarys and headers. |
104 | The versions are known-good versions. If you successfully try newer ones, | 68 | The versions are known-good versions. If you successfully try newer ones, |
105 | commit a new README or send mail to opie-devel@handhelds.org | 69 | commit a new README or send a mail to opie-devel@handhelds.org |
106 | 70 | ||
107 | * libsdl 1.2 | 71 | * libsdl 1.2 |
108 | http://www.libsdl.org/download-1.2.php | 72 | http://www.libsdl.org/download-1.2.php |
@@ -113,9 +77,10 @@ commit a new README or send mail to opie-devel@handhelds.org | |||
113 | * libpcap 0.7.2 | 77 | * libpcap 0.7.2 |
114 | http://www.tcpdump.org/release/ | 78 | http://www.tcpdump.org/release/ |
115 | 79 | ||
116 | * libetpan 0.30 + patch (in CVS) | 80 | * libetpan 0.30 + patch (in $OPIEDIR/noncore/net/mail/libetpan) |
117 | http://prdownloads.sourceforge.net/libetpan/ | 81 | http://prdownloads.sourceforge.net/libetpan/ |
118 | 82 | ||
119 | * libsqlite 2.8.6 | 83 | * libsqlite 2.8.6 |
120 | http://www.sqlite.org/download.html | 84 | http://www.sqlite.org/download.html |
121 | 85 | ||
86 | |||