Click to See Complete Forum and Search --> : Newbie KDE compiling problem (QT related?)


MartinB
08-05-2002, 01:58 PM
Hi, I've been following the "khello" tutorial (http://developer.kde.org/documentation/tutorials/khello/khello1.htm) and I have reached the part where it tells you the commands to compile. The first one worked okay and produced a file called "khello.o", but the second line is giving me an error saying "/usr/bin/ld: cannot find -lqt".

I looked up the -l option in the man pages, and so I guess that my machine isn't configured to find the qt library files. Can anyone tell me how I can make it find them or a way to confirm if I actually have them? I have Mandrake 8.2 and installed all of the development tools so I think that they should be there.

Thanks,
Martin

EscapeCharacter
08-05-2002, 06:34 PM
you may have to specify another -L option. -L/path/to/qt/libs

MartinB
08-05-2002, 07:43 PM
But aren't -L and -l two completely different options? I'm on my Winders machine so I can't check right now. Anyway, once I actually find the QT libs (If they're even on my system), I'll try that...

EscapeCharacter
08-05-2002, 08:47 PM
-L is the lib include directory
-l is actually telling the compiler which lib to link to

Energon
08-05-2002, 09:49 PM
If you're using KDE 3 and Qt 3, you need to use -lqt-mt instead of -lqt.

MartinB
08-05-2002, 10:37 PM
It's KDE 2.2 I think - definitely not KDE 3 though... Anyways, I've been looking into writing programs using the X11 libs, which is looking like an easier solution than using KDE and QT, plus, it's my understanding that using X11 libs increases compatibility for other users right? (I'm very new to linux development stuff)

EscapeCharacter
08-05-2002, 11:49 PM
xlib is pretty much the assembly of gui toolkits, qt or gtk would be considerably easier to use