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

tst_qjsengine fails to build on Android

    XMLWordPrintable

Details

    • Android
    • 33476a8cee84c1ee772350844228331dbfb005c3 (qt/qtdeclarative/dev)

    Description

      tst_qjsengine.cpp fails to compile with the following warnings/error:

      tst_qjsengine.cpp:4325:46: warning: 'engine' is deprecated [-Wdeprecated-declarations]
              QCOMPARE(qjsEngine(&object), wrapper.engine());
                                                   ^
      /home/qt/work/install/include/QtQml/qjsvalue.h:153:5: note: 'engine' has been explicitly marked deprecated here
          QT_DEPRECATED QJSEngine *engine() const;
          ^
      /home/qt/work/install/include/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
      #  define QT_DEPRECATED Q_DECL_DEPRECATED
                              ^
      /home/qt/work/install/include/QtCore/qcompilerdetection.h:227:45: note: expanded from macro 'Q_DECL_DEPRECATED'
      #  define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
                                                  ^
      tst_qjsengine.cpp:4902:77: warning: lambda capture 'jitThreshold' is not used [-Wunused-lambda-capture]
          QScopedPointer<QThread> worker(QThread::create([&engineInThread, &code, jitThreshold](){
                                                                                ~~^~~~~~~~~~~~
      tst_qjsengine.cpp:4902:45: error: no member named 'create' in 'QThread'
          QScopedPointer<QThread> worker(QThread::create([&engineInThread, &code, jitThreshold](){
                                         ~~~~~~~~~^
      2 warnings and 1 error generated.
      make[3]: *** [.obj/tst_qjsengine.o] Error 1
      make[3]: Leaving directory `/home/qt/work/qt/qtdeclarative/tests/auto/qml/qjsengine'
      make[2]: *** [sub-qjsengine-make_first] Error 2
      make[2]: *** Waiting for unfinished jobs....
      

      Full log (internal coin):
      http://coin/coin/api/results/qt/qtdeclarative/b85888d73518f6abc7bbde74ab71a27887682f9d/LinuxRHEL_7_6x86_64AndroidAndroid_ANYx86Clangqtci-linux-RHEL-7.6-x86_64-0cbc04NoUseGoldLinker_OpenGLES2_Release/3fb7edf38982a54c2efaa87dcbdea1dcff747341/test_1559776182/log.txt.gz

      Attachments

        1. config.summary
          6 kB
        2. config.log
          146 kB

        Issue Links

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

          Activity

            People

              daniel.smith Daniel Smith
              daniel.smith Daniel Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes