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

Can not build "qtscxml" for Android platform.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.7.0
    • QPA
    • None
    • Windows 10.0.10586.545 64bit
      Android NDK r11c
    • Android

    Description

      Error: 'dynamic_cast_will_always_fail_because_rtti_is_disabled' is not a member of 'DocumentModel::Node*'

       |mingw32-make[2]: Entering directory 'C:/Dev/Qt-build/5.7-android/qtscxml/tools'
       |cd qscxmlc/ && ( test -e Makefile || C:/Dev/Qt-build/5.7-android/qtbase/bin/qmake.exe C:/Dev/Projects/Qt5/qtscxml/tools/qscxmlc/qscxmlc.pro -qtconf C:/Dev/Qt-build/5.7-android/qtbase/bin/qt.conf -o Makefile ) && C:/Dev/Tools/Msys2/mingw64/bin/mingw32-make -f Makefile
       |mingw32-make[3]: Entering directory 'C:/Dev/Qt-build/5.7-android/qtscxml/tools/qscxmlc'
       |C:/Dev/Tools/Msys2/mingw64/bin/mingw32-make -f Makefile.Release
       |mingw32-make[4]: Entering directory 'C:/Dev/Qt-build/5.7-android/qtscxml/tools/qscxmlc'
       |g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++11 -fno-exceptions -Wall -Wextra -fno-rtti -DUNICODE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DBUILD_QSCXMLC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_BOOTSTRAP_LIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_NO_DYNAMIC_CAST -IC:/Dev/Projects/Qt5/qtscxml/tools/qscxmlc -I. -I../../include -I../../include/QtScxml -I../../include/QtScxml/5.7.0 -I../../include/QtScxml/5.7.0/QtScxml -IC:/Dev/Qt-build/5.7-android/qtbase/include -IC:/Dev/Qt-build/5.7-android/qtbase/include/QtCore -IC:/Dev/Qt-build/5.7-android/qtbase/include/QtCore/5.7.0 -IC:/Dev/Qt-build/5.7-android/qtbase/include/QtCore/5.7.0/QtCore -IC:/Dev/Qt-build/5.7-android/qtbase/include/QtXml -IC:/Dev/Qt-build/5.7-android/qtbase/include/QtXml/5.7.0 -IC:/Dev/Qt-build/5.7-android/qtbase/include/QtXml/5.7.0/QtXml -IC:/Dev/Projects/Qt5/qtbase/mkspecs/win32-g++  -o .obj/release/qscxmlc.o C:/Dev/Projects/Qt5/qtscxml/tools/qscxmlc/qscxmlc.cpp
       |In file included from C:/Dev/Qt-build/5.7-android/qtbase/include/QtCore/qglobal.h:1:0,
       |                 from C:/Dev/Projects/Qt5/qtscxml/src/scxml/qscxmlglobals.h:42,
       |                 from ../../include/QtScxml/qscxmlglobals.h:1,
       |                 from C:/Dev/Projects/Qt5/qtscxml/src/scxml/qscxmlerror.h:43,
       |                 from ../../include/QtScxml/qscxmlerror.h:1,
       |                 from C:/Dev/Projects/Qt5/qtscxml/src/scxml/qscxmlparser.h:43,
       |                 from C:/Dev/Projects/Qt5/qtscxml/src/scxml/qscxmlparser_p.h:54,
       |                 from ../../include/QtScxml/5.7.0/QtScxml/private/qscxmlparser_p.h:1,
       |                 from C:/Dev/Projects/Qt5/qtscxml/tools/qscxmlc/qscxmlc.cpp:29:
       |C:/Dev/Projects/Qt5/qtbase/src/corelib/global/qglobal.h: In instantiation of 'T qt_dynamic_cast_check(X, T*) [with T = DocumentModel::Node*; X = DocumentModel::StateContainer*]':
       |C:/Dev/Projects/Qt5/qtscxml/src/scxml/qscxmlparser_p.h:272:54:   required from here
       |C:/Dev/Projects/Qt5/qtbase/src/corelib/global/qglobal.h:1028:15: error: 'dynamic_cast_will_always_fail_because_rtti_is_disabled' is not a member of 'DocumentModel::Node*'
       |   { return T::dynamic_cast_will_always_fail_because_rtti_is_disabled; }
       |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |Makefile.Release:470: recipe for target '.obj/release/qscxmlc.o' failed
       |mingw32-make[4]: *** [.obj/release/qscxmlc.o] Error 1
       |mingw32-make[4]: Leaving directory 'C:/Dev/Qt-build/5.7-android/qtscxml/tools/qscxmlc'
      

      Windows 10.0.10586.545 64bit
      Android NDK r11c

      configure -opensource -confirm-license -debug-and-release -prefix C:/Dev/Tools/Qt-libs/5.7.0-android-armeabi-v7a-4.9 -platform win32-g++ -xplatform android-g++ -opengl es2 -android-arch armeabi-v7a -android-ndk-platform android-9 -android-toolchain-version 4.9 -no-warnings-are-errors -nomake examples -nomake tests

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            dmitry.sokolov Dmitry Sokolov
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes