How to set QTDIR environment for xconfig in kernel building

I want to build kernel version 2.6.34 ( for a vortex86 soc based pc).

I tried on Leap 15.6 alternately with libqt5-devel and libqt6-devel. When I go to config step and ‘make xconfig’ I receive following error. ( for which sake, I installed libqt5-devel and libqt6-devel)

  • 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.

I tried setting QTDIR to the location of ‘qmake’. But I still cannot run ‘xconfig’

Later I tried to build kernel on a working OS 12.1 system with libqt4-devel. I receive identical error. libqt3-devel was last available on OS 10.2, about five years earlier to OS12.1 and even kernel-2.6.34. I cannot install OS 10.2.

Is ‘xconfig’ so hard-tied to qt versions ?

Can 2.6.34 xconfig work with qt4,qt5,qt6 devel packages ? How will I set QTDIR environment ?

Can old kernel be built on modern distribution versions ?

Thanks in advance.

This issue seems to be coming from qt library locations shifting.

$Kernel_Version(2.6.34)/scripts/kconfig/Makefile, lines 232,233 expect qt libraries to be in /usr/share and /usr/lib/ folders. But, qt libraries are dispersed across /usr/include and other folders.

That may be the cause.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.