Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115055

Qt6Grpc package depends on system WrapgRPC to be found and be compatible

    XMLWordPrintable

Details

    • 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

          For Gerrit Dashboard: QTBUG-115055
          # Subject Branch Project Status CR V

          Activity

            People

              semlanik Alexey Edelev
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: