执行命令
cat@lubancat:~/LubanCat_Linux_rk3588_SDK_20230913/kernel$ export ARCH=arm64
cat@lubancat:~/LubanCat_Linux_rk3588_SDK_20230913/kernel$ make menuconfig
错误信息
HOSTCC scripts/basic/fixdep
*
* Unable to find the ncurses package.
* Install ncurses (ncurses-devel or libncurses-dev
* depending on your distribution).
*
* You may also need to install pkg-config to find the
* ncurses installed in a non-default location.
*
scripts/kconfig/Makefile:214: recipe for target 'scripts/kconfig/mconf-cfg' failed
make[1]: *** [scripts/kconfig/mconf-cfg] Error 1
Makefile:568: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
解决
sudo apt-get install ncurses-dev
然后重新 make menuconfig,在此出现错误信息。
UPD scripts/kconfig/mconf-cfg
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[1]: *** [scripts/Makefile.host:9:scripts/kconfig/lexer.lex.c] 错误 127
make: *** [Makefile:630:menuconfig] 错误 2
cat@lubancat:~/LubanCat_Linux_rk3588_SDK_20230913/kernel$ sudo apt-get install flex
原因:
缺少库
解决:
sudo apt-get install flex
sudo apt-get install bison
安装完成后再make menuconfig,成功。