直接make, 不用menuconfig试试
请仔细看贴,make也不行。
可以参照编译内核的方法配置一下编译环境https://mqmaker.com/doc/build-kernel/
没用,我这里能编译出openwrt文件openwrt-ramips-mt7621-witi-squashfs-sysupgrade.bin,就是uboot编译有错误。make menuconfig错误是缺少库lncurses,但是系统已经安装过libncurses5-dev
@leou-boot can't be built without initial make menuconfig cuz autoconf.h have to be generated using your .config file
make menuconfig
autoconf.h
.config
@wanwiyrun dpkg --get-selections | grep ncursesand check if libncurses5-dev:amd64 is present at output
dpkg --get-selections | grep ncurses
libncurses5-dev:amd64
so what should i do next?
如果怀疑是代码问题,可以使用git的revert功能,回到早些的版本编译试试。例如,
git checkout 8b917e0627ee86a00719ee876628771a72ecbbed
still not work
@wanwiy 看样子是你的主机环境缺少了Ncurses库.执行以下命令, 看在默认路径中是否可以找到libncurses.so库, 如果没有找到, 尝试ldconfig更新相关的lib cache
ldconfig -v | grep "libncurses.so
使用以下命令进行安装:
sudo apt-get install libncurses5
接下来呢?
还有人能帮忙解决问题吗?
安装完后, 可以按以前的步骤进行编译
已经安装过了,还是一样的错误。
昨天重装了几个系统包括ubuntu12.04 ubuntu14.04 ubuntu15.10都编译不过同样的错误,麻烦管理员看看是不是github上代码上传有问题。
如果怀疑是代码的问题,可以使用git还原代码到较早的版本试试,例如
check到以前的版本就可以了,谢谢~
@wanwiy这个问题找到原因了, 是由于scripts/lxdialog/Makefile没有可执行权限造成的, 可以通过以下方式修改:
chmod +x scripts/lxdialog/Makefile
@Sugar, 我也遇到了上面这个问题,您说的解决方式不可行,我把Makefilescripts/Makefilescripts/lxdialog/Makefile都加上执行权限也不能解决
但是git checkout 8b917e0627ee86a00719ee876628771a72ecbbed回复到较早版本可,但是这个较早的版本支持从nand启动吗?
从早期版本include下拷贝config.mk就可以make menuconfig,但我不确定这样会不会引起其它问题