Habush / atomspace-rpc

A gRPC server and client to execute pattern matching queries
GNU Affero General Public License v3.0
2 stars 1 forks source link

cmake build error: Unknown CMake command "protobuf_generate_cpp". #2

Closed mjsduncan closed 3 years ago

mjsduncan commented 3 years ago

after installing gRPC from repo i get this error:

CMake Error at src/CMakeLists.txt:18 (protobuf_generate_cpp):
  Unknown CMake command "protobuf_generate_cpp".
Habush commented 3 years ago

I have updated the README to mention the protobuf dependency. You can install it using the following commands

git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
make
make install
sudo ldconfig
mjsduncan commented 3 years ago

this needs ./configure after ./autogen.sh i have a protobuf packge libprotobuf17, is there a way to use that instead?

mjsduncan commented 3 years ago

i believe protobuf is already required for one of the opencog repo builds....

mjsduncan commented 3 years ago

if i add set(protobuf_MODULE_COMPATIBLE ON CACHE BOOL "") to the beginning of CMakeLists.txt then previously installed protobuf package is found and cmake .. is successful.

from https://stackoverflow.com/questions/52533396/cmake-cant-find-protobuf-pr