LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   kde library paths (https://www.linuxquestions.org/questions/programming-9/kde-library-paths-258878/)

redjokerx 11-24-2004 02:44 PM

kde library paths
 
What are the paths to the required KDE libraries? I know I can use qmake and such, but I want to write my own makefile. Is there anything that spits out the paths like "pkg-config --libs gtk+-2.0"

Mara 11-24-2004 03:08 PM

There should be $KDEDIR variable set and $KDEDIR/lib should be your KDE library directory.

redjokerx 11-24-2004 09:57 PM

I'll try it out later, but (going off memory) I think I included those -I/opt/kde/lib, but I still had some link errors... What about qt libraries? Thanks, you answered my original question.

I should've asked a better one though: What are the paths to libraries that I need to link to if I want to compile a KDE/QT application?

Mara 11-25-2004 05:09 PM

Qt for sure (libqt), probably also KDE ones (libkde*, but it depends on the program). You also usually need -lX and -lm (X and libm for math operations).

redjokerx 11-25-2004 08:11 PM

thanks, will do.

redjokerx 11-27-2004 04:32 AM

It still can't find the libraries.
Code:

undefined reference to `QGridLayout::QGridLayout[in-charge](QLayout*, int, int, int, char const*)
stuff like that

redjokerx 11-27-2004 04:39 AM

I fixed the qt problem, but I now I have the following:
Code:

undefined reference to `vtable for editTaskDialog

Mara 11-27-2004 06:35 PM

What's editTaskDialog? Yours or from KDE?

redjokerx 11-27-2004 09:05 PM

editTaskDialog is my stuff. I was wondering what the vtable might be. I figure it might be something like a layout tool or something like that.

Mara 11-28-2004 05:26 PM

Compiler internal. If I remember correctly, something like that happend when I declared a class as external and forgot to link it. But I may be wrong.


All times are GMT -5. The time now is 09:12 AM.