-4

I am trying to build the Linux kernel using

make xconfig

but I get this error:

$ 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 ts 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.
make: *** [xconfig] Error 2

So I used Synaptic package tool to install Qt, now there are some of Qt things installed already and some are not. It specifically said to have qmake, I installed from Synaptic, again the same error as above.

qt in synaptic manager

How can I know which packages xconfig needs?

Melebius
  • 11,750

1 Answers1

3

With qmake we need libqt4-dev too, that wasn't suggested in the error and we are on our own to figure it out, out of all qt packages what we need.

sudo apt-get install qt4-qmake libqt4-dev

or search qt4-qmake and libqt4-dev in Synaptic package manager and install respectively.

So I installed qt4-qmake but I also needed to install libqt4-dev, that I didn't.

P.S. As suggested in one comment I did this

apt-rdepends --build-depends --follow=DEPENDS qt4-qmake
apt-rdepends --build-depends --follow=DEPENDS libqt4-dev

the list for qt4-qmake does not show that it needs libqt4-dev neither libqt4-dev shows it needs qt4-qmake.