Undefined reference to udevqt::*

Luiz Romário Santana Rios luizromario at gmail.com
Tue Oct 29 02:54:05 UTC 2013


Hello.

I've been trying to compile the Frameworks using kdesrc-build for ~a week,
but everytime it fails because it cannot ld to UdevQt::somestuff[1]. I
tried to cleanly build everything several times with no success. It could
be a problem with my env vars[2], but I did just what I was told by the
wiki[3], so I don't know what could possibly go wrong here. Maybe I'm
missing something stupid?

Anyway, I'm running Fedora 19 with everything up to date, if that matters.

Thanks in advance.

[1] [ 47%] Building CXX object
tier1/kwidgetsaddons/tests/CMakeFiles/kpassworddialogtest.dir/kpassworddialogtest_automoc.cpp.o
Linking CXX executable kpassworddialogtest
CMakeFiles/Solid.dir/backends/udisks2/udisksopticaldisc.cpp.o: In function
`Solid::Backends::UDisks2::OpticalDisc::OpticalDisc(Solid::Backends::UDisks2::Device*)':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:334:
undefined reference to `UdevQt::Device::Device()'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:336:
undefined reference to `UdevQt::Client::Client(QObject*)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Device::~Device()'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:339:
undefined reference to `UdevQt::Device::deviceProperties() const'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:341:
undefined reference to `UdevQt::Client::~Client()'
CMakeFiles/Solid.dir/backends/udisks2/udisksopticaldisc.cpp.o: In function
`Solid::Backends::UDisks2::OpticalDisc::OpticalDisc(Solid::Backends::UDisks2::Device*)':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:334:
undefined reference to `UdevQt::Device::Device()'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:336:
undefined reference to `UdevQt::Client::Client(QObject*)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:337:
undefined reference to `UdevQt::Device::~Device()'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:339:
undefined reference to `UdevQt::Device::deviceProperties() const'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:341:
undefined reference to `UdevQt::Client::~Client()'
CMakeFiles/Solid.dir/backends/udisks2/udisksopticaldisc.cpp.o: In function
`Solid::Backends::UDisks2::OpticalDisc::~OpticalDisc()':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:344:
undefined reference to `UdevQt::Device::~Device()'
CMakeFiles/Solid.dir/backends/udisks2/udisksopticaldisc.cpp.o: In function
`Solid::Backends::UDisks2::OpticalDisc::~OpticalDisc()':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:344:
undefined reference to `UdevQt::Device::~Device()'
CMakeFiles/Solid.dir/backends/udisks2/udisksopticaldisc.cpp.o: In function
`Solid::Backends::UDisks2::OpticalDisc::isAppendable() const':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksopticaldisc.cpp:371:
undefined reference to `UdevQt::Device::deviceProperty(QString const&)
const'
CMakeFiles/Solid.dir/backends/udisks2/udisksstoragedrive.cpp.o: In function
`Solid::Backends::UDisks2::StorageDrive::StorageDrive(Solid::Backends::UDisks2::Device*)':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:32:
undefined reference to `UdevQt::Device::Device()'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:34:
undefined reference to `UdevQt::Client::Client(QObject*)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Device::~Device()'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:36:
undefined reference to `UdevQt::Device::deviceProperties() const'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:36:
undefined reference to `UdevQt::Client::~Client()'
CMakeFiles/Solid.dir/backends/udisks2/udisksstoragedrive.cpp.o: In function
`Solid::Backends::UDisks2::StorageDrive::StorageDrive(Solid::Backends::UDisks2::Device*)':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:32:
undefined reference to `UdevQt::Device::Device()'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:34:
undefined reference to `UdevQt::Client::Client(QObject*)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Client::deviceByDeviceFile(QString const&)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Device::operator=(UdevQt::Device const&)'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:35:
undefined reference to `UdevQt::Device::~Device()'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:36:
undefined reference to `UdevQt::Device::deviceProperties() const'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:36:
undefined reference to `UdevQt::Client::~Client()'
CMakeFiles/Solid.dir/backends/udisks2/udisksstoragedrive.cpp.o: In function
`Solid::Backends::UDisks2::StorageDrive::~StorageDrive()':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:39:
undefined reference to `UdevQt::Device::~Device()'
CMakeFiles/Solid.dir/backends/udisks2/udisksstoragedrive.cpp.o: In function
`Solid::Backends::UDisks2::StorageDrive::~StorageDrive()':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:39:
undefined reference to `UdevQt::Device::~Device()'
CMakeFiles/Solid.dir/backends/udisks2/udisksstoragedrive.cpp.o: In function
`Solid::Backends::UDisks2::StorageDrive::bus() const':
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:112:
undefined reference to `UdevQt::Device::deviceProperty(QString const&)
const'
/home/kf5/kf5-src/kdelibs-frameworks/tier1/solid/src/solid/backends/udisks2/udisksstoragedrive.cpp:118:
undefined reference to `UdevQt::Device::deviceProperty(QString const&)
const'
collect2: error: ld returned 1 exit status

[2] export KF5=/home/kf5/kf5
export QTDIR=/home/kf5/qt5/qtbase
export XDG_DATA_DIRS=$KF5/share:$XDG_DATA_DIRS:/usr/share
export XDG_CONFIG_DIRS=$KF5/etc/xdg:$XDG_CONFIG_DIRS:/etc/xdg
export PATH=$KF5/bin:$QTDIR/bin:$PATH
export
QT_PLUGIN_PATH=$KF5/lib/plugins:$KF5/lib64/plugins:$KF5/lib/x86_64-linux-gnu/plugins:$QTDIR/plugins:$QT_PLUGIN_PATH
export
QML2_IMPORT_PATH=$KF5/lib/qml:$KF5/lib64/qml:$KF5/lib/x86_64-linux-gnu/qml:$QTDIR/qml
export XDG_DATA_HOME=$HOME/.local5
export XDG_CONFIG_HOME=$HOME/.config5
export XDG_CACHE_HOME=$HOME/.cache5
export CMAKE_PREFIX_PATH=$KF5:$CMAKE_PREFIX_PATH
c=`echo -e "\033"`
export QT_MESSAGE_PATTERN="%{appname}(%{pid})/(%{category})
$c\[31m%{if-debug}$c\[34m%{endif}%{function}$c\[0m: %{message}"
unset c

[3] http://community.kde.org/Frameworks/Building

-- 
Luiz Romário Santana Rios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20131029/8f60acf5/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list