【发布时间】:2019-09-15 03:02:29
【问题描述】:
我正在使用来自 GitHub 的 protobuf-c。当我运行 make 时会发生此错误。
$ git clone https://github.com/protobuf-c/protobuf-c.git
Cloning into 'protobuf-c'...
$ cd protobuf-c
$ ./autogen.sh
...
然后:
$ ./configure
...
checking whether g++ supports C++11 features with -std=c++11... yes
checking for protobuf... no
checking for protobuf... no
configure: error: Package requirements (libprotobuf-c >= 1.0.1) were not met:
No package 'libprotobuf-c' found
Consider adjusting the `PKG_CONFIG_PATH` environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables `libprotobuf_c_CFLAGS`
and `libprotobuf_c_LIBS` to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** [config.status] Erreur 1
有什么问题,我该如何解决?
【问题讨论】:
-
您的意思是当您尝试配置 protobuf-c 本身时,或者当您尝试配置使用 protobuf-c 的其他项目时遇到该错误?
-
当我尝试编译 protobuf-c 本身时得到它
-
嗯,您提供的错误消息似乎表明问题在于您说您正在尝试构建的包不存在。可能是 protobuf-c 的构建系统非常损坏,产生了这样的问题,但我在 Autoconf 源代码中没有看到任何支持该主张的内容。然后,请提供一个可以重现问题的分步过程。
标签: linux protocol-buffers embedded-linux autoconf pkg-config