Cmake cannot find protobuf
Hello, everyone.I am a newbie recently interested in low and intermediate layers. I can't figure it out, so let me ask my question here. I am having trouble with CMake finding protobuf. The same command was working until yesterday, but now suddenly the error occurs. What can I do to solve this problem? Please tell me.
Installed on PC M1 Mac with brew. protoc --version libprotoc 25.2
Add to .zshrc export PATH="/opt/homebrew/opt/protobuf/bin:$PATH" source ~/.zshrc
Thanks for reading.
cmake -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Release -DWASMEDGE_PLUGIN_WASI_NN_BACKEND="GGML" -DWASMEDGE_PLUGIN_WASI_NN_GGML_LLAMA_METAL=ON -DWASMEDGE_PLUGIN_WASI_NN_GGML_LLAMA_BLAS=OFF .
-- Setting WASMEDGE_BUILD_WASI_NN_RPC to ON. If you see an error related to gRPC or protobuf, try setting this to OFF.
-- Build spdlog: 1.11.0
-- Build type: Release
-- Checking for module 'protobuf'
-- No package 'protobuf' found
CMake Error at /opt/homebrew/Cellar/cmake/3.28.3/share/cmake/Modules/FindPkgConfig.cmake:619 (message):
The following required packages were not found:
- protobuf
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.28.3/share/cmake/Modules/FindPkgConfig.cmake:841 (_pkg_check_modules_internal)
lib/wasi_nn_rpc/CMakeLists.txt:2 (pkg_check_modules)
-- Configuring incomplete, errors occurred!