openwrt 编译luci产生如下错误

一、错误1:

taging_dir/target-mipsel_24kec+dsp_musl-1.1.14/pkginfo/luci-lib-nixio.default.install
make[3]: Leaving directory '/pub/openwrt/433_ha/openwrt/feeds/luci/libs/luci-lib-nixio'
make[3]: Entering directory '/pub/openwrt/433_ha/openwrt/feeds/luci/contrib/package/lucihttp'
Makefile:53: *** Download/default is missing the FILE field..  Stop.
make[3]: Leaving directory '/pub/openwrt/433_ha/openwrt/feeds/luci/contrib/package/lucihttp'
package/Makefile:196: recipe for target 'package/feeds/luci/lucihttp/compile' failed
make[2]: *** [package/feeds/luci/lucihttp/compile] Error 2
make[2]: Leaving directory '/pub/openwrt/433_ha/openwrt'
package/Makefile:193: recipe for target '/pub/openwrt/433_ha/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/stamp/.package_compile' failed
make[1]: *** [/pub/openwrt/433_ha/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/stamp/.package_compile] Error 2
make[1]: Leaving directory '/pub/openwrt/433_ha/openwrt'
/pub/openwrt/433_ha/openwrt/include/toplevel.mk:192: recipe for target 'world' failed

解决方法:

在openwrt/feeds/luci/contrib/package/lucihttp目录下
打开Makefile
添加:
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz//指定下载的包格式
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)

二、错误2:

CMake Error: The source directory "/pub/openwrt/433_ha/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/lucihttp" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Makefile:55: recipe for target '/pub/openwrt/433_ha/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/lucihttp/.configured_yyyyyyyyy' failed
make[3]: *** [/pub/openwrt/433_ha/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/lucihttp/.configured_yyyyyyyyy] Error 1
make[3]: Leaving directory '/pub/openwrt/433_ha/openwrt/feeds/luci/contrib/package/lucihttp'
package/Makefile:196: recipe for target 'package/feeds/luci/lucihttp/compile' failed
make[2]: *** [package/feeds/luci/lucihttp/compile] Error 2
make[2]: Leaving directory '/pub/openwrt/433_ha/openwrt'
package/Makefile:193: recipe for target '/pub/openwrt/433_ha/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/stamp/.package_compile' failed
make[1]: *** [/pub/openwrt/433_ha/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/stamp/.package_compile] Error 2
make[1]: Leaving directory '/pub/openwrt/433_ha/openwrt'
/pub/openwrt/433_ha/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 2

解决方法:

将$(TOPDIR)/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/lucihttp-文件夹里面的内容
拷贝到$(TOPDIR)/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/lucihttp文件夹中

$sudo cp $(TOPDIR)/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/lucihttp- $(TOPDIR)//build_dir/target-mipsel_24kec+dsp_musl-1.1.14/lucihttp
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 说明本次redis集群安装在rhel6.8 64位机器上,redis版本为3.2.8,redis的gem文件版本为...
    读或写阅读 15,202评论 3 9
  • PKAddPaymentPassRequestConfiguration 继承自NSObject,@import ...
    NEWWORLD阅读 2,036评论 8 0
  • 00 云逸109901336 妙联诗友九州对, 飞花佳句四海环。 格律早晚入平水, 词风已过宋时圈。 华夏文化渊源...
    云逸1108阅读 180评论 2 2
  • 何处青春不立秋,我心多顾等闲愁。 人生难逢奈何事,诗词又枉少年头。 一枉真情二枉酒,历历在目如江涌。 可笑拿与他人...
    假诗人刘甘民阅读 235评论 0 0
  • 这个点,夜已经算很深了,如果是在老家,怕是已经开始了下半夜的梦。 可惜,广州这里,没有半夜。 这个点,我站在窗边,...
    斜阳涂归鸟阅读 243评论 0 1