diff options
author | Kai Koehne <kai.koehne@digia.com> | 2012-11-13 17:02:19 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2012-11-15 12:49:05 +0100 |
commit | 33591ba07a0d8b89c154ca8e807db1d058da105f (patch) | |
tree | dc3ef369439d41daf4b484f54f4f86336bf8fa11 /doc | |
parent | 207cfebb778b77bc5308189d8e3a8d34019f1c72 (diff) |
GettingStarted: Update section about changed qmake.conf
The old qmake.conf didn't work any more with qt 4.8.4.
Change-Id: Id6155af604da27aced567413a4890b6c8c895dd5
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/installerfw-getting-started.qdoc | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/doc/installerfw-getting-started.qdoc b/doc/installerfw-getting-started.qdoc index 70ccbb164..05b7901cc 100644 --- a/doc/installerfw-getting-started.qdoc +++ b/doc/installerfw-getting-started.qdoc @@ -54,31 +54,28 @@ \section2 Configuring Qt for Windows - Specify the following settings in the qmake.conf configuration file: + 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 + mkspecs\win32-msvc2010\qmake.conf and replace in the CFLAGS sections + '-MD' with '-MT'. Furthermore you should remove 'embed_manifest_dll' + and 'embed_manifest_exe' from CONFIG: \code - 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 - 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 -MT QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi QMAKE_CFLAGS_DEBUG = -Zi -MTd - QMAKE_CFLAGS_YACC = - QMAKE_CFLAGS_LTCG = -GL \endcode We recommend that you use the following options when you configure Qt for Windows: \code - configure.exe -platform win32-msvc20XX -release -static -no-webkit -no-phonon -no-dbus -no-opengl -no-qt3support -no-xmlpatterns -no-multimedia -no-declarative -nomake examples -nomake demos -qt-sql-sqlite -plugin-sql-sqlite -opensource + configure.exe -release -static -no-webkit -no-phonon -no-dbus -no-opengl -no-qt3support -no-xmlpatterns -no-multimedia -no-declarative -nomake examples -nomake demos -qt-sql-sqlite -plugin-sql-sqlite -opensource \endcode \section2 Configuring Qt for Linux and Mac OS X |