'Undefined reference to UdevQt::......' error encountered while building kdelibs

Akshat Tandon akshat.tandon.27 at gmail.com
Sun May 24 00:17:58 BST 2015


While building kdelibs using kdesrc-build I am encountering
"undefined reference to `UdevQt::..........."
Even after installing udev from the default ubuntu repositories I get the
same error.
How to resolve it?

This is the exact error:
--------------------------
[ 43%] Building CXX object
solid/solid/CMakeFiles/solid.dir/org_kde_solid_networking_client.o
Linking CXX shared library ../../lib/libsolid.so
CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function
`Solid::Backends::UDisks2::OpticalDisc::~OpticalDisc()':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:344:
undefined reference to `UdevQt::Device::~Device()'
CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function
`Solid::Backends::UDisks2::OpticalDisc::isAppendable() const':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:371:
undefined reference to `UdevQt::Device::deviceProperty(QString const&)
const'
CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function
`Solid::Backends::UDisks2::OpticalDisc::~OpticalDisc()':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:344:
undefined reference to `UdevQt::Device::~Device()'
CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function
`Solid::Backends::UDisks2::OpticalDisc::OpticalDisc(Solid::Backends::UDisks2::Device*)':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:334:
undefined reference to `UdevQt::Device::Device()'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:336:
undefined reference to `UdevQt::Client::Client(QObject*)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Device::~Device()'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:339:
undefined reference to `UdevQt::Device::deviceProperties() const'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:341:
undefined reference to `UdevQt::Client::~Client()'
CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function
`Solid::Backends::UDisks2::OpticalDisc::OpticalDisc(Solid::Backends::UDisks2::Device*)':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:334:
undefined reference to `UdevQt::Device::Device()'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:336:
undefined reference to `UdevQt::Client::Client(QObject*)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Device::~Device()'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:339:
undefined reference to `UdevQt::Device::deviceProperties() const'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:341:
undefined reference to `UdevQt::Client::~Client()'
CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function
`Solid::Backends::UDisks2::StorageDrive::~StorageDrive()':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:39:
undefined reference to `UdevQt::Device::~Device()'
CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function
`Solid::Backends::UDisks2::StorageDrive::isHotpluggable() const':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:52:
undefined reference to `UdevQt::Device::deviceProperty(QString const&)
const'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:52:
undefined reference to `UdevQt::Device::deviceProperty(QString const&)
const'
CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function
`Solid::Backends::UDisks2::StorageDrive::bus() const':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:113:
undefined reference to `UdevQt::Device::deviceProperty(QString const&)
const'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:119:
undefined reference to `UdevQt::Device::deviceProperty(QString const&)
const'
CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function
`Solid::Backends::UDisks2::StorageDrive::~StorageDrive()':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:39:
undefined reference to `UdevQt::Device::~Device()'
CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function
`Solid::Backends::UDisks2::StorageDrive::StorageDrive(Solid::Backends::UDisks2::Device*)':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:32:
undefined reference to `UdevQt::Device::Device()'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:34:
undefined reference to `UdevQt::Client::Client(QObject*)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Device::~Device()'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:36:
undefined reference to `UdevQt::Device::deviceProperties() const'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:36:
undefined reference to `UdevQt::Client::~Client()'
CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function
`Solid::Backends::UDisks2::StorageDrive::StorageDrive(Solid::Backends::UDisks2::Device*)':
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:32:
undefined reference to `UdevQt::Device::Device()'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:34:
undefined reference to `UdevQt::Client::Client(QObject*)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Device::~Device()'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:36:
undefined reference to `UdevQt::Device::deviceProperties() const'
/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:36:
undefined reference to `UdevQt::Client::~Client()'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libsolid.so.4.14.8] Error 1
make[1]: *** [solid/solid/CMakeFiles/solid.dir/all] Error 2
make: *** [all] Error 2
--------------------------------------------------------
-- 

*Akshat Tandon*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20150524/8b81768f/attachment.htm>


More information about the kde-core-devel mailing list