LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   /usr/bin/ld: cannot find -lqt, make xconfig (https://www.linuxquestions.org/questions/linux-software-2/usr-bin-ld-cannot-find-lqt-make-xconfig-287703/)

tuxandme 02-08-2005 10:49 AM

/usr/bin/ld: cannot find -lqt, make xconfig
 
I try to compile a new kenrel, but when i do "make xconfig"
i get:
HOSTLD scripts/kconfig/qconf
/usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/qconf] Fout 1
make: *** [xconfig] Fout 2

I just installed Mandrake 10.1 and qt-embedded-3.3.4

does someone know what to do?

madluther 02-08-2005 11:03 AM

You need Qt (not embeded) installed and the QTDIR environment variable set, ie QTDIR=/opt/qt



Or you can simply run 'make menuconfig' instead, which will give you an ncurses based config menu.


HTH

Mad.

tuxandme 02-08-2005 11:24 AM

thnx
But the other qt is qt x11 and mandrake 10.1 uses Xorg.
So when I tried to install qt I got:
kernel/qt_x11_p.h:66:22: X11/Xlib.h: No such file or directory
kernel/qt_x11_p.h:71:23: X11/Xutil.h: No such file or directory
kernel/qt_x11_p.h:72:21: X11/Xos.h: No such file or directory
kernel/qt_x11_p.h:73:23: X11/Xatom.h: No such file or directory
make[2]: *** [.obj/release-shared/qtaddons_x11.o] Fout 1
make[2]: Leaving directory `/usr/local/qt/src'
make[1]: *** [sub-src] Fout 2
make[1]: Leaving directory `/usr/local/qt'
make: *** [init] Fout 2

tuxandme 02-09-2005 10:45 AM

solved it, by installing al Xorg packages

erikc 06-19-2005 09:41 AM

hi tuxandme,

I had the same problem with Mandrake 10.1,
after much trawling the net for a while, discovered that qt has to be installed,
which it is and that a valid entry for the qtlib has to exist in the file
/etc/ld.so.conf
which it also did, in my case:
/usr/lib/qt3/lib
upon closer inspection of /usr/lib/qt3/lib I discovered:
libqt-mt.so linked to libqt-mt.so.3.2.3
libqt-mt.so.3 linked to libqt-mt.so.3.3.3
libqt-mt.so.3.3 linked to libqt-mt.so.3.3.3
libqt-mt.so.3.3.3 (the actual file)
took me a while to notice that libqt-mt.so was pointing to a non-existant file: libqt-mt.so.3.2.3

after making libqt-mt.so point to libqt-mt.so.3.3.3
make xconfig
worked perfectly
ciao ... erik

erikc 06-19-2005 01:04 PM

oops, just realised Mandrake 10.1 didn't ship with libqt3-devel ...
libqt3-devel was still hanging around from Mandrake 10.0,
which explains the broken link for libqt-mt.so


All times are GMT -5. The time now is 10:33 AM.