web-dev-qa-db-ja.com

menuconfigとxconfigは機能しません!

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-devlibncursesw5-devおよびqtは既にインストールされています

これを解決するには?

2
Ura

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をインストールできます。

したがって、3つのパッケージとビルドツールをインストールする必要があります。

Sudo apt install ncurses-dev kernel-package qt4-dev-tools pkg-config build-essential

その後、make menuconfigおよびmake xconfigを実行できます。

0
N0rbert