<div dir="ltr"><div class="gmail_quote"><div dir="ltr">While building kdelibs using kdesrc-build I am encountering <div>"undefined reference to `UdevQt::..........."</div><div>Even after installing udev from the default ubuntu repositories I get the same error.</div><div>How to resolve it?</div><div><br></div><div>This is the exact error:<br></div><div>--------------------------</div><div><div>[ 43%] Building CXX object solid/solid/CMakeFiles/solid.dir/org_kde_solid_networking_client.o</div><div>Linking CXX shared library ../../lib/libsolid.so</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function `Solid::Backends::UDisks2::OpticalDisc::~OpticalDisc()':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:344: undefined reference to `UdevQt::Device::~Device()'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function `Solid::Backends::UDisks2::OpticalDisc::isAppendable() const':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:371: undefined reference to `UdevQt::Device::deviceProperty(QString const&) const'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function `Solid::Backends::UDisks2::OpticalDisc::~OpticalDisc()':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:344: undefined reference to `UdevQt::Device::~Device()'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function `Solid::Backends::UDisks2::OpticalDisc::OpticalDisc(Solid::Backends::UDisks2::Device*)':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:334: undefined reference to `UdevQt::Device::Device()'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:336: undefined reference to `UdevQt::Client::Client(QObject*)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337: undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337: undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337: undefined reference to `UdevQt::Device::~Device()'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:339: undefined reference to `UdevQt::Device::deviceProperties() const'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:341: undefined reference to `UdevQt::Client::~Client()'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksopticaldisc.o: In function `Solid::Backends::UDisks2::OpticalDisc::OpticalDisc(Solid::Backends::UDisks2::Device*)':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:334: undefined reference to `UdevQt::Device::Device()'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:336: undefined reference to `UdevQt::Client::Client(QObject*)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337: undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337: undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:337: undefined reference to `UdevQt::Device::~Device()'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:339: undefined reference to `UdevQt::Device::deviceProperties() const'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksopticaldisc.cpp:341: undefined reference to `UdevQt::Client::~Client()'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function `Solid::Backends::UDisks2::StorageDrive::~StorageDrive()':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:39: undefined reference to `UdevQt::Device::~Device()'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function `Solid::Backends::UDisks2::StorageDrive::isHotpluggable() const':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:52: undefined reference to `UdevQt::Device::deviceProperty(QString const&) const'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:52: undefined reference to `UdevQt::Device::deviceProperty(QString const&) const'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function `Solid::Backends::UDisks2::StorageDrive::bus() const':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:113: undefined reference to `UdevQt::Device::deviceProperty(QString const&) const'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:119: undefined reference to `UdevQt::Device::deviceProperty(QString const&) const'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function `Solid::Backends::UDisks2::StorageDrive::~StorageDrive()':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:39: undefined reference to `UdevQt::Device::~Device()'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function `Solid::Backends::UDisks2::StorageDrive::StorageDrive(Solid::Backends::UDisks2::Device*)':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:32: undefined reference to `UdevQt::Device::Device()'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:34: undefined reference to `UdevQt::Client::Client(QObject*)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35: undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35: undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35: undefined reference to `UdevQt::Device::~Device()'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:36: undefined reference to `UdevQt::Device::deviceProperties() const'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:36: undefined reference to `UdevQt::Client::~Client()'</div><div>CMakeFiles/solid.dir/backends/udisks2/udisksstoragedrive.o: In function `Solid::Backends::UDisks2::StorageDrive::StorageDrive(Solid::Backends::UDisks2::Device*)':</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:32: undefined reference to `UdevQt::Device::Device()'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:34: undefined reference to `UdevQt::Client::Client(QObject*)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35: undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35: undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:35: undefined reference to `UdevQt::Device::~Device()'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:36: undefined reference to `UdevQt::Device::deviceProperties() const'</div><div>/home/droftware/kdesrc/kde/kdelibs/solid/solid/backends/udisks2/udisksstoragedrive.cpp:36: undefined reference to `UdevQt::Client::~Client()'</div><div>collect2: error: ld returned 1 exit status</div><div>make[2]: *** [lib/libsolid.so.4.14.8] Error 1</div><div>make[1]: *** [solid/solid/CMakeFiles/solid.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div>--------------------------------------------------------</div><span class=""><font color="#888888">-- </font></span></div><span class=""><font color="#888888"><br><div><div dir="ltr"><font size="2"><b><i>Akshat Tandon</i></b></font><div><br></div></div></div></font></span></div></div><div class="gmail_signature"><div dir="ltr"><div><br></div></div></div>
</div>