PDA

View Full Version : make g/xconfig paths?


Bana
2004-03-16, 10:04 PM CST
Whenever I am trying to configure my kernel I cannot use gconfig or xconfig because of the following errors:
make xconfig:
[bana@tuxpenguin linux-2.6.4]$ make xconfig
make[1]: `scripts/fixdep' is up to date.
*
* Unable to find the QT installation. Please make sure that the
* QT development package is correctly installed and the QTDIR
* environment variable is set to the correct location.
*
make[1]: *** [scripts/kconfig/.tmp_qtcheck] Error 1
make: *** [xconfig] Error 2
make gconfig
[bana@tuxpenguin linux-2.6.4]$ make gconfig
make[1]: `scripts/fixdep' is up to date.
*
* Unable to find the GTK+ installation. Please make sure that
* the GTK+ 2.0 development package is correctly installed...
* You need gtk+-2.0, glib-2.0 and libglade-2.0.
*
make[1]: *** [scripts/kconfig/.tmp_gtkcheck] Error 1
make: *** [gconfig] Error 2

[bana@tuxpenguin linux-2.6.4]$ rpm -qa | grep gtk2
gtk2-engines-2.2.0-3
gtk2-2.2.4-5.1
pygtk2-2.0.0-1
pygtk2-libglade-2.0.0-1
gtk2-2.2.4-5.1
gtk2-devel-2.2.4-5.1
[bana@tuxpenguin linux-2.6.4]$ rpm -qa | grep glib
glibc-2.3.2-101.4
glib2-2.2.3-1.1
glibc-devel-2.3.2-101.4
glib-1.2.10-11
glibc-2.3.2-101.4
glib-1.2.10-11
glib2-2.2.3-1.1
glib2-devel-2.2.3-1.1
glibc-headers-2.3.2-101.4
glibc-common-2.3.2-101.4
dbus-glib-0.13-6
glibc-kernheaders-2.4-8.36
[bana@tuxpenguin linux-2.6.4]$ rpm -qa | grep libglade
libglade2-2.0.1-5.1
pygtk2-libglade-2.0.0-1
[bana@tuxpenguin linux-2.6.4]$ rpm -qa | grep qt
qt-3.1.2-14

Any ideas?

mhelios
2004-03-17, 12:52 AM CST
For a start, the `make xconfig` calls for qt-devel. Installing qt-devel-3.1.2-14 may be helpful.

Basically, make sure you have all the devel versions of all packages listed above.

Bana
2004-03-19, 01:06 AM CST
[root@tuxpenguin root]# rpm -qa | grep qt
qt-3.1.2-14
qt-devel-3.1.2-14
I think it has something to do with my QTDIR variable and the fact that this is the x86_64 package, perhaps I need to set it looking in the right place (wouldn't be the first time) but how do I do that?
* Unable to find the QT installation. Please make sure that the
* QT development package is correctly installed and the QTDIR
* environment variable is set to the correct location.

maahmad66
2005-04-05, 11:40 PM CDT
I have found a problem in the Makefile under scripts/kconfig, at least for the following version of the kernel:

2.6.10-1.770_FC3_x86_64.

Basically there is an extra space which should not be there and this is why the -lqt is not found.

Here is the way it should be:

$(HOSTCXX)-print-multi-os-directory > /dev/null 2>&1 && \
LIBPATH=$$DIR/lib/$$($(HOSTCXX)-print-multi-os-directory); \

There should be no space between the hyphen before print and the brace after X, both places above.

This fixed the problem with running make xconfig and getting the error cannot find -lqt.

Hope this helps.

MAA66

keinbiervorvier
2006-02-27, 06:54 AM CST
The actual problem with xconfig on x86_64 is that the code expects to find the qt-mt library
in "/usr/lib64/qt-3.3/lib/../lib64/" (qt version may vary, this is FC4), while the FC4 installation
puts it in "/usr/lib64/qt-3.3/lib/".

The suggested "fix" simply disables the "../lib64/" addition to the QTDIR PATH by intoducing a noop instead of using the response from the multi os query

$ g++ -print-multi-os-directory
../lib64
or
$ gcc -print-multi-os-directory
../lib64

So why not simply removing that line (instead of a non-sensical noop), or creating a
symlink /usr/lib64/qt-3.3/lib64 -> /usr/lib64/qt-3.3/lib which requires no changes to the kernel source

Cheers
T.