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

[SOLVED] KDE4.2.1: compile problem kdelibs-nepomuk

Tags: None
(comma "," separated)
Yggdrasil
Registered Member
Posts
3
Karma
0
OS
I switch yesterday to the 4.2.1 tag in svn, but couldn't recompile.
Code: Select all
Linking CXX shared library ../../lib/libnepomuk.so
CMakeFiles/nepomuk.dir/resourcedata.o: In function `QHash::findNode(QUrl const&, unsigned int*) const':
resourcedata.cpp:(.text._ZNK5QHashI4QUrlN7Nepomuk7VariantEE8findNodeERKS0_Pj[QHash::findNode(QUrl const&, unsigned int*) const]+0x1b): undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontology.o: In function `QHash::findNode(QUrl const&, unsigned int*) const':
/usr/include/qt4/QtCore/qhash.h:854: undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontology.o: In function `QHash::findNode(QUrl const&, unsigned int*) const':
/usr/include/qt4/QtCore/qhash.h:854: undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/class.o: In function `QHash::findNode(QUrl const&, unsigned int*) const':
/usr/include/qt4/QtCore/qhash.h:854: undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontologymanager.o: In function `QHash::findNode(QUrl const&, unsigned int*) const':
ontologymanager.cpp:(.text._ZNK5QHashI4QUrlN7Nepomuk8OntologyEE8findNodeERKS0_Pj[QHash::findNode(QUrl const&, unsigned int*) const]+0x1b): undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontologymanager.o:ontologymanager.cpp:(.text._ZNK5QHashI4QUrlN7Nepomuk5ClassEE8findNodeERKS0_Pj[QHash::findNode(QUrl const&, unsigned int*) const]+0x1b): more undefined references to `qHash(QUrl const&)' follow
collect2: ld returned 1 exit status
make[2]: *** [lib/libnepomuk.so.4.2.0] Error 1
make[1]: *** [nepomuk/core/CMakeFiles/nepomuk.dir/all] Error 2
make: *** [all] Error 2
makeobj[0]: Leaving directory `/home/kde-devel/kde/build/KDE/kdelibs'

qt version is 4.4.3 and gcc 4.2.4

This setup worked for 4.2.0. Do i need a patched qt 4.4 or even qt 4.5?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Qt 4.4 is sufficient. You may need to reconfigure using CMake to ensure that everything was fully updated.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Yggdrasil
Registered Member
Posts
3
Karma
0
OS
I deleted the build files from KDE4.2.0 some time ago. So there shouldn't be anything misconfiguring.
svn stat has no output, so it should be as clean as a fresh checkout.

I switched back to 4.2.0 tag and rebuild to see if it still works and it does (it is still building but nepomuk worked). So some changes don't like my system.

Can anybody help?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try this in Konsole before configuring with CMake:
Code: Select all
export CMAKE_PREFIX_PATH=[where kde 4.2.1 is installed]


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
msoeken
Mentor
Posts
300
Karma
4
OS
AFAIS, There is no qHash(QUrl) in Qt 4.4. So, it has to be declared somewhere in kdelibs or somewhere else. Just guessing: Is it the correct build order: kdesupport, kdelibs, kdepimlibs, ...?


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
Yggdrasil
Registered Member
Posts
3
Karma
0
OS
bcooksley wrote:Try this in Konsole before configuring with CMake:
Code: Select all
export CMAKE_PREFIX_PATH=[where kde 4.2.1 is installed]


I get the same error message. Nothing changed.

msoeken wrote:AFAIS, There is no qHash(QUrl) in Qt 4.4. So, it has to be declared somewhere in kdelibs or somewhere else. Just guessing: Is it the correct build order: kdesupport, kdelibs, kdepimlibs, ...?

I don't build kdesupport. I use binary packages. But that could be the problem. I will try to build tags/kdesupport-for-4.2/kdesupport. Hope that's the problem.

EDIT: Now it works. It seems an old version of soprano caused the trouble. Thanks for helping.

Last edited by Yggdrasil on Sat Mar 07, 2009 11:36 am, edited 1 time in total.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]