I have solve it. 1.enter the "protobuf/cmake/" dir. 2.mkdir build. protobuf/cmake/build 3.cmake .. 4.make && make install
then the proobuf.cmake config will be installed in cmake's dir. 在 2019年4月9日星期二 UTC+8下午7:17:19,Yara Amin写道: > > did you solve it? im facing the same problem > > On Thursday, May 24, 2018 at 3:47:33 PM UTC+2, [email protected] wrote: >> >> Hi everyone >> I am trying to install a software which uses grpc, and which in turn >> needs protobuf. >> Everything is installed via cmake. >> cmake version 3.11.2 >> Protobuf version 3.5.1 >> >> I am receiving the following error when trying to install it: >> >> CMake Error at cmake/protobuf.cmake:55 (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. >> Call Stack (most recent call first): >> CMakeLists.txt:116 (include) >> >> -- Configuring incomplete, errors occurred! >> >> Has anyone seen this error already? >> Any suggestions on how to solve it? >> >> Many many thanks in advance! >> > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
