Qt static compilation and qt static Compilation
Compile Parameters
Configure-confirm-license-opensource-developer-build-static-prefix D: \ libraries \ Qt5.3.1s-mp-platform win32-msvc2013-opengl desktop-no-angle-nomake examples-nomake tests-no-icu-no-openssl-qt-libjpeg-qt-libpng-no -plugin-manifests-skip qtwebkit-skip qtdeclarative
For static compiled Qt, there are many link libraries:
Debug:
Qtmaind. lib
Qt5Cored. lib
Qt5Guid. lib
Qt5Widgetsd. lib
WS2_32.LIB
Imm32.lib
Winmm. lib
Opengl32.lib
Qwindowsd. lib
Qt5PlatformSupportd. lib
Release:
Qtmain. lib
Qt5Core. lib
Qt5Gui. lib
Qt5Widgets. lib
WS2_32.LIB
Imm32.lib
Qwindows. lib
Winmm. lib
Opengl32.lib
Qt5PlatformSupport. lib
In addition, you need to add the following code in the code to link qwindows.
# Include <QtPlugin>
Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin );
Otherwise.
Can't load plugin qwindows runtime error.
_ Wsaayncselect link error.
Qfontbase link error.