找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1634|回复: 2

打包lean大神源库的时候总是报错protobuf找不到打问题

[复制链接]
发表于 2018-10-19 07:12 | 显示全部楼层 |阅读模式
checking how to hardcode library paths into programs... immediate
checking for doxygen... no
checking pkg-config is at least version 0.9.0... yes
checking for protobuf >= 2.6.0... no
configure: error: Package requirements (protobuf >= 2.6.0) were not met:

No package 'protobuf' 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 protobuf_CFLAGS
and protobuf_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Makefile:67: recipe for target '/home/h/lede/build_dir/hostpkg/libprotobuf-c-v1.2.1/.configured' failed
make[3]: *** [/home/h/lede/build_dir/hostpkg/libprotobuf-c-v1.2.1/.configured] Error 1
make[3]: Leaving directory '/home/h/lede/feeds/packages/libs/protobuf-c'
time: package/feeds/packages/protobuf-c/host-compile#21.03#1.01#36.31
package/Makefile:107: recipe for target 'package/feeds/packages/protobuf-c/host/compile' failed
make[2]: *** [package/feeds/packages/protobuf-c/host/compile] Error 2
make[2]: Leaving directory '/home/h/lede'
package/Makefile:103: recipe for target '/home/h/lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/h/lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/h/lede'
/home/h/lede/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
h@ho:~/lede$



上面是报错信息。
咋办呢?
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-10-19 10:33 | 显示全部楼层
本帖最后由 flippy 于 2018-10-19 10:34 编辑

问题出在protobuf-c的Makefile里,需要把feeds/packages/libs/protobuf-c/Makefile的PKG_BUILD_DEPENDS:=protobuf-c/host改为PKG_BUILD_DEPENDS:=protobuf/host
patch代码如下:
  1. diff -x .git -x tmp -x '*.tmp' -x dl -x build_dir -x lean --no-dereference -uprN lede.orig/feeds/packages/libs/protobuf-c/Makefile
  2. lede/feeds/packages/libs/protobuf-c/Makefile
  3. --- lede.orig/feeds/packages/libs/protobuf-c/Makefile   2018-10-12 09:46:00.247328675 +0800
  4. +++ lede/feeds/packages/libs/protobuf-c/Makefile        2018-10-14 21:16:34.463482987 +0800
  5. @@ -18,7 +18,7 @@ PKG_SOURCE_URL:=git://github.com/protobu
  6. PKG_SOURCE_PROTO:=git
  7. PKG_SOURCE_VERSION:=$(PKG_VERSION)

  8. -PKG_BUILD_DEPENDS:=protobuf-c/host
  9. +PKG_BUILD_DEPENDS:=protobuf/host

  10. PKG_INSTALL:=1
  11. PKG_FIXUP:=autoreconf
复制代码


点评

ago
太感谢兄弟了,我去试试。  详情 回复 发表于 2018-10-19 10:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-10-19 10:34 来自手机 | 显示全部楼层
flippy 发表于 2018-10-19 10:33
问题出在protobuf-c的Makefile里,需要把feeds/packages/libs/protobuf-c/Makefile的PKG_BUILD_DEPENDS:=pr ...

太感谢兄弟了,我去试试。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-16 15:57

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表