Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.13.0 Alpha 1, 5.13.0 Beta2, 5.13.0 Beta3
-
Visual Studio 2015 and 2017.
CMake 3.13.0
-
-
ba4fdd99fff80790f764ab1ac8addd699e3101e7 1d5f9fcc8a14e4826943a913fe22e819a0837b80 (qt/qtbase/wip/qt6) 90aefe0843a50aede26b8d411f46f3828dae25f1
Description
CMake project file generation for ActiveQt projects have started failing with Qt 5.13.0 alpha 1 dated 2019-01-22. This problem does not occur with Qt 5.12.1.
CMake Error at C:/Qt/5.13.0/msvc2017_64/lib/cmake/Qt5AxBase/Qt5AxBaseConfig.cmake:52 (message): Library not found: ole32 Call Stack (most recent call first): C:/Qt/5.13.0/msvc2017_64/lib/cmake/Qt5AxBase/Qt5AxBaseConfig.cmake:175 (_qt5_AxBase_process_prl_file) C:/Qt/5.13.0/msvc2017_64/lib/cmake/Qt5AxServer/Qt5AxServerConfig.cmake:143 (find_package) C:/Qt/5.13.0/msvc2017_64/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package) host/AppSandbox/CMakeLists.txt:62 (find_package)
Observed difference:
The QMAKE_PRL_LIBS entries for linking to system libraries in Qt5AxBase.prl have changed from "-lole32" in Qt 5.12.1 to -lole32 (without quotes) in Qt 5.13.0 alpha1.
There's no recent CMake changes in the ActiveQt repo, so I suspect that this is primarily a CMake issue.
Steps to reproduce:
- Download precompiled Qt 5.13.0 alpha1 binaries dated 2019-01-22 from MaintenanceTool. Chose either the msvc2015_64 or msvc2017_64 binaries.
- Clone https://github.com/forderud/Qt-CMake-HelloWorld/tree/5.13-cmake and switch to the 5.13-cmake branch
- Run Build.bat
- Observe Library not found: ole32 error from CMake.
Attachments
Issue Links
- is required for
-
QTBUG-76244 Generated Qt5UiToolsConfig.cmake is broken
- Closed
- resulted from
-
QTBUG-38913 Can't link against static Qt5 (missing usage requirements for static libs wrt harfbuzz/glib/others)
- Closed
For Gerrit Dashboard: QTBUG-73475 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
256493,2 | Handle quotes in .prl files | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |
259710,1 | Remove explicit linking to system libraries for MSVC generator | 5.13 | qt/qtactiveqt | Status: ABANDONED | -1 | 0 |
259963,3 | CMake: Ignore CMAKE_CXX_STANDARD_LIBRARIES in .prl files | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |
262935,13 | Add quoting to deal with empty ${CMAKE_CXX_STANDARD_LIBRARIES} | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |
263770,2 | CMake: Ignore CMAKE_CXX_STANDARD_LIBRARIES in .prl files | 5.13 | qt/qtbase | Status: ABANDONED | 0 | 0 |