lich0821 / WeChatFerry

微信机器人底层框架,可接入Gemini、ChatGPT、ChatGLM、讯飞星火、Tigerbot等大模型。WeChat Robot Hook.
MIT License
4.25k stars 747 forks source link

rust编译提示找不到‘protoc’ #30

Closed v200123 closed 1 year ago

v200123 commented 1 year ago

编译这个项目的rust版本,一直提示

--- stdout cargo:rerun-if-changed=proto/wcf.proto cargo:rerun-if-changed=. --- stderr thread 'main' panicked at 'Could not find protoc installation and this build crate cannot proceed without this knowledge. If protoc is installed and this crate had trouble finding it, you can set the PROTOC environment variable with the specific path to your installed protoc binary.You can download it from https://github.com/protocolbuffers/protobuf/releases or from your package manager. For more information: https://docs.rs/prost-build/#sourcing-protoc

windows已经安装了基本环境,rust也加入了protobuf的引用,但还是提示这个,请问你是怎么编译的呀

lich0821 commented 1 year ago

@supermoonie 可以帮忙看一下不?

supermoonie commented 1 year ago

image

缺少以下步骤

v200123 commented 1 year ago

image

缺少以下步骤

这一步已经执行过了,下面是安装后的提示,或许和我rust通过vscode的终端安装的有关? image

v200123 commented 1 year ago

问题的原因在tonic的issue找到了这是链接: https://github.com/hyperium/tonic/issues/1047 降级到0.7就好了