问题
make menuconfig的问题
1.找不到头文件<sys/types.h>
2.fatal error: curses.h: 没有那个文件或目录
3.
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make的问题
4.lzop: not found
5.error: implicit declaration of function ‘pinctrl_pm_select_sleep_state’
解决方法
首先sudo apt-get update
1.执行
sudo apt-get install build-essential
2.执行
sudo apt-get install libncurses5-dev
3.执行
sudo apt-get install libncurses5-dev libncursesw5-dev
4.执行
sudo apt-get install lzop
5.添加头文件
#include <linux/pinctrl/consumer.h>
可能有不止一个.c文件报相同的错误,都添一下就行。