4
0
mirror of https://github.com/QuasarApp/installer-framework.git synced 2025-05-13 21:39:33 +00:00
Kai Koehne e2f3e32fa2 Drop '-no-opengl' Qt configure argument for OS X
Compilation for -no-opengl on Mac OS X only got fixed in 5.4, qtbase
commit a12ba316161b23b .

Change-Id: I74d2cfd6b42c673ee72fbd4977eda92a82618748
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2014-07-01 14:02:27 +02:00

78 lines
2.8 KiB
Plaintext

How to build
=====================
The instructions should help you build the Installer Framework from scratch.
Get the sources
---------------------
Use Git to check out the Qt Installer Framework sources that are hosted at:
http://qt.gitorious.org/installer-framework
Build a static Qt
---------------------
Building the Qt Installer Framework from sources requires Qt (version 5.3.0
or newer). If you want to ship your installer as a single file you have to build
Qt and the Qt Installer Framework statically.
See the Qt documentation for the prerequisites and steps to build Qt from sources.
### Windows
Adjust the qmake.conf to have a real stand alone working installer:
- remove 'embed_manifest_dll embed_manifest_exe' from CONFIG line
- replace -MD, -MDd with -MT, -MTD in the CFLAGS lines
'git diff' should show you something like:
--- a/mkspecs/win32-msvc20XX/qmake.conf
+++ b/mkspecs/win32-msvc20XX/qmake.conf
MAKEFILE_GENERATOR = MSVC.NET
TEMPLATE = app
-CONFIG += qt warn_on release incremental flat link_prl precompile_header autogen_precompile_source copy_dir_files debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
+CONFIG += qt warn_on release incremental flat link_prl precompile_header autogen_precompile_source copy_dir_files debug_and_release debug_and_release_target
QT += core gui
DEFINES += UNICODE WIN32 QT_LARGEFILE_SUPPORT
QMAKE_COMPILER_DEFINES += _MSC_VER=1400 WIN32
QMAKE_YACCFLAGS = -d
QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t-
QMAKE_CFLAGS_WARN_ON = -W3
QMAKE_CFLAGS_WARN_OFF = -W0
-QMAKE_CFLAGS_RELEASE = -O2 -MD
-QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi
-QMAKE_CFLAGS_DEBUG = -Zi -MDd
+QMAKE_CFLAGS_RELEASE = -O2 -MT
+QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi
+QMAKE_CFLAGS_DEBUG = -Zi -MTd
QMAKE_CFLAGS_YACC =
QMAKE_CFLAGS_LTCG = -GL
Recommended configure options for Microsoft Windows:
configure -prefix %CD%\qtbase -release -static -target xp -no-opengl -no-icu -nomake examples -nomake tests -skip qtactiveqt -skip qtlocation -skip qtscript -skip qtsensors
### Linux
Recommended configure options for Linux:
configure -prefix $PWD/qtbase -release -static -accessibility -qt-zlib -qt-libpng -qt-libjpeg -qt-xcb -no-opengl -nomake examples -nomake tests -developer-build -skip qtquick1 -skip qtscript -skip qtlocation
### OS X
Recommended configure options for OS X:
configure -prefix $PWD/qtbase -release -static -accessibility -qt-zlib -qt-libpng -qt-libjpeg -nomake examples -nomake tests -developer-build -skip qtquick1 -skip qtscript -skip qtlocation
Build the Framework
---------------------
Run 'qmake && make' (or 'mingw32-make', 'nmake' ...) to build the Qt Installer
Framework. The documentation can be generated by 'make docs'.