/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
**   * Redistributions of source code must retain the above copyright
**     notice, this list of conditions and the following disclaimer.
**   * Redistributions in binary form must reproduce the above copyright
**     notice, this list of conditions and the following disclaimer in
**     the documentation and/or other materials provided with the
**     distribution.
**   * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
**     of its contributors may be used to endorse or promote products derived
**     from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/

//! [0]
cd /tmp
gunzip qt-everywhere-opensource-src-5.2.0.tar.gz        # uncompress the archive
tar xvf qt-everywhere-opensource-src-5.2.0.tar          # unpack it
//! [0]


//! [1]
cd /tmp/qt-everywhere-opensource-src-5.2.0
./configure
//! [1]


//! [2]
make
//! [2]


//! [3]
make install
//! [3]


//! [4]
PATH               - to locate qmake, moc and other Qt tools
//! [4]


//! [5]
PATH=/usr/local/Qt-5.2.0/bin:$PATH
export PATH
//! [5]


//! [6]
setenv PATH /usr/local/Qt-5.2.0/bin:$PATH
//! [6]


//! [7]
PATH               - to locate qmake, moc and other Qt tools
//! [7]


//! [8]
C:
cd /D C:\Qt\5.2.0
configure
//! [8]


//! [9]
configure -platform win32-msvc
//! [9]


//! [10]
nmake
//! [10]


//! [11]
cd /tmp
gunzip qt-everywhere-opensource-src-5.2.0.tar.gz        # uncompress the archive
tar xvf qt-everywhere-opensource-src-5.2.0.tar          # unpack it
//! [11]


//! [12]
cd /tmp/qt-everywhere-opensource-src-5.2.0
./configure
//! [12]


//! [13]
make
//! [13]


//! [14]
sudo make -j1 install
//! [14]


//! [15]
PATH               - to locate qmake, moc and other Qt tools
//! [15]


//! [16]
PATH=/usr/local/Qt-5.2.0/bin:$PATH
export PATH
//! [16]


//! [17]
setenv PATH /usr/local/Qt-5.2.0/bin:$PATH
//! [17]


//! [18]
PATH               - to locate qmake, moc and other Qt tools
//! [18]


//! [19]
C:
cd \Qt\5.2.0
configure -platform -xplatform wincewm70customsdk-msvc2008
//! [19]


//! [20]
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
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
set PATH=C:\Program Files\Microsoft Visual Studio 8\VC\ce\bin\x86_arm;%PATH%
//! [20]


//! [21]
setcepaths wincewm50pocket-msvc2005
//! [21]


//! [22]
nmake
nmake install
//! [22]


//! [23]
//! [23]


//! [24]
//! [24]

//! [25]
cd examples
qmake
make
//! [25]

//! [27]
make run
//! [27]

//! [28]
make release-armv5
//! [28]

//! [29]
//! [29]

//! [30]
//! [30]

//! [31]
//! [31]

//! [32]
//! [32]

//! [33]
//! [33]

//! [34]
//! [34]

//! [35]
//! [35]

//! [36]
//! [36]

//! [37]
//! [37]

//! [38]
//! [38]

//! [39]
//! [39]

//! [40]
make
//! [40]

//! [41]
//! [41]

//! [42]
//! [42]

//! [43]
lsusb
//! [43]

//! [44]
sudo rmmod usbserial
sudo modprobe usbserial vendor=0x0XXX product=0x0XXX
//! [44]

//! [45]
$ qmake -version
QMake version 3.0
Using Qt version 5.0.0 in /usr/lib/qt5
//! [45]

//! [46]
//! [46]

//! [47]
//! [47]

//! [runonphone with device file path]
//! [runonphone with device file path]

//! [48]
//! [48]

//! [make runonphone with options]
//! [make runonphone with options]

//! [make runonphone with preset environment variable]
//! [make runonphone with preset environment variable]

//! [49]
//! [49]

//! [50]
//! [50]


