Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

libQt5QuickTemplates2.so failed for Yocto distribution



  • Hi,
    I'm trying to compile toolchain for QT development using the meta-toolchain-qt5 Yocto image. The libQt5QuickTemplates2.so failed with following error:
    linking ../../lib/libQt5QuickTemplates2.so.5.10.1
    .obj/moc_qquickrangeslider_p.o: In function QQuickRangeSlider::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:179: undefined reference toQQuickRangeSlider::setValues(double, double)'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:261: undefined reference to QQuickRangeSlider::setSnapMode(QQuickRangeSlider::SnapMode)' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:260: undefined reference toQQuickRangeSlider::setStepSize(double)'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:259: undefined reference to QQuickRangeSlider::setTo(double)' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:258: undefined reference toQQuickRangeSlider::setFrom(double)'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:263: undefined reference to QQuickRangeSlider::setLive(bool)' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:262: undefined reference toQQuickRangeSlider::setOrientation(Qt::Orientation)'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:242: undefined reference to QQuickRangeSlider::to() const' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:241: undefined reference toQQuickRangeSlider::from() const'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:246: undefined reference to QQuickRangeSlider::snapMode() const' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:245: undefined reference toQQuickRangeSlider::stepSize() const'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:244: undefined reference to QQuickRangeSlider::second() const' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:243: undefined reference toQQuickRangeSlider::first() const'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:250: undefined reference to QQuickRangeSlider::isVertical() const' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:249: undefined reference toQQuickRangeSlider::isHorizontal() const'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:248: undefined reference to QQuickRangeSlider::live() const' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:247: undefined reference toQQuickRangeSlider::orientation() const'
    .obj/moc_qquickrangeslider_p.o: In function QQuickRangeSliderNode::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:490: undefined reference toQQuickRangeSliderNode::increase()'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:491: undefined reference to QQuickRangeSliderNode::decrease()' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:557: undefined reference toQQuickRangeSliderNode::isHovered() const'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:556: undefined reference to QQuickRangeSliderNode::isPressed() const' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:555: undefined reference toQQuickRangeSliderNode::handle() const'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:554: undefined reference to QQuickRangeSliderNode::visualPosition() const' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:553: undefined reference toQQuickRangeSliderNode::position() const'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:552: undefined reference to QQuickRangeSliderNode::value() const' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:568: undefined reference toQQuickRangeSliderNode::setHovered(bool)'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:567: undefined reference to QQuickRangeSliderNode::setPressed(bool)' /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:566: undefined reference toQQuickRangeSliderNode::setHandle(QQuickItem*)'
    /usr/src/debug/qtquickcontrols2/5.10.1+gitAUTOINC+e693ad2c4a-r0/build/src/quicktemplates2/.moc/moc_qquickrangeslider_p.cpp:565: undefined reference to QQuickRangeSliderNode::setValue(double)' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x6c): undefined reference toQQuickRangeSlider::classBegin()'
    .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x70): undefined reference to QQuickRangeSlider::componentComplete()' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x74): undefined reference toQQuickRangeSlider::keyPressEvent(QKeyEvent*)'
    .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x78): undefined reference to QQuickRangeSlider::keyReleaseEvent(QKeyEvent*)' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x80): undefined reference toQQuickRangeSlider::focusInEvent(QFocusEvent*)'
    .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x88): undefined reference to QQuickRangeSlider::mousePressEvent(QMouseEvent*)' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x8c): undefined reference toQQuickRangeSlider::mouseMoveEvent(QMouseEvent*)'
    .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0xa4): undefined reference to QQuickRangeSlider::touchEvent(QTouchEvent*)' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0xa8): undefined reference toQQuickRangeSlider::hoverEnterEvent(QHoverEvent*)'
    .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0xac): undefined reference to QQuickRangeSlider::hoverMoveEvent(QHoverEvent*)' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0xb0): undefined reference toQQuickRangeSlider::hoverLeaveEvent(QHoverEvent*)'
    .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0xec): undefined reference to QQuickRangeSlider::mirrorChange()' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x104): undefined reference toQQuickRangeSlider::accessibleRole() const'
    .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x11c): undefined reference to non-virtual thunk to QQuickRangeSlider::classBegin()' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x120): undefined reference tonon-virtual thunk to QQuickRangeSlider::componentComplete()'
    .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x138): undefined reference to QQuickRangeSliderNode::~QQuickRangeSliderNode()' .obj/moc_qquickrangeslider_p.o:(.data.rel.ro+0x13c): undefined reference toQQuickRangeSliderNode::~QQuickRangeSliderNode()'
    collect2: error: ld returned 1 exit status
    Makefile:468: recipe for target '../../lib/libQt5QuickTemplates2.so.5.10.1' failed
    make[2]: *** [../../lib/libQt5QuickTemplates2.so.5.10.1] Error 1

    Thanks, Tanya


Log in to reply