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

你可能感兴趣的:(openwrt 编译luci产生如下错误)