In gRPC and protobuf modules how to specify the installation path
-
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.htmlIn 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.
-
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.htmlIn 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.
@JohnGa sorry for this delayed response, you can either add:
-DProtobuf_ROOT=/path/to/protobuf/install/prefix -DgRPC_ROOT=/path/to/grpc/install/prefixor
"-DCMAKE_PREFIX_PATH=/path/to/protobuf/install/prefix;/path/to/grpc/install/prefix"Hope this helps.