Update copyright headers
[qt:qt.git] / doc / src / snippets / code / doc_src_installation.qdoc
1 /****************************************************************************
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd.
4 ** Contact: http://www.qt.io/licensing/
5 **
6 ** This file is part of the documentation of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:BSD$
9 ** You may use this file under the terms of the BSD license as follows:
10 **
11 ** "Redistribution and use in source and binary forms, with or without
12 ** modification, are permitted provided that the following conditions are
13 ** met:
14 **   * Redistributions of source code must retain the above copyright
15 **     notice, this list of conditions and the following disclaimer.
16 **   * Redistributions in binary form must reproduce the above copyright
17 **     notice, this list of conditions and the following disclaimer in
18 **     the documentation and/or other materials provided with the
19 **     distribution.
20 **   * Neither the name of The Qt Company Ltd nor the names of its
21 **     contributors may be used to endorse or promote products derived
22 **     from this software without specific prior written permission.
23 **
24 **
25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 **
37 ** $QT_END_LICENSE$
38 **
39 ****************************************************************************/
40
41 //! [0]
42 cd /tmp
43 gunzip qt-everywhere-opensource-src-%VERSION%.tar.gz        # uncompress the archive
44 tar xvf qt-everywhere-opensource-src-%VERSION%.tar          # unpack it
45 //! [0]
46
47
48 //! [1]
49 cd /tmp/qt-everywhere-opensource-src-%VERSION%
50 ./configure
51 //! [1]
52
53
54 //! [2]
55 make
56 //! [2]
57
58
59 //! [3]
60 make install
61 //! [3]
62
63
64 //! [4]
65 PATH               - to locate qmake, moc and other Qt tools
66 //! [4]
67
68
69 //! [5]
70 PATH=/usr/local/Trolltech/Qt-%VERSION%/bin:$PATH
71 export PATH
72 //! [5]
73
74
75 //! [6]
76 setenv PATH /usr/local/Trolltech/Qt-%VERSION%/bin:$PATH
77 //! [6]
78
79
80 //! [7]
81 PATH               - to locate qmake, moc and other Qt tools
82 //! [7]
83
84
85 //! [8]
86 C:
87 cd /D C:\Qt\%VERSION%
88 configure
89 //! [8]
90
91
92 //! [9]
93 configure -platform win32-msvc
94 //! [9]
95
96
97 //! [10]
98 nmake
99 //! [10]
100
101
102 //! [11]
103 cd /tmp
104 gunzip qt-everywhere-opensource-src-%VERSION%.tar.gz        # uncompress the archive
105 tar xvf qt-everywhere-opensource-src-%VERSION%.tar          # unpack it
106 //! [11]
107
108
109 //! [12]
110 cd /tmp/qt-everywhere-opensource-src-%VERSION%
111 ./configure
112 //! [12]
113
114
115 //! [13]
116 make
117 //! [13]
118
119
120 //! [14]
121 sudo make -j1 install
122 //! [14]
123
124
125 //! [15]
126 PATH               - to locate qmake, moc and other Qt tools
127 //! [15]
128
129
130 //! [16]
131 PATH=/usr/local/Trolltech/Qt-%VERSION%/bin:$PATH
132 export PATH
133 //! [16]
134
135
136 //! [17]
137 setenv PATH /usr/local/Trolltech/Qt-%VERSION%/bin:$PATH
138 //! [17]
139
140
141 //! [18]
142 PATH               - to locate qmake, moc and other Qt tools
143 //! [18]
144
145
146 //! [19]
147 C:
148 cd \Qt\%VERSION%
149 configure -platform win32-msvc2005 -xplatform wincewm50pocket-msvc2005
150 //! [19]
151
152
153 //! [20]
154 set INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\ce\include;C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Include\Armv4i
155 set LIB=C:\Program Files\Microsoft Visual Studio 8\VC\ce\lib\armv4i;C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Lib\ARMV4I
156 set PATH=C:\Program Files\Microsoft Visual Studio 8\VC\ce\bin\x86_arm;%PATH%
157 //! [20]
158
159
160 //! [21]
161 setcepaths wincewm50pocket-msvc2005
162 //! [21]
163
164
165 //! [22]
166 nmake
167 //! [22]
168
169
170 //! [23]
171 cd \Qt\%VERSION%
172 configure -platform win32-g++ -xplatform symbian-abld
173 //! [23]
174
175
176 //! [24]
177 make debug-winscw
178 //! [24]
179
180 //! [25]
181 cd examples
182 qmake
183 make
184 cd ..\demos
185 qmake
186 make 
187 //! [25]
188
189 //! [27]
190 make run
191 //! [27]
192
193 //! [28]
194 make release-armv5
195 //! [28]
196
197 //! [29]
198 cd src\s60installs
199 make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=<certificate file> QT_SIS_KEY=<certificate key file>
200 cd ..\3rdparty\webkit\WebCore
201 make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=<certificate file> QT_SIS_KEY=<certificate key file>
202 //! [29]
203
204 //! [30]
205 cd demos\embedded\fluidlauncher
206 make sis QT_SIS_OPTIONS=-i
207 //! [30]
208
209 //! [31]
210 cd \Qt\%VERSION%
211 configure -platform win32-g++ -xplatform symbian-sbsv2
212 //! [31]
213
214 //! [32]
215 cd <Your SDK path>\S60CppExamples\Note\group
216 bldmake bldfiles
217 abld build winscw udeb
218 abld build gcce urel
219 //! [32]
220
221 //! [33]
222 SYMBIANBUILD_DEPENDENCYOFF=1
223 //! [33]
224
225 //! [34]
226 cd src\s60installs
227 make sis QT_SIS_OPTIONS=-i
228 cd ..\3rdparty\webkit\WebCore
229 make sis QT_SIS_OPTIONS=-i
230 //! [34]
231
232 //! [35]
233 cd src\s60installs
234 patch_capabilities.pl Qt_template.pkg release-armv5 "ALL -Tcb -AllFiles -DRM"
235 make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=<certificate file> QT_SIS_KEY=<certificate key file>
236 cd ..\3rdparty\webkit\WebCore
237 patch_capabilities.pl QtWebKit_template.pkg release-armv5 "ALL -Tcb -AllFiles -DRM"
238 make sis QT_SIS_OPTIONS=-i QT_SIS_CERTIFICATE=<certificate file> QT_SIS_KEY=<certificate key file>
239 //! [35]
240
241 //! [36]
242 EPOCROOT=/home/user/s60-sdk/
243 export EPOCROOT
244 //! [36]
245
246 //! [37]
247 PATH=/home/user/qt/%VERSION%/bin:$EPOCROOT/epoc32/tools:$PATH
248 export PATH
249 //! [37]
250
251 //! [38]
252 cd /home/user/qt/%VERSION%
253 ./configure -platform linux-g++ -xplatform symbian-armcc
254 //! [38]
255
256 //! [39]
257 cd /home/user/qt/%VERSION%
258 ./configure -platform linux-g++ -xplatform symbian-gcce -no-webkit
259 //! [39]
260
261 //! [40]
262 make
263 //! [40]
264
265 //! [41]
266 cd src
267 make sis
268 //! [41]
269
270 //! [42]
271 cd src/s60installs
272 patch_capabilities.pl Qt_template.pkg - "ALL -Tcb -AllFiles -DRM"
273 make sis QT_SIS_CERTIFICATE=<certificate file> QT_SIS_KEY=<certificate key file>
274 cd ../3rdparty/webkit/WebCore
275 patch_capabilities.pl QtWebKit_template.pkg - "ALL -Tcb -AllFiles -DRM"
276 make sis QT_SIS_CERTIFICATE=<certificate file> QT_SIS_KEY=<certificate key file>
277 //! [42]
278
279 //! [43]
280 lsusb
281 //! [43]
282
283 //! [44]
284 sudo rmmod usbserial
285 sudo modprobe usbserial vendor=0x0XXX product=0x0XXX
286 //! [44]
287
288 //! [45]
289 $ qmake -version
290 QMake version 2.01a
291 Using Qt version 4.6.2 in /usr/lib/qt4
292 //! [45]
293
294 //! [46]
295 cd $HOME/runonphone
296 qmake
297 make
298 //! [46]
299
300 //! [47]
301 runonphone -s lib/Qt.sis
302 //! [47]
303
304 //! [runonphone with device file path]
305 runonphone -s lib/Qt.sis -p /dev/ttyUSB1
306 //! [runonphone with device file path]
307
308 //! [48]
309 cd demos/embedded/fluidlauncher
310 runonphone -s fluidlauncher.sis fluidlauncher.exe
311 //! [48]
312
313 //! [make runonphone with options]
314 make runonphone "QT_RUN_ON_PHONE_OPTIONS=-p /dev/ttyUSB1"
315 //! [make runonphone with options]
316
317 //! [make runonphone with preset environment variable]
318 export QT_RUN_ON_PHONE_OPTIONS="-p /dev/ttyUSB1"
319 make runonphone
320 //! [make runonphone with preset environment variable]
321
322 //! [49]
323 cd myapp
324 qmake
325 make
326 make sis
327 runonphone -s myapp.sis myapp.exe
328 //! [49]
329
330 //! [50]
331 src/s60installs/sqlite3.sis
332 $EPOCROOT/nokia_plugin/openc/s60opencsis/openc_ssl_s60_1_6_ss.sis
333 $EPOCROOT/nokia_plugin/openc/s60opencsis/pips_s60_1_6_ss.sis
334 $EPOCROOT/nokia_plugin/opencpp/s60opencppsis/stdcpp_s60_1_6_ss.sis
335 //! [50]
336
337