LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2004, 01:44 PM   #1
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
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"
 
Old 11-24-2004, 02:08 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
There should be $KDEDIR variable set and $KDEDIR/lib should be your KDE library directory.
 
Old 11-24-2004, 08:57 PM   #3
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Original Poster
Rep: Reputation: 31
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?

Last edited by redjokerx; 11-24-2004 at 08:59 PM.
 
Old 11-25-2004, 04:09 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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).
 
Old 11-25-2004, 07:11 PM   #5
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Original Poster
Rep: Reputation: 31
thanks, will do.
 
Old 11-27-2004, 03:32 AM   #6
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Original Poster
Rep: Reputation: 31
It still can't find the libraries.
Code:
undefined reference to `QGridLayout::QGridLayout[in-charge](QLayout*, int, int, int, char const*)
stuff like that
 
Old 11-27-2004, 03:39 AM   #7
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Original Poster
Rep: Reputation: 31
I fixed the qt problem, but I now I have the following:
Code:
undefined reference to `vtable for editTaskDialog
 
Old 11-27-2004, 05:35 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What's editTaskDialog? Yours or from KDE?
 
Old 11-27-2004, 08:05 PM   #9
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Original Poster
Rep: Reputation: 31
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.
 
Old 11-28-2004, 04:26 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Library paths RedHAT9 (N00B) Jaykay3k Linux - Software 1 03-03-2005 01:15 AM
Runtime problem with library paths v8dave Slackware 0 12-30-2004 06:45 PM
Getting erro - Library files for "libkcm_k3bsetup2.la" not found in paths error. rsreeni Linux - Newbie 0 08-22-2004 07:07 PM
KDE Library calble Programming 1 04-20-2004 02:11 PM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration