Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.14.0
-
None
-
-
78a6b807195b5dee50f5f6b2e1a86f49af60cb39 (qt/qtbase/5.14)
Description
Trying to build simple application generated in Qt Creator using template "Qt Widgets Application" with choosen CMake build system fails at link stage when using Qt being statically cross-compiled for mingw.
It outputs lots of "undefined reference" errors.
The reason is improperly generated Qt5<MODULE>Config.cmake files containing wrong paths to modules .prl files, where CMAKE_PRL_FILE_LOCATION_* values populated by qtbase/mkspecs/features/create_cmake.prf contains prefix "lib" in base filename.
Fixing their definitions for mingw platform resolves issue. Not sure about other platfrom variants, which may be broken too.
Attachments
Issue Links
- relates to
-
QTBUG-38913 Can't link against static Qt5 (missing usage requirements for static libs wrt harfbuzz/glib/others)
- Closed
For Gerrit Dashboard: QTBUG-81401 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
286837,3 | Fix win32 support for linking against static builds in CMake | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |