2012-02-15 12:24:54 +01:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
2014-06-03 14:42:58 +02:00
|
|
|
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
2012-12-21 10:31:17 +01:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
2012-02-15 12:24:54 +01:00
|
|
|
**
|
2012-12-21 10:31:17 +01:00
|
|
|
** This file is part of the Qt Installer Framework.
|
2012-02-15 12:24:54 +01:00
|
|
|
**
|
2012-12-21 10:31:17 +01:00
|
|
|
** $QT_BEGIN_LICENSE:FDL$
|
|
|
|
** 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 Digia. For licensing terms and
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
2012-02-15 12:24:54 +01:00
|
|
|
**
|
2012-12-21 10:31:17 +01:00
|
|
|
** GNU Free Documentation License Usage
|
2012-02-15 12:24:54 +01:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Free
|
|
|
|
** Documentation License version 1.3 as published by the Free Software
|
2012-12-21 10:31:17 +01:00
|
|
|
** Foundation and appearing in the file included in the packaging of
|
|
|
|
** this file. Please review the following information to ensure
|
|
|
|
** the GNU Free Documentation License version 1.3 requirements
|
|
|
|
** will be met: http://www.gnu.org/copyleft/fdl.html.
|
|
|
|
** $QT_END_LICENSE$
|
2012-02-15 12:24:54 +01:00
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\contentspage {index.html}{Qt Installer Framework}
|
2013-02-21 14:10:01 +01:00
|
|
|
\previouspage ifw-overview.html
|
2012-02-15 12:24:54 +01:00
|
|
|
\page ifw-getting-started.html
|
2013-02-21 14:10:01 +01:00
|
|
|
\nextpage ifw-use-cases.html
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
\title Getting Started
|
|
|
|
|
2014-06-04 17:22:54 +02:00
|
|
|
Qt Installer Framework is developed as part of the Qt project. The
|
|
|
|
framework itself uses Qt. However, it can be used to install all kind of
|
|
|
|
applications, including (but not limited to) applications built with Qt.
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
\section1 Supported Platforms
|
|
|
|
|
|
|
|
You can use the Qt Installer Framework to create installers for all
|
|
|
|
platforms supported by
|
2013-04-30 11:47:06 +02:00
|
|
|
\l{http://qt-project.org/doc/qt-5.0/qtdoc/platform-details.html}
|
2012-02-15 12:24:54 +01:00
|
|
|
{desktop Qt}.
|
|
|
|
|
|
|
|
The installers have been tested on the following platforms:
|
|
|
|
|
|
|
|
\list
|
2014-06-16 14:26:12 +02:00
|
|
|
\li Microsoft Windows XP, and later
|
|
|
|
\li Ubuntu Linux 8.04, and later
|
2014-06-17 12:54:22 +02:00
|
|
|
\li OS X 10.6, and later
|
2012-02-15 12:24:54 +01:00
|
|
|
\endlist
|
|
|
|
|
2014-06-04 17:22:54 +02:00
|
|
|
\section1 Building from Sources
|
2012-02-15 12:24:54 +01:00
|
|
|
|
2014-06-04 17:22:54 +02:00
|
|
|
The following steps describe how to build the Qt Installer Framework
|
|
|
|
yourself. You can skip this if you have downloaded a pre-built version
|
|
|
|
of the framework.
|
2012-02-15 12:24:54 +01:00
|
|
|
|
2014-06-04 17:22:54 +02:00
|
|
|
\section2 Configuring Qt
|
|
|
|
|
|
|
|
If you use a statically built Qt to build the Qt Installer Framework
|
|
|
|
you do not have to deliver Qt libraries, which enables you to distribute
|
|
|
|
installers as one file.
|
|
|
|
|
|
|
|
\section3 Configuring Qt for Windows
|
2012-02-15 12:24:54 +01:00
|
|
|
|
2012-11-13 17:02:19 +01:00
|
|
|
Before running configure you should tweak Qt to statically link in the C
|
|
|
|
runtime library. This can be done by changing the default mkspec of
|
|
|
|
your compiler.
|
|
|
|
|
|
|
|
If you are using e.g. the Microsoft Visual Studio 2010 compiler, you edit
|
2013-02-05 14:12:04 +01:00
|
|
|
\c{mkspecs\win32-msvc2010\qmake.conf} and replace in the CFLAGS sections
|
2012-11-13 17:02:19 +01:00
|
|
|
'-MD' with '-MT'. Furthermore you should remove 'embed_manifest_dll'
|
|
|
|
and 'embed_manifest_exe' from CONFIG:
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
\code
|
|
|
|
CONFIG += qt warn_on release incremental flat link_prl precompile_header autogen_precompile_source copy_dir_files debug_and_release debug_and_release_target
|
2012-11-13 17:02:19 +01:00
|
|
|
# ..
|
2012-02-15 12:24:54 +01:00
|
|
|
QMAKE_CFLAGS_RELEASE = -O2 -MT
|
|
|
|
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi
|
|
|
|
QMAKE_CFLAGS_DEBUG = -Zi -MTd
|
|
|
|
\endcode
|
|
|
|
|
|
|
|
We recommend that you use the following options when you configure Qt for
|
|
|
|
Windows:
|
|
|
|
|
|
|
|
\code
|
2014-07-01 14:38:47 +02:00
|
|
|
configure -prefix %CD%\qtbase -release -static -target xp -accessibility -no-opengl -no-icu -no-sql-sqlite -no-qml-debug -nomake examples -nomake tests -skip qtactiveqt -skip qtenginio -skip qtlocation -skip qtmultimedia -skip qtserialport -skip qtquick1 -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtwebkit -skip qtwebsockets -skip qtxmlpatterns
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
\endcode
|
|
|
|
|
2014-06-30 15:03:32 +02:00
|
|
|
\section3 Configuring Qt for Linux
|
2012-02-15 12:24:54 +01:00
|
|
|
|
2014-06-30 15:03:32 +02:00
|
|
|
We recommend that you use the following configuration options for Linux:
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
\code
|
2014-07-01 14:38:47 +02:00
|
|
|
configure -prefix $PWD/qtbase -release -static -accessibility -qt-zlib -qt-libpng -qt-libjpeg -qt-xcb -no-cups -no-sql-sqlite -no-qml-debug -no-opengl -nomake examples -nomake tests -skip qtactiveqt -skip qtenginio -skip qtlocation -skip qtmultimedia -skip qtserialport -skip qtquick1 -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtwebkit -skip qtwebsockets -skip qtxmlpatterns
|
2014-06-30 15:03:32 +02:00
|
|
|
\endcode
|
|
|
|
|
|
|
|
\section3 Configuring Qt for OS X
|
|
|
|
|
|
|
|
We recommend that you use the following configuration options for OS X:
|
|
|
|
|
|
|
|
\code
|
2014-07-01 14:38:47 +02:00
|
|
|
configure -prefix $PWD/qtbase -release -static -accessibility -qt-zlib -qt-libpng -qt-libjpeg -no-cups -no-sql-sqlite -no-qml-debug -nomake examples -nomake tests -skip qtactiveqt -skip qtenginio -skip qtlocation -skip qtmultimedia -skip qtserialport -skip qtquick1 -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtwebkit -skip qtwebsockets -skip qtxmlpatterns
|
2012-02-15 12:24:54 +01:00
|
|
|
\endcode
|
|
|
|
|
2014-06-04 17:22:54 +02:00
|
|
|
\section2 Setting up Qt Installer Framework
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
2014-06-16 14:26:12 +02:00
|
|
|
\li Clone the Qt Installer Framework source code from
|
2013-05-23 12:28:21 +02:00
|
|
|
\l{http://gitorious.org/installer-framework}
|
2012-02-15 12:24:54 +01:00
|
|
|
to get the sources for the tools.
|
|
|
|
|
2014-06-16 14:26:12 +02:00
|
|
|
\li Build the tools by running the "qmake" from the static Qt, followed by "make" or "nmake".
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
\note To contribute patches to Qt Installer Framework, follow the standard
|
|
|
|
Qt processes and guidelines. For more information, see
|
|
|
|
\l{http://qt-project.org/}{Contribute to the Qt Project}.
|
|
|
|
|
|
|
|
*/
|