Openwrt编译python3时出现错误:No rule to make target `package//host/compile'

来源:互联网 发布:劳务派遣公司软件 编辑:程序博客网 时间:2024/06/09 21:34

步骤:

1、在package目录下添加python3,包含Makefile,files和相关patches文件

2、执行make package/python3/compile V=s

...

make[1]: *** No rule to make target `package//host/compile', needed by `package/python3/compile'.  Stop.


分析:

其原因是在python3/Makefile中定义了:PKG_BUILD_DEPENDS:=libbz2/host expat/host python3/host

而当前环境中并没有libbz2和expat的package。

解决方案:

添加相关package后,错误消失。



0 0