So I'm trying to recompile my kernel (it doesn't have uinput support but nm that). I followed the instructions on How to install needed Qt packages to build kernel on 14.04? but

when I run ~/Downloads/linux-$ make xconfig I get this.

Unable to find the QT3 installation. Please make sure that the QT3 development package is correctly installed and either 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

I think this may be an upgrade error since even though I have qt5 it complains that it can't find qt3. Asside from Nuke and Pave how can I fix this?

  • possible duplicate of How to install needed Qt packages to build kernel on 14.04? – steeldriver Sep 19 '15 at 11:47
  • That answer didn't work for me. My Ubuntu doggedly looks for QT3. It doesn't seem to care that I have QT5. Is there a variable somewhere to fix? – Jason Sep 20 '15 at 4:55
  • I'm just gonna Nuke and Pave. – Jason Sep 20 '15 at 5:02
  • 1
    @steeldriver this is not a dupe, the OP mentions that the solutions there failed for him. – terdon Sep 21 '15 at 12:57

Either you need to install some libraries do not exist for Trusty or you have to take the road for which the libraries are not needed.

To use

make xconfig

you have to install the QT3 libraries, and you could download and install the Precise packages. To do this, download libqt3-mt-dev and install with sudo dpkg -i. But you'll have to install many more dependencies.

But ;)

The only reason you need qt3 is because you ran make xconfig. There are other ways of configuring your kernel for compilation that don't require qt3. When I was young, I did it this way:

make menuconfig

enter image description here

Or, really old-shool:

make config

enter image description here

After the configuration steps, run

make -j3

if you have two cores (cores + 1)

make modules_install
make install
  • When I was young... I also learnt this method :) +1 – Sylvain Pineau Sep 21 '15 at 15:56
  • Okay, I still can't fix the "Can't find QT3" problem (tho it seems to be able to settle for QT4 now for some reason tho I have QT5). It seems I can make "make config" work. Thanks. – Jason Sep 21 '15 at 20:59
  • Oh, and thanks for the "two cores" comment. That should save me some time. – Jason Sep 21 '15 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.