This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[solved] 0

Tags: None
(comma "," separated)
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

[solved] 0

Fri Jan 30, 2009 10:14 am
Hello

I use openSUSE 11.0 and KDE 4.2.0. I'd like to compile plasma-weather but I get an error when I run make. I assume that I miss a devel package but how, if so, do I find out which I miss?

CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()':
/home/michael/Downloads/weather/plasma-weather.cpp:106: undefined reference to `QDomDocument::QDomDocument(QString const&)'

Thanks a lot
-bushveld

Last edited by neverendingo on Thu Feb 05, 2009 7:12 pm, edited 1 time in total.


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

[SOLVED] [SOLVED] 0

Fri Jan 30, 2009 12:04 pm
Undefined references usually indicate that it is not linking aganist something. I assume you mean the weather Plasmoid located in extragear/base/plasma/applets/weather. If so, it built, linked and installed fine for me.

QDomDocument is part of the QtXml module of the Qt toolkit. There should be no problems building.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

[SOLVED] [SOLVED] 0

Fri Jan 30, 2009 8:47 pm
Thanks

guess I need to stopp this here (at least for me). I have not found the mentioned QT packages with openSUSE an I really run out of time.

THanks for the help!
-bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

[SOLVED] [SOLVED] 0

Sat Jan 31, 2009 1:47 am
QtXml is usually part of the normal Qt package. Please try with a clean build directory and the latest updated packages.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

[SOLVED] [SOLVED] 0

Sat Jan 31, 2009 12:58 pm
Hi,,

here a liittle different bug after an update to the latest KDE 4.2.0 rel 83.1...
But still no luck... I have no idea what I can do at this point..

[100%] Building CXX object CMakeFiles/plasma_applet_weather.dir/config.o
Linking CXX shared module lib/plasma_applet_weather.so
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()':
/home/michael/Downloads/weather/plasma-weather.cpp:106: undefined reference to `QDomDocument::QDomDocument(QString const&)'

thanks again
-bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

[SOLVED] [SOLVED] 0

Sat Jan 31, 2009 9:39 pm
Could you run make like this, and post the output here?
Code: Select all
VERBOSE=1 make


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

[SOLVED] [SOLVED] 0

Sat Jan 31, 2009 10:09 pm
Sure,
hope you find more infos
-bushveld


Here is the line where the problem starts IHMO....

