Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85689

undefined references of QQuickRepeater

    XMLWordPrintable

Details

    • Linux/X11

    Description

      When I tried to use QQuickRepeater in C++ code, my code cannot be compiled because of undefined references.

      I tried to build tst_qquickrepeater.cpp, it cannot be built too.

       

      The steps to reproduce

      1. install Qt 5.15 by online installer
      2. wget https://github.com/qt/qtdeclarative/archive/5.15.0.zip
      3.  open {your_extract_path}/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/qquickrepeater/qquickrepeater.pro in Qt Creator
      4. build the test project

       

      Here is the build log

      20:32:13: Running steps for project qquickrepeater...
      20:32:13: Configuration unchanged, skipping qmake step.
      20:32:13: Starting: "/usr/bin/make" -j12
      g++ -Wl,--enable-new-dtags -Wl,-rpath,/home/vincent/Qt/5.15.0/gcc_64/lib -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -s -o tst_qquickrepeater .obj/tst_qquickrepeater.o .obj/util.o .obj/visualtestutil.o .obj/geometrytestutil.o .obj/viewtestutil.o .obj/moc_util.o .obj/moc_geometrytestutil.o .obj/moc_viewtestutil.o   -L/home/qt/openssl-1.1.1d/lib /home/vincent/Qt/5.15.0/gcc_64/lib/libQt5Quick.so /home/vincent/Qt/5.15.0/gcc_64/lib/libQt5Gui.so /home/vincent/Qt/5.15.0/gcc_64/lib/libQt5QmlModels.so /home/vincent/Qt/5.15.0/gcc_64/lib/libQt5Qml.so /home/vincent/Qt/5.15.0/gcc_64/lib/libQt5Network.so /home/vincent/Qt/5.15.0/gcc_64/lib/libQt5Test.so /home/vincent/Qt/5.15.0/gcc_64/lib/libQt5Core.so -lGL -lpthread   
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::numberModel()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:131: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:132: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:133: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:134: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:134: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::objectList()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:188: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:190: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:191: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::dataModel_adding()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:277: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o:/mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:284: more undefined references to `QQuickRepeater::itemAt(int) const' follow
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::dataModel_removing()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:358: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:364: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:368: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:377: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:381: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:389: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o:/mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:393: more undefined references to `QQuickRepeater::itemAt(int) const' follow
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::dataModel_changes()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:424: undefined reference to `QQuickRepeater::count() const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::resetModel()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:502: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:503: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:504: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:517: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:525: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:533: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:534: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:542: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::modelChanged()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:564: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:565: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:569: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:570: undefined reference to `QQuickRepeater::count() const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::modelReset()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:595: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:614: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:626: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:641: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::modelCleared()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:669: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::properties()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:687: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:689: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:697: undefined reference to `QQuickRepeater::setDelegate(QQmlComponent*)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:699: undefined reference to `QQuickRepeater::setDelegate(QQmlComponent*)'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::dynamicModelCrash()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:784: undefined reference to `QQuickRepeater::model() const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::jsArrayChange()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:859: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:863: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::clearRemovalOrder()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:880: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:887: undefined reference to `QQuickRepeater::itemRemoved(int, QQuickItem*)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:888: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:891: undefined reference to `QQuickRepeater::count() const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::stackingOrder()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:952: undefined reference to `QQuickRepeater::setModel(QVariant const&)'
      .obj/tst_qquickrepeater.o: In function `compareObjectModel(QQuickRepeater*, QQmlObjectModel*)':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:958: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:960: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:961: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::objectModel()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:978: undefined reference to `QQuickRepeater::model() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:981: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:982: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:983: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:984: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:985: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o:/mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:986: more undefined references to `QQuickRepeater::itemAt(int) const' follow
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::objectModel()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:1009: undefined reference to `QQuickRepeater::count() const'
      .obj/tst_qquickrepeater.o: In function `tst_QQuickRepeater::package()':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:1049: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:1050: undefined reference to `QQuickRepeater::itemAt(int) const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:1056: undefined reference to `QQuickRepeater::count() const'
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/tst_qquickrepeater.cpp:1057: undefined reference to `QQuickRepeater::itemAt(int) const'
      .obj/tst_qquickrepeater.o: In function `QQuickRepeater* QQuickVisualTestUtil::findItem<QQuickRepeater>(QQuickItem*, QString const&, int)':
      /mnt/ramdisk/5.15.0/qtdeclarative-5.15.0/tests/auto/quick/build-qquickrepeater-fortest-Debug/../qquickrepeater/../shared/visualtestutil.h:52: undefined reference to `QQuickRepeater::staticMetaObject'
      .obj/tst_qquickrepeater.o: In function `QQuickRepeater* qobject_cast<QQuickRepeater*>(QObject*)':
      /home/vincent/Qt/5.15.0/gcc_64/include/QtCore/qobject.h:524: undefined reference to `QQuickRepeater::staticMetaObject'
      .obj/tst_qquickrepeater.o: In function `QMetaMethod QMetaMethod::fromSignal<void (QQuickRepeater::*)(int, QQuickItem*)>(void (QQuickRepeater::*)(int, QQuickItem*))':
      /home/vincent/Qt/5.15.0/gcc_64/include/QtCore/qmetaobject.h:178: undefined reference to `QQuickRepeater::staticMetaObject'
      collect2: error: ld returned 1 exit status
      Makefile:91: recipe for target 'tst_qquickrepeater' failed
      make: *** [tst_qquickrepeater] Error 1
      20:32:13: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project qquickrepeater (kit: fortest)
      When executing step "Make"
      20:32:13: Elapsed time: 00:01.
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            vincent-hui Vincent Hui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes