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

ProtobufQuick missing when building QT 6.8 from source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 6.8.0 Beta3
    • None
    • Linux/Wayland

    Description

      CMake Error at src/NextAppUi/CMakeLists.txt:47 (find_package):
      [cmake]   Found package configuration file:
      [cmake] 
      [cmake]     /opt/qt-static/lib/cmake/Qt6/Qt6Config.cmake
      [cmake] 
      [cmake]   but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      [cmake]   FOUND.  Reason given by package:
      [cmake] 
      [cmake]   Failed to find required Qt component "ProtobufQuick".
      [cmake] 
      [cmake]   Expected Config file at
      [cmake]   "/opt/qt-static/lib/cmake/Qt6ProtobufQuick/Qt6ProtobufQuickConfig.cmake"
      [cmake]   does NOT exist

      From CmakeLists.txt:
      {{}}

      find_package(Qt6 6.7 REQUIRED COMPONENTS Core Gui Quick QuickControls2 Svg Test Grpc Concurrent Test Multimedia)if(Qt6Core_VERSION VERSION_LESS "6.8.0")
          message("Using an old QT version. 6.8 is required for the current grpc plugin")
          find_package(Qt6 6.8 REQUIRED COMPONENTS Protobuf)
      else ()
          find_package(Qt6 6.8 REQUIRED COMPONENTS ProtobufQuick)
          set (PROTOBUF_QML_DEPENDENCY Qt::ProtobufQuick)
      endif()

      CMakeLists.txt that fails: https://github.com/jgaa/next-app/blob/6f277f01e340c3f4cfed7a1226e5085e266f7cb5/src/NextAppUi/CMakeLists.txt

      Note that the same error occur when compiling for Android with QT 6.8 beta 3. See https://bugreports.qt.io/browse/QTBUG-126383

      Building with Qt 6.8 beta 2/3 for Desktop (Linux, MacOS, Windows) work fine using QT downloaded with }}the "QT Maintenance Tool". {{

      Attachments

        1. cmake-log-and-config.tar.gz
          1.94 MB
          Jarle Aase
        2. qt-build-logfile.tar.gz
          329 kB
          Jarle Aase
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            semlanik Alexey Edelev
            jgaa Jarle Aase
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes