Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.13.1
-
Visual Studio 2015 (64bit) & 2017 (64bit)
Description
Building of CMake-based projects relying on static Qt libraries are broken in 5.13.1. Symptoms:
>LINK : warning LNK4044: unrecognized option '/lole32'; ignored >LINK : warning LNK4044: unrecognized option '/loleaut32'; ignored >LINK : warning LNK4044: unrecognized option '/luser32'; ignored >LINK : warning LNK4044: unrecognized option '/lgdi32'; ignored >LINK : warning LNK4044: unrecognized option '/lQt5Cored'; ignored >LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
The problem seem to be related to QMAKE_PRL_LIBS_FOR_CMAKE in the following .prl files:
- Qt5AxBase[d].prl
- Qt5AxContainer[d].prl
- Qt5AxServer[d].prl
- Qt5Bootstrap[d].prl
- Qt5FontDatabaseSupport[d].prl
- qtmain[d].prl
Example from Qt5AxBase.prl:
QMAKE_PRL_LIBS_FOR_CMAKE = -lQt5Core;C:\\Program Files (x86)\\Windows -lole32;C:\\Program Files (x86)\\Windows -loleaut32;C:\\Program Files (x86)\\Windows -luser32;C:\\Program Files (x86)\\Windows -lgdi32;C:\\Program Files (x86)\\Windows -ladvapi32;;
As you can see, there's something wrong with the Windows path. This seem to be related to https://codereview.qt-project.org/c/qt/qtbase/+/265731
Attachments
Issue Links
- relates to
-
QBS-1492 Cannot link Qt 5.13.1-application, corrupt command line containing '-lQt5Core;-lpthread;'
- Closed
-
QTBUG-76337 [REG 5.12-5.13] CMake release builds link to Qt debug LIBs
- Closed
-
QTBUG-38913 Can't link against static Qt5 (missing usage requirements for static libs wrt harfbuzz/glib/others)
- Closed
-
QTBUG-78120 cmake for static build
- Closed