[kde-linux] Error compiling kdelibs, libnepomuk.so.4.2.0 not found

Altair Linux altairlinux at gmail.com
Tue Jul 28 06:18:46 UTC 2009


Hello people,

I am compiling KDE-4.2.4 from stable source code in my Debian Lenny, and in
one step of "make", I have this:

[ 97%] Built target nepomuk-rcgen
Linking CXX shared library ../../lib/libnepomuk.so
CMakeFiles/nepomuk.dir/resourcedata.o: In function `QHash<QUrl,
Nepomuk::Variant>::findNode(QUrl const&, un
signed int*) const':
resourcedata.cpp:(.text._ZNK5QHashI4QUrlN7Nepomuk7VariantEE8findNodeERKS0_Pj[QHash<QUrl,
Nepomuk::Variant>:
:findNode(QUrl const&, unsigned int*) const]+0x1b): undefined reference to
`qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontology.o: In function
`Nepomuk::Ontology::findPropertyByUri(QUrl const&)
const':
ontology.cpp:(.text+0xd3): undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontology.o: In function
`Nepomuk::Ontology::findClassByUri(QUrl const&) con
st':
ontology.cpp:(.text+0x183): undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/class.o: In function
`Nepomuk::Class::findPropertyByUri(QUrl const&) const'
:
class.cpp:(.text+0x2b4): undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontologymanager.o: In function `QHash<QUrl,
Nepomuk::Ontology>::findNode(QU
rl const&, unsigned int*) const':
ontologymanager.cpp:(.text._ZNK5QHashI4QUrlN7Nepomuk8OntologyEE8findNodeERKS0_Pj[QHash<QUrl,
Nepomuk::Ontol
ogy>::findNode(QUrl const&, unsigned int*) const]+0x1b): undefined reference
to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontologymanager.o:ontologymanager.cpp:(.text._ZNK5QHashI4QUrlN7Nepomuk5Clas
sEE8findNodeERKS0_Pj[QHash<QUrl, Nepomuk::Class>::findNode(QUrl const&,
unsigned int*) const]+0x1b): more u
ndefined 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

I search the file "libnepomuk" in rpmfind.net and I see is part of the KDE
core.

I go to the nepomuk directory, and I make:

Hades:/usr/src/KDE-4.2.4/kdelibs/kdelibs-4.2.4/build/nepomuk# make -f
Makefile
[  0%] Built target nepomuk-rcgen
[ 35%] Built target kdecore
[ 94%] Built target kdeui
Linking CXX shared library ../../lib/libnepomuk.so
CMakeFiles/nepomuk.dir/resourcedata.o: In function `QHash<QUrl,
Nepomuk::Variant>::findNode(QUrl const&, unsigned int*) const':
resourcedata.cpp:(.text._ZNK5QHashI4QUrlN7Nepomuk7VariantEE8findNodeERKS0_Pj[QHash<QUrl,
Nepomuk::Variant>::findNode(QUrl const&, unsigned int*) const]+0x1b):
undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontology.o: In function
`Nepomuk::Ontology::findPropertyByUri(QUrl const&) const':
ontology.cpp:(.text+0xd3): undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontology.o: In function
`Nepomuk::Ontology::findClassByUri(QUrl const&) const':
ontology.cpp:(.text+0x183): undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/class.o: In function
`Nepomuk::Class::findPropertyByUri(QUrl const&) const':
class.cpp:(.text+0x2b4): undefined reference to `qHash(QUrl const&)'
CMakeFiles/nepomuk.dir/ontology/ontologymanager.o: In function `QHash<QUrl,
Nepomuk::Ontology>::findNode(QUrl const&, unsigned int*) const':
ontologymanager.cpp:(.text._ZNK5QHashI4QUrlN7Nepomuk8OntologyEE8findNodeERKS0_Pj[QHash<QUrl,
Nepomuk::Ontology>::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<QUrl,
Nepomuk::Class>::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

I try:

# find /usr/src/KDE-4.2.4/kdelibs/kdelibs-4.2.4 -name libnepomuk*.*

File not found

My last try, by the moment, search any lib with apt-get, with this name. Not
found. In this moment, I am reading some threads in Google about libnepomuk,
but by the moment not solve the problem.

Any idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20090728/a18c533a/attachment.html>


More information about the kde-linux mailing list