Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. In gRPC and protobuf modules how to specify the installation path
Forum Updated to NodeBB v4.3 + New Features

In gRPC and protobuf modules how to specify the installation path

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 661 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JohnGa
    wrote on last edited by JohnGa
    #1

    Hello,
    I am trying to use the new gRPC framework in Qt. The documentation is found here:
    https://doc.qt.io/qt-6/qtgrpc-index.html

    In the module pre-requisites, it looks like gRPC and protobuf need to be installed. How do I tell cmake where to find the gRPC and protobuf installation?

    When I try to import the included gRPC examples that came with 6.5.0, QtCreator throws this error and does NOT import the project:

    CMake Warning at /Applications/Qt/6.5.0/macos/lib/cmake/Qt6/Qt6Config.cmake:157 (find_package):
      Found package configuration file:
    
        /Applications/Qt/6.5.0/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.
    

    I can't seem to find any notes on WrapgRPC anywhere. Enabling find package debugging also does not give any useful pointers.

    Thanks.

    semlanikS 1 Reply Last reply
    0
    • J JohnGa

      Hello,
      I am trying to use the new gRPC framework in Qt. The documentation is found here:
      https://doc.qt.io/qt-6/qtgrpc-index.html

      In the module pre-requisites, it looks like gRPC and protobuf need to be installed. How do I tell cmake where to find the gRPC and protobuf installation?

      When I try to import the included gRPC examples that came with 6.5.0, QtCreator throws this error and does NOT import the project:

      CMake Warning at /Applications/Qt/6.5.0/macos/lib/cmake/Qt6/Qt6Config.cmake:157 (find_package):
        Found package configuration file:
      
          /Applications/Qt/6.5.0/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.
      

      I can't seem to find any notes on WrapgRPC anywhere. Enabling find package debugging also does not give any useful pointers.

      Thanks.

      semlanikS Offline
      semlanikS Offline
      semlanik
      wrote on last edited by
      #2

      @JohnGa sorry for this delayed response, you can either add:

      -DProtobuf_ROOT=/path/to/protobuf/install/prefix -DgRPC_ROOT=/path/to/grpc/install/prefix
      

      or

      "-DCMAKE_PREFIX_PATH=/path/to/protobuf/install/prefix;/path/to/grpc/install/prefix"
      

      Hope this helps.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved