LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ld cannot find qt-mt after gcc upgrade (https://www.linuxquestions.org/questions/linux-software-2/ld-cannot-find-qt-mt-after-gcc-upgrade-199928/)

liam_p 07-01-2004 10:55 AM

ld cannot find qt-mt after gcc upgrade
 
Hello,

Can someone please help! I think i'm just missing a simlink or something, but I'm not sure.
Every time I try to compile anything which needs the qt libs I get the error:

/ld: cannot find -lqt-mt

but...

locate qt-mt results in:

.....
/usr/lib/qt-3.3.2/lib/libqt-mt.so
......
and some others.


this has only been since I upgraded gcc, so I'm pretty sure I just need to tell it where the librarys are or something. do i need a simlink somewhere?

Thanks in advance,

Liam.

foo_bar_foo 07-01-2004 01:52 PM

just put
/usr/lib/qt-3.3.2/lib
in
/etc/ld.so.conf
then as root run
ldconfig
and all should be good

liam_p 07-01-2004 05:24 PM

Hi,

Thanks for the reply.
I checked and its already there.
well, actually, /usr/lib/qt/lib is there, with /usr/lib/qt being a simlink to qt-3.3.2

I tried adding what you mentioned anyway, and reran ldconfig, to no effect.

Its just annoying me now, argh!

I'm using gcc 3.3.4, having just upgraded slackware 9.1 to 10.0

any other suggestions spring to mind?

Anything I should check?

Liam

liam_p 07-01-2004 05:32 PM

Just in case anyone understands such things, here's a print out of the exact error:

root@R2D2:/usr/src/linux# make xconfig
HOSTLD scripts/kconfig/qconf
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/qconf] Error 1
make: *** [xconfig] Error 2

so there it is. what does that mean?

Liam

Tinkster 07-01-2004 06:27 PM

You may well have broken a few dependencies with that update...


Try

ldd /usr/lib/qt-3.3.2/lib/libqt-mt.so

and check the output carefully ...

Worst-case scenario is that you'll have to rebuild Qt
from source.


Cheers,
Tink

liam_p 07-02-2004 05:43 AM

Apologies for the size of the post, I tried 'ldd /usr/lib/qt-3.3.2/lib/libqt-mt.so' and so far as I can tell everything seems ok. I'm assuming it tells you if there's a problem or something? I also found a verbose option, which equally seems ok. perhaps I'm missing something, or should I just attempt rebuilding qt from scratch as suggested?

Liam.

liam_p 07-02-2004 08:59 AM

Apologies
 
Forget it, It was from my stupidity.

'make mrproper' sorted it.


All times are GMT -5. The time now is 09:44 PM.