I want to use the static build of Qt 5.4. Since there is no precompiled static assembly, you must create it yourself from the Qt source code.
My surroundings are as follows:
- Windows 7 x64
- Visual Studio 2013 Ultimate Update 4
- Qt5 Visual Studio Add-in 1.2.4
- ActivePerl / ActivePython installed (required to create a Qt source)
My procedure was as follows (see Qt Documentation> Qt 5.4> Qt for Windows - Create from Source):
- Download qt-everywhere-opensource-src-5.4.0.zip
- Extract to temporary folder
- Open a command prompt as described here (basically it is like "Visual Studio Command Prompt" and adding some paths to the path variable)
Run configure with the following command
configure -c++11 -mp -release -static -nomake tests -nomake examples -prefix D:\Qt\qt-5.4.0-x86-msvc2013-compact-static -platform win32-msvc2013 -opengl desktop -no-icu -skip webkit
Run nmakeandnmake install
All this is done without errors.
Then in Visual Studio, I changed the Qt version of the existing Qt project to D:\Qt\qt-5.4.0-x86-msvc2013-compact-static, because it was the output folder of the above procedure.
However, now I get a lot of unresolved symbolic errors of the following form (build configuration "release"):
error LNK2001: unresolved external symbol "__imp__glBindTexture@8". Qt5Gui.lib(qopenglfunctions.obj)
...
error LNK2001: unresolved external symbol "_hb_blob_create". Qt5Gui.lib(qharfbuzzng.obj)
...
error LNK2001: unresolved external symbol "_hb_face_create_for_tables". Qt5Gui.lib(qharfbuzzng.obj)
....
error LNK2001: unresolved external symbol "_WSAAsyncSelect@16". Qt5Core.lib(qeventdispatcher_win.obj)
A shared library / dynamic linking with similar parameters ( -platform win32-msvc2013 -opengl desktop -no-icu -skip webkit) works fine.
What am I doing wrong?
January 6th update:
1) , Qt, (QTBUG-43636), , , (QTBUG-38913). (, 2 )
2) ( karlphillip), , Visual Studio
Ws2_32.lib ( 103)opengl32.lib 47
, " 55 . , ?