gpt4 book ai didi

c++ - Linux 中的谷歌 protobuf

转载 作者:可可西里 更新时间:2023-11-01 17:01:13 25 4
gpt4 key购买 nike

我正在使用 protobuf 和 Linux。它的编译器 protoc 在哪里?我已经从主站点下载了这个包,编译并成功安装了它,但是我找不到 protoc 来构建我自己的格式文件。它在哪里?

更新这是我构建 protobuf 的文件夹:

aclocal.m4        depcomp                       Makefile.in
autogen.sh editors missing
CHANGES.txt examples protobuf-lite.pc
config.guess generate_descriptor_proto.sh protobuf-lite.pc.in
config.h gtest protobuf.pc
config.h.in install-sh protobuf.pc.in
config.log INSTALL.txt python
config.status java README.txt
config.sub libtool src
configure ltmain.sh stamp-h1
configure.ac m4 vsprojects
CONTRIBUTORS.txt Makefile
COPYING.txt Makefile.am

没有我需要的二进制文件。

最佳答案

它可能安装到 /usr/local/bin

至少在 Ubuntu 上,您可以 apt-get install protobuf-compiler 代替。

来自 INSTALL.txt:

Installation Names

By default, 'make install' will install the package's files in '/usr/local/bin', '/usr/local/man', etc. You can specify an installation prefix other than '/usr/local' by giving 'configure' the option '--prefix=PATH'.

关于c++ - Linux 中的谷歌 protobuf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2456664/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com