[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu-devel
Subject:    [kde-edu]: Linking to libmarble and MarbleWidgetInputHandler
From:       Willi Ballenthin <wrb2102 () columbia ! edu>
Date:       2008-08-28 3:35:09
Message-ID: 200808272335.09545.wrb2102 () columbia ! edu
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all!

Ive been in the corner now for a few months, listening to the conversations of 
the KDE community, and trying to get a feel for it.  Here's one of my first 
interactions... *nervous*

I've been trying to write a training log application, to store the details of 
my runs and races. Inspired by the Digikam integration of Marble, I've been 
working to include a MarbleWidget as well.  I had success today when the 
widget loaded, but as I've been trying to extend it to my needs, I've been 
getting a bit confused.

I've subclassed MarbleWidgetInputHandler; at this point all it does is print 
out some debug statements.  However when I try to compile, I'm receiving 
undefined references to the MarbleWidgetInputHandler.

Currently I just have qmake generate the Makefile, and I have the Marble 
libraries installed (libmarble4-kde4 and libmarble-dev-kde4 on Kubuntu 8.04).  
My linking looks like this:

LIBS += -L/usr/lib/kde4/include/marble \
             -lmarblewidget \
             -L/usr/lib/kde4/lib \
             -L/usr/lib/kde4/lib/kde4

But again compilation is spitting out errors such as:

/home/willi/Programming/CPP/Qt/traintracker/marblewidgettraintrackerinputhandler.cpp:61: 
undefined reference to `MarbleWidgetInputHandler::~MarbleWidgetInputHandler()'
/home/willi/Programming/CPP/Qt/traintracker/marblewidgettraintrackerinputhandler.cpp:61: 
undefined reference to `MarbleWidgetInputHandler::~MarbleWidgetInputHandler()'
/home/willi/Programming/CPP/Qt/traintracker/marblewidgettraintrackerinputhandler.cpp:61: 
undefined reference to `MarbleWidgetInputHandler::~MarbleWidgetInputHandler()'

Is there another library I should be linking to?  Am I confusing the classes 
to which I can extend (my C++ experience is limited to a year or two)?

Thanks for bearing with me and any ensuing responses!

Willi

PS, If my message or attitude is out of place, please quickly tell me! The KDE 
community has been great so far and I'd really like to get more involved!


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans'; font-size:10pt; \
font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">Hi all!</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">Ive been in the corner now for a few months, \
listening to the conversations of the KDE community, and trying to get a feel for it. \
Here's one of my first interactions... *nervous*</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I've been trying to write a \
training log application, to store the details of my runs and races. Inspired by the \
Digikam integration of Marble, I've been working to include a MarbleWidget as well.  \
I had success today when the widget loaded, but as I've been trying to extend it to \
my needs, I've been getting a bit confused.</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I've subclassed \
MarbleWidgetInputHandler; at this point all it does is print out some debug \
statements.  However when I try to compile, I'm receiving undefined references to the \
MarbleWidgetInputHandler.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">Currently I just have qmake generate the \
Makefile, and I have the Marble libraries installed (libmarble4-kde4 and \
libmarble-dev-kde4 on Kubuntu 8.04).  My linking looks like this:</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">LIBS += \
-L/usr/lib/kde4/include/marble \</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">             -lmarblewidget \</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">             -L/usr/lib/kde4/lib \</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">             \
-L/usr/lib/kde4/lib/kde4</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">But again compilation is spitting out errors such \
as:</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">/home/willi/Programming/CPP/Qt/traintracker/marblewidgettraintrackerinputhandler.cpp:61: \
undefined reference to `MarbleWidgetInputHandler::~MarbleWidgetInputHandler()'</p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">/home/willi/Programming/CPP/Qt/traintracker/marblewidgettraintrackerinputhandler.cpp:61: \
undefined reference to `MarbleWidgetInputHandler::~MarbleWidgetInputHandler()'</p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">/home/willi/Programming/CPP/Qt/traintracker/marblewidgettraintrackerinputhandler.cpp:61: \
undefined reference to `MarbleWidgetInputHandler::~MarbleWidgetInputHandler()'</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Is there another library I \
should be linking to?  Am I confusing the classes to which I can extend (my C++ \
experience is limited to a year or two)?</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks for bearing with me \
and any ensuing responses!</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">Willi</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">PS, If my message or attitude \
is out of place, please quickly tell me! The KDE community has been great so far and \
I'd really like to get more involved!</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p></body></html>



_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-edu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic