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

[Qt for Android] Error: 'dynamic_cast' not permitted with -fno-rtti

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.1
    • 5.6.0
    • Qt3D
    • None
    • Windows 10.0.10586 64-bit,
      MSys2 + perl 5.22.1 + python 3.4.3 + gcc 5.3,
      Android NDK r11c 64-bit (gcc 4.9),
      Android SDK API 10 + 11 + 16 + 18
      Oracle JDK 1.8.0_77

    Description

      $ git branch
      * 5.6
      
      $ git log -n1
      commit e80d89059ce16f376fbaeb934a1cd3b54bcbc6bb
      Author: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
      Date:   Mon Apr 4 09:52:45 2016 +0300
      
          Updated submodules.
      
          Change-Id: I983429d487f7667c36553d24037639abee660b42
          Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
      

      Building Qt 5.6 for Android

      sh /c/Dev/Projects/Qt5/configure -opensource -confirm-license -debug-and-release -prefix /c/Dev/Tools/Qt-libs/5.6.1-android-armeabi-v7a-4.9 -platform win32-g++ -xplatform android-g++ -android-arch armeabi-v7a -android-ndk-platform android-9 -android-toolchain-version 4.9 -opengl es2 -no-warnings-are-errors -nomake examples -nomake tests
      
      mingw32-make -j6
      

      Error

      g++ -c -pipe -fno-keep-inline-dllexport -O2 -Wall -Wextra -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-declarations -Wno-unused-function -Wno-reorder -fexceptions -mthreads -fno-rtti -DUNICODE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -D_CRT_SECURE_NO_WARNINGS -DASSIMP_BUILD_NO_OWN_ZLIB -DASSIMP_BUILD_NO_COMPRESSED_IFC -DASSIMP_BUILD_NO_Q3BSP_IMPORTER -DQT_USE_QSTRINGBUILDER -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_ZLIB_LIB -DQT_NO_DYNAMIC_CAST -IC:/Dev/Projects/Qt5/qt3d/tools/qgltf -I. -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/code -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/code/BoostWorkaround -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/include -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/include/assimp/Compiler -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/contrib/ConvertUTF -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/contrib/irrXML -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/contrib/poly2tri/poly2tri -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/contrib/clipper -IC:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/contrib/unzip -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtCore -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtCore/5.6.1 -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtCore/5.6.1/QtCore -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtXml -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtXml/5.6.1 -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtXml/5.6.1/QtXml -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtZlib -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtZlib/5.6.1 -IC:/Dev/Projects/Qt5-build/android-armv7-4.9/qtbase/include/QtZlib/5.6.1/QtZlib -IC:/Dev/Projects/Qt5/qtbase/mkspecs/win32-g++  -o .obj/release/Exporter.o C:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/code/Exporter.cpp
      C:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/code/Exporter.cpp: In member function 'aiReturn Assimp::Exporter::Export(const aiScene*, const char*, const char*, unsigned int)':
      C:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/code/Exporter.cpp:360:43: error: 'dynamic_cast' not permitted with -fno-rtti
              && !dynamic_cast<FlipUVsProcess*>(p)
                                                 ^
      C:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/code/Exporter.cpp:361:52: error: 'dynamic_cast' not permitted with -fno-rtti
              && !dynamic_cast<FlipWindingOrderProcess*>(p)
                                                          ^
      C:/Dev/Projects/Qt5/qt3d/src/3rdparty/assimp/code/Exporter.cpp:362:50: error: 'dynamic_cast' not permitted with -fno-rtti
              && !dynamic_cast<MakeLeftHandedProcess*>(p)) {
                                                        ^
      Makefile.Release:3229: recipe for target '.obj/release/Exporter.o' failed
      

      Attachments

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

        Activity

          People

            taipan BogDan Vatra
            dmitry.sokolov Dmitry Sokolov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes