не удается найти файлы ProtobuffConfig при запуске примера grp c - PullRequest
0 голосов
/ 19 июня 2020

Я следовал https://grpc.io/docs/languages/cpp/quickstart/ руководству по установке, и теперь я пытаюсь собрать пример. Затем появляется следующая ошибка:

~/grpc/examples/cpp/helloworld/cmake/build$ cmake -DCMAKE_PREFIX_PATH=$MY_INSTALL_DIR ../..
CMake Error at CMakeLists.txt:103 (find_package):Could not find a package configuration file provided by "Protobuf" with any of the following names:

ProtobufConfig.cmake
protobuf-config.cmake

Add the installation prefix of "Protobuf" to CMAKE_PREFIX_PATH or set "Protobuf_DIR" to a directory containing one of the above files.  If "Protobuf" provides a separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
...