Ubuntu – How to recompile the kernel without qt3

14.04compilingkernelqt3source

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-2.6.32.68$ make xconfig I get this.

CHECK qt
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?

Best Answer

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
Related Question