Code: Select all
void Plasma_Weather::parseData()
{
    //get the invidual elements from the XML file
    QDomDocument doc("weather");                        VERBOSE=1 make                                           
/usr/bin/cmake -H/home/michael/Downloads/weather -B/home/michael/Downloads/weather --check-build-system CMakeFiles/Makefile.cmake 0                                                                   
/usr/bin/cmake -E cmake_progress_start /home/michael/Downloads/weather/CMakeFiles /home/michael/Downloads/weather/CMakeFiles/progress.make                                                           
make -f CMakeFiles/Makefile2 all                                                                   
make[1]: Entering directory `/home/michael/Downloads/weather'                                     
make -f CMakeFiles/plasma_applet_weather_automoc.dir/build.make CMakeFiles/plasma_applet_weather_automoc.dir/depend                                                                                   
make[2]: Entering directory `/home/michael/Downloads/weather'                                     
cd /home/michael/Downloads/weather && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/michael/Downloads/weather /home/michael/Downloads/weather /home/michael/Downloads/weather /home/michael/Downloads/weather /home/michael/Downloads/weather/CMakeFiles/plasma_applet_weather_automoc.dir/DependInfo.cmake --color=                                                                               
make[2]: Leaving directory `/home/michael/Downloads/weather'                                       
make -f CMakeFiles/plasma_applet_weather_automoc.dir/build.make CMakeFiles/plasma_applet_weather_automoc.dir/build                                                                                   
make[2]: Entering directory `/home/michael/Downloads/weather'                                     
/usr/bin/automoc4 /home/michael/Downloads/weather/plasma_applet_weather_automoc.cpp /home/michael/Downloads/weather /home/michael/Downloads/weather /usr/bin/moc /usr/bin/cmake                       
make[2]: Leaving directory `/home/michael/Downloads/weather'                                       
/usr/bin/cmake -E cmake_progress_report /home/michael/Downloads/weather/CMakeFiles                 
[  0%] Built target plasma_applet_weather_automoc                                                 
make -f CMakeFiles/plasma_applet_weather.dir/build.make CMakeFiles/plasma_applet_weather.dir/depend
make[2]: Entering directory `/home/michael/Downloads/weather'                                     
cd /home/michael/Downloads/weather && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/michael/Downloads/weather /home/michael/Downloads/weather /home/michael/Downloads/weather /home/michael/Downloads/weather /home/michael/Downloads/weather/CMakeFiles/plasma_applet_weather.dir/DependInfo.cmake --color=                                                                                       
make[2]: Leaving directory `/home/michael/Downloads/weather'                                       
make -f CMakeFiles/plasma_applet_weather.dir/build.make CMakeFiles/plasma_applet_weather.dir/build
make[2]: Entering directory `/home/michael/Downloads/weather'                                     
Linking CXX shared module lib/plasma_applet_weather.so                                             
/usr/bin/cmake -E cmake_link_script CMakeFiles/plasma_applet_weather.dir/link.txt --verbose=1     
/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-soname,plasma_applet_weather.so -o lib/plasma_applet_weather.so CMakeFiles/plasma_applet_weather.dir/plasma_applet_weather_automoc.o CMakeFiles/plasma_applet_weather.dir/plasma-weather.o CMakeFiles/plasma_applet_weather.dir/config.o /usr/lib/libplasma.so.3.0.0 /usr/lib/libkdeui.so.5.2.0 -lQtSvg /usr/lib/libkdecore.so.5.2.0 -lQtDBus -lQtCore -lpthread -lQtGui                                                                 
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()': 
/home/michael/Downloads/weather/plasma-weather.cpp:106: undefined reference to `QDomDocument::QDomDocument(QString const&)'                                                                           
/home/michael/Downloads/weather/plasma-weather.cpp:110: undefined reference to `QDomDocument::setContent(QIODevice*, QString*, int*, int*)'                                                           
/home/michael/Downloads/weather/plasma-weather.cpp:113: undefined reference to `QDomDocument::documentElement() const'                                                                               
/home/michael/Downloads/weather/plasma-weather.cpp:115: undefined reference to `QDomNode::firstChild() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:117: undefined reference to `QDomNode::firstChild() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:117: undefined reference to `QDomNode::operator=(QDomNode const&)'                                                                                 
/home/michael/Downloads/weather/plasma-weather.cpp:117: undefined reference to `QDomNode::~QDomNode()'                                                                                               
/home/michael/Downloads/weather/plasma-weather.cpp:118: undefined reference to `QDomNode::firstChild() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:118: undefined reference to `QDomNode::operator=(QDomNode const&)'                                                                                 
/home/michael/Downloads/weather/plasma-weather.cpp:118: undefined reference to `QDomNode::~QDomNode()'                                                                                               
/home/michael/Downloads/weather/plasma-weather.cpp:164: undefined reference to `QDomNode::nextSibling() const'                                                                                       
/home/michael/Downloads/weather/plasma-weather.cpp:164: undefined reference to `QDomNode::operator=(QDomNode const&)'                                                                                 
/home/michael/Downloads/weather/plasma-weather.cpp:164: undefined reference to `QDomNode::~QDomNode()'                                                                                               
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `~QDomElement':                 
/usr/include/QtXml/qdom.h:472: undefined reference to `QDomNode::~QDomNode()'                     
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()': 
/home/michael/Downloads/weather/plasma-weather.cpp:120: undefined reference to `QDomNode::isNull() const'                                                                                             
/home/michael/Downloads/weather/plasma-weather.cpp:122: undefined reference to `QDomNode::toElement() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:124: undefined reference to `QDomNode::isNull() const'                                                                                             
/home/michael/Downloads/weather/plasma-weather.cpp:126: undefined reference to `QDomElement::tagName() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:128: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:129: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:130: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:132: undefined reference to `QDomElement::tagName() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:134: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:165: undefined reference to `QDomNode::~QDomNode()'                                                                                               
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `~QDomElement':                 
/usr/include/QtXml/qdom.h:472: undefined reference to `QDomNode::~QDomNode()'                     
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()': 
/home/michael/Downloads/weather/plasma-weather.cpp:165: undefined reference to `QDomDocument::~QDomDocument()'                                                                                       
/home/michael/Downloads/weather/plasma-weather.cpp:136: undefined reference to `QDomElement::tagName() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:140: undefined reference to `QDomElement::tagName() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:142: undefined reference to `QDomNode::firstChild() const'                                                                                         
/home/michael/Downloads/weather/plasma-weather.cpp:142: undefined reference to `QDomNode::operator=(QDomNode const&)'                                                                                 
/home/michael/Downloads/weather/plasma-weather.cpp:142: undefined reference to `QDomNode::~QDomNode()'                                                                                               
/home/michael/Downloads/weather/plasma-weather.cpp:157: undefined reference to `QDomNode::nextSibling() const'
/home/michael/Downloads/weather/plasma-weather.cpp:157: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/michael/Downloads/weather/plasma-weather.cpp:157: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `~QDomElement':
/usr/include/QtXml/qdom.h:472: undefined reference to `QDomNode::~QDomNode()'
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()':
/home/michael/Downloads/weather/plasma-weather.cpp:144: undefined reference to `QDomNode::isNull()const'
/home/michael/Downloads/weather/plasma-weather.cpp:146: undefined reference to `QDomNode::toElement() const'
/home/michael/Downloads/weather/plasma-weather.cpp:148: undefined reference to `QDomNode::isNull()const'
/home/michael/Downloads/weather/plasma-weather.cpp:150: undefined reference to `QDomElement::tagName() const'
/home/michael/Downloads/weather/plasma-weather.cpp:152: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/michael/Downloads/weather/plasma-weather.cpp:153: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/michael/Downloads/weather/plasma-weather.cpp:138: undefined reference to `QDomElement::attribute(QString const&, QString const&) const'
/home/michael/Downloads/weather/plasma-weather.cpp:160: undefined reference to `QDomNode::parentNode() const'
/home/michael/Downloads/weather/plasma-weather.cpp:160: undefined reference to `QDomNode::operator=(QDomNode const&)'
/home/michael/Downloads/weather/plasma-weather.cpp:160: undefined reference to `QDomNode::~QDomNode()'
collect2: ld returned 1 exit status
make[2]: *** [lib/plasma_applet_weather.so] Fehler 1
make[2]: Leaving directory `/home/michael/Downloads/weather'
make[1]: *** [CMakeFiles/plasma_applet_weather.dir/all] Fehler 2
make[1]: Leaving directory `/home/michael/Downloads/weather'
make: *** [all] Fehler 2
michael@akazia:~/Downloads/weather>



openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

[SOLVED] [SOLVED] 0

Sat Jan 31, 2009 10:57 pm
Try executing this command in /home/michael/Downloads/weather
Code: Select all
/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-soname,plasma_applet_weather.so -o lib/plasma_applet_weather.so CMakeFiles/plasma_applet_weather.dir/plasma_applet_weather_automoc.o CMakeFiles/plasma_applet_weather.dir/plasma-weather.o CMakeFiles/plasma_applet_weather.dir/config.o /usr/lib/libplasma.so.3.0.0 /usr/lib/libkdeui.so.5.2.0 -lQtSvg /usr/lib/libkdecore.so.5.2.0 -lQtDBus -lQtCore -lpthread -lQtGui -lQtXml


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

[SOLVED] [SOLVED] 0

Sun Feb 01, 2009 8:46 am
Great,

now the make works but the checkinstall make install fails with a similar problem.
I have not understood what the above mention hint from you does but it worked for make.

thx
-bushveld

Code: Select all
========================= Installation results ===========================
[  0%] Built target plasma_applet_weather_automoc                         
[100%] Built target plasma_applet_weather                                 
Linking CXX shared module CMakeFiles/CMakeRelink.dir/plasma_applet_weather.so
CMakeFiles/plasma_applet_weather.dir/plasma-weather.o: In function `Plasma_Weather::parseData()': 
/home/michael/Downloads/weather/plasma-weather.cpp:106: undefined reference to `QDomDocument::QDomDocument(QString const&)'


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

[SOLVED] [SOLVED] 0

Sun Feb 01, 2009 8:39 pm
Hi,

finally something I can provide instead of just asking for help...

For some reason it doesn't seem to link to the Qt XML library.
So I added ${QT_QTXML_LIBRARY} to the target_link_libraries section of the CMakeLists.txt file and it works fine!

Thanks to all
-bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

[SOLVED] [SOLVED] 0

Mon Feb 02, 2009 7:42 am
You may wish to inform the developer(s) of this Plasma widget so they can fix it upstream.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

[SOLVED] [SOLVED] 0

Mon Feb 02, 2009 7:58 am
Allready done :-)

-bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

[SOLVED] [SOLVED] 0

Mon Feb 02, 2009 8:47 am
Could you please mark the thread as solved? Thanks in advance.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

[SOLVED] [SOLVED] 0

Mon Feb 02, 2009 11:19 am
Hi,

this is the second time I solve a thread and it is not marked....
Will now unsovle it and solve it again...

-bushveld

[img=http://img246.imageshack.us/img246/9941/19352943xv4.th.jpg]

Last edited by bushveld on Mon Feb 02, 2009 11:24 am, edited 1 time in total.


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]