/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, 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 The Qt Company Ltd 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-%VERSION%.tar.gz        # uncompress the archive
tar xvf qt-everywhere-opensource-src-%VERSION%.tar          # unpack it
//! [0]


//! [1]
cd /tmp/qt-everywhere-opensource-src-%VERSION%
./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-%VERSION%/bin:$PATH
export PATH
//! [5]


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


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


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


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


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


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


//! [12]
cd /tmp/qt-everywhere-opensource-src-%VERSION%
./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-%VERSION%/bin:$PATH
export PATH
//! [16]


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


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

//! [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]


