diff options
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 |