Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装时库文件问题 #91

Closed
LeeYSK opened this issue Dec 3, 2024 · 4 comments
Closed

安装时库文件问题 #91

LeeYSK opened this issue Dec 3, 2024 · 4 comments

Comments

@LeeYSK
Copy link

LeeYSK commented Dec 3, 2024

错误
在 安装 protoc 阶段,总是 make 不过去,一直报找不到 goole/protobuf/... 下的某个文件,为什么呢,我的 Ubantu 是 18, 我自己找了一些 protocbuf 的包安装也还是不行

Copy link

github-actions bot commented Dec 3, 2024

Message that will be displayed on users' first issue

@bingdouwang
Copy link

我也遇到同样的问题 去找了3.12.4的安装包,发现include下根本没有报错的这个文件

@bingdouwang
Copy link

bingdouwang commented Dec 8, 2024

解决了,去protobuf仓库下载源代码https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.4, 要下载 protobuf-all-3.12.4.zip,然后参考这个https://blog.csdn.net/qq_46490027/article/details/128570526进行安装和配置环境变量,再在项目CMakeList.txt文件添加两行link_directories(/usr/local/protobuf/lib) include_directories(/usr/local/protobuf/include/) 就可以编译成功了,路径中间的protobuf可能需要根据你的配置替换一下

@578223592
Copy link
Collaborator

解决了,去protobuf仓库下载源代码https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.4, 要下载 protobuf-all-3.12.4.zip,然后参考这个https://blog.csdn.net/qq_46490027/article/details/128570526进行安装和配置环境变量,再在项目CMakeList.txt文件添加两行link_directories(/usr/local/protobuf/lib) include_directories(/usr/local/protobuf/include/) 就可以编译成功了,路径中间的protobuf可能需要根据你的配置替换一下

@bingdouwang 很棒,感谢 。 同时cc @LeeYSK ,看下是否能解决,如果还有问题可以再打开这个issue哈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants