问题描述
在执行make menuconfig时,报错:
Unable to find the ncurses libraries…
解决方法
安装ncurses和ncursesw库
sudo apt-get insatll ncurses-dev
sudo apt-get insatll ncursesw-dev
注意:ncursesw库是ncurses的升级版本,支持中文,否则中文会显示乱码;
而且imx6交叉编译环境执行make menuconfig时,会用到这个库,如果不安装,需要将/opt/fsl-imx-fb/3.14.52-1.1.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/pkgconfig/目录下ncurses++w.pc和ncursesw.pc删除,否则还会报错
再次执行make menuconfig后,还是报错:
Unable to find the ncurses libraries…
修改pkgconfig
查看ubuntu中安装ncurses时的ncurses*.pc,在/usr/lib/x86_