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

configure fails with "PROTO_FILES list is empty"

    XMLWordPrintable

Details

    • b839d2d75 (dev), 1b33f1c4a (6.5), c278ca01f (6.6)

    Description

      • GIVEN the following config.opt:
        -opensource
        -confirm-license
        -debug
        -force-debug-info
        -separate-debug-info
        -c++std
        c++17
        -developer-build
        -nomake
        examples
        --webengine-jumbo-build=20
        -webengine-proprietary-codecs
        -sctp
        
      • WHEN running configure -redo
      • THEN I get the error:
        -- Configuring submodule 'qtgrpc'
        -- [QtGrpc] CMAKE_BUILD_TYPE was set to: 'Debug'
        -- [QtGrpc] Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-pthread (found version "3.6.1") 
        -- [QtGrpc] Performing Test HAVE_libprotobuf
        -- [QtGrpc] Performing Test HAVE_libprotobuf - Success
        -- [QtGrpc] Performing Test HAVE_libprotoc
        -- [QtGrpc] Performing Test HAVE_libprotoc - Success
        -- [QtGrpc] Running syncqt.cpp for module: QtProtobuf
        -- [QtGrpc] Running syncqt.cpp for module: QtGrpc
        -- [QtGrpc] Tool 'Qt6::qtprotobufgen' will be built from source.
        -- [QtGrpc] Tool 'Qt6::qtgrpcgen' will be built from source.
        -- [QtGrpc] No messages or enums found in /usr/include/google/protobuf/timestamp.proto. Skipping.
        CMake Error at qtgrpc/src/tools/qtprotobufgen/Qt6ProtobufToolsMacros.cmake:67 (message):
          PROTO_FILES list is empty.
        Call Stack (most recent call first):
          qtgrpc/src/tools/qtprotobufgen/Qt6ProtobufToolsMacros.cmake:365 (_qt_internal_protoc_generate)
          qtgrpc/src/wellknown/Qt6ProtobufWellKnownTypesBuildInternals.cmake:32 (qt6_add_protobuf)
          qtgrpc/src/wellknown/CMakeLists.txt:15 (qt_internal_add_protobuf_wellknown_types)
        
        
        -- Configuring incomplete, errors occurred!
        

      This is curious:

      $ ls -l /usr/include/google/protobuf/timestamp.proto.
      /usr/include/google/protobuf/timestamp.proto: no such file or directory
      $ dpkg -l | grep -iE 'protobuf|grpc'
      ii  libgrpc++-dev:amd64                           1.16.1-1ubuntu5                             amd64        high performance general RPC framework (development)
      ii  libgrpc++1:amd64                              1.16.1-1ubuntu5                             amd64        high performance general RPC framework
      ii  libgrpc-dev:amd64                             1.16.1-1ubuntu5                             amd64        high performance general RPC framework (development)
      ii  libgrpc6:amd64                                1.16.1-1ubuntu5                             amd64        high performance general RPC framework
      ii  libprotobuf-dev:amd64                         3.6.1.3-2ubuntu5.2                          amd64        protocol buffers C++ library (development files) and proto files
      ii  libprotobuf-lite17:amd64                      3.6.1.3-2ubuntu5.2                          amd64        protocol buffers C++ library (lite version)
      ii  libprotobuf17:amd64                           3.6.1.3-2ubuntu5.2                          amd64        protocol buffers C++ library
      ii  protobuf-compiler                             3.6.1.3-2ubuntu5.2                          amd64        compiler for protocol buffer definition files
      ii  protobuf-compiler-grpc                        1.16.1-1ubuntu5                             amd64        high performance general RPC framework - protobuf plugin
      ii  python3-protobuf                              3.6.1.3-2ubuntu5.2                          amd64        Python 3 bindings for protocol buffers
      

      If I'm missing a package, then configure should tell me, not run into seemingly-unrelated errors...

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes