Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.1
-
None
-
19588b81d (dev), ff954e39c (6.5), 14a999430 (6.6), b028d7499 (dev), 593bbf54d (6.5), bc90fcb4a (6.6)
Description
If a developer installs all available Qt 6.5.1 packages from Qt online installer (including the grpc checkbox), and then has a project that does
find_package(Qt6 COMPONENTS Grpc)
the call can fail with
CMake Warning at /Volumes/T3/Dev/qt/official/6.5.1/macos/lib/cmake/Qt6/Qt6Config.cmake:157 (find_package): Found package configuration file: /Volumes/T3/Dev/qt/official/6.5.1/macos/lib/cmake/Qt6Grpc/Qt6GrpcConfig.cmake but it set Qt6Grpc_FOUND to FALSE so package "Qt6Grpc" is considered to be NOT FOUND. Reason given by package: Qt6Grpc could not be found because dependency WrapgRPC could not be found
This happens if the system does not have a system-wide grpc library installed.
Qt installer also doesn't ship the library (like we do with icu for example).
And if a system library is installed, it might cause even a worse issue if it is incompatible with the version that Qt was built against, because the grpc library does not provide abi compatibility guarantees.
Either Qt needs to ship the 3rd party library, or QtGrpc needs to be changed not to depend on the library by default, and instead be behind a feature flag.
Attachments
Issue Links
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-115055 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
489502,8 | Exclude native grpc channels from the Qt packaging configurations | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
489597,8 | Disable native_grpc feature for "Packaging" platforms | dev | qt/qt5 | Status: MERGED | +2 | 0 |
489669,2 | Exclude native grpc channels from the Qt packaging configurations | 6.6 | qt/qtgrpc | Status: MERGED | +2 | 0 |
489670,3 | Exclude native grpc channels from the Qt packaging configurations | 6.5 | qt/qtgrpc | Status: MERGED | +2 | 0 |
492148,4 | Disable native_grpc feature for "Packaging" platforms | 6.5 | qt/qt5 | Status: MERGED | +2 | 0 |
492149,4 | Disable native_grpc feature for "Packaging" platforms | 6.6 | qt/qt5 | Status: MERGED | +2 | 0 |