当我尝试使用时,make menuconfig
我得到了这个:
scripts/kconfig/mconf Kconfig init/Kconfig:1301: can't open file
"usr/Kconfig" scripts/kconfig/Makefile:24: recipe for target
'menuconfig' failed make[1]: *** [menuconfig] Error 1 Makefile:541:
recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2
和make xconfig
:
CHECK qt
* Unable to find the QT4 tool qmake. Trying to use QT3
*
* Unable to find any QT installation. Please make sure that
* the QT4 or QT3 development package is correctly installed and
* either qmake can be found or install pkg-config or set
* the QTDIR environment variable to the correct location.
* make[1]: *** No rule to make target 'scripts/kconfig/.tmp_qtcheck', needed by 'scripts/kconfig/qconf.o'. Stop. Makefile:541: recipe for target 'xconfig' failed make: *** [xconfig] Error 2
PS:libncurses5-dev
libncursesw5-dev
并且qt
已经安装
如何解决这个问题?
答案1
您可以使用命令提示apt-get install linux-source
:
$ sudo apt-get install linux-source
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
linux-source-4.4.0
Suggested packages: #<-- suggestion
libncurses-dev | ncurses-dev kernel-package libqt3-dev #<-- is here
The following NEW packages will be installed:
linux-source linux-source-4.4.0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
不可libqt3-dev
用,但您可以安装 Qt4 版本。
因此,您应该安装三个软件包并构建工具:
sudo apt install ncurses-dev kernel-package qt4-dev-tools pkg-config build-essential
然后你就可以运行make menuconfig
了make xconfig
。