Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.14.1
-
None
-
debian, ndk-r20b
Description
Error build Qt 5.14.1 from sources for android with ndk r20b
root@ce4906a57c85:/Qt/Src/qtquick3d/src/plugins/assetimporters/assimp# make make -f Makefile.Armeabi-v7a all make[1]: Entering directory '/Qt/Src/qtquick3d/src/plugins/assetimporters/assimp' /android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -c -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -O2 -mthumb -Oz -std=c++1z -Wall -W -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-private-field -frtti -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DASSIMP_BUILD_NO_X_IMPORTER -DASSIMP_BUILD_NO_AMF_IMPORTER -DASSIMP_BUILD_NO_3DS_IMPORTER -DASSIMP_BUILD_NO_MD3_IMPORTER -DASSIMP_BUILD_NO_MDL_IMPORTER -DASSIMP_BUILD_NO_MD2_IMPORTER -DASSIMP_BUILD_NO_PLY_IMPORTER -DASSIMP_BUILD_NO_ASE_IMPORTER -DASSIMP_BUILD_NO_HMP_IMPORTER -DASSIMP_BUILD_NO_SMD_IMPORTER -DASSIMP_BUILD_NO_MDC_IMPORTER -DASSIMP_BUILD_NO_MD5_IMPORTER -DASSIMP_BUILD_NO_STL_IMPORTER -DASSIMP_BUILD_NO_LWO_IMPORTER -DASSIMP_BUILD_NO_DXF_IMPORTER -DASSIMP_BUILD_NO_NFF_IMPORTER -DASSIMP_BUILD_NO_RAW_IMPORTER -DASSIMP_BUILD_NO_SIB_IMPORTER -DASSIMP_BUILD_NO_OFF_IMPORTER -DASSIMP_BUILD_NO_AC_IMPORTER -DASSIMP_BUILD_NO_BVH_IMPORTER -DASSIMP_BUILD_NO_IRRMESH_IMPORTER -DASSIMP_BUILD_NO_IRR_IMPORTER -DASSIMP_BUILD_NO_Q3D_IMPORTER -DASSIMP_BUILD_NO_B3D_IMPORTER -DASSIMP_BUILD_NO_TERRAGEN_IMPORTER -DASSIMP_BUILD_NO_CSM_IMPORTER -DASSIMP_BUILD_NO_3D_IMPORTER -DASSIMP_BUILD_NO_LWS_IMPORTER -DASSIMP_BUILD_NO_OGRE_IMPORTER -DASSIMP_BUILD_NO_OPENGEX_IMPORTER -DASSIMP_BUILD_NO_MS3D_IMPORTER -DASSIMP_BUILD_NO_COB_IMPORTER -DASSIMP_BUILD_NO_Q3BSP_IMPORTER -DASSIMP_BUILD_NO_NDO_IMPORTER -DASSIMP_BUILD_NO_IFC_IMPORTER -DASSIMP_BUILD_NO_XGL_IMPORTER -DASSIMP_BUILD_NO_ASSBIN_IMPORTER -DASSIMP_BUILD_NO_C4D_IMPORTER -DASSIMP_BUILD_NO_3MF_IMPORTER -DASSIMP_BUILD_NO_X3D_IMPORTER -DASSIMP_BUILD_NO_MMD_IMPORTER -DASSIMP_BUILD_NO_STEP_IMPORTER -DASSIMP_BUILD_NO_OWN_ZLIB -DASSIMP_BUILD_NO_COMPRESSED_IFC -DASSIMP_BUILD_NO_EXPORT -DASSIMP_BUILD_BOOST_WORKAROUND -DNOUNCRYPT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK3DASSETIMPORT_LIB -DQT_QUICK3DRENDER_LIB -DQT_QUICK3DUTILS_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../../3rdparty/assimp -I../../../3rdparty -I../../../3rdparty/assimp/src -I../../../3rdparty/assimp/src/code -I../../../3rdparty/assimp/src/include -I../../../3rdparty/assimp/src/include/assimp/Compiler -I../../../3rdparty/assimp/src/contrib/irrXML -I../../../3rdparty/assimp/src/contrib/rapidjson/include -I../../../3rdparty/assimp/src/contrib/utf8cpp/source -I../../../3rdparty/assimp/src/contrib/poly2tri -I../../../../include/QtQuick3DAssetImport/5.14.1 -I../../../../include/QtQuick3DAssetImport/5.14.1/QtQuick3DAssetImport -I../../../../include/QtQuick3DRender/5.14.1 -I../../../../include/QtQuick3DRender/5.14.1/QtQuick3DRender -I../../../../include/QtQuick3DUtils/5.14.1 -I../../../../include/QtQuick3DUtils/5.14.1/QtQuick3DUtils -I/Qt/Src/qtbase/include/QtGui/5.14.1 -I/Qt/Src/qtbase/include/QtGui/5.14.1/QtGui -I../../../../include -I../../../../include/QtQuick3DAssetImport -I../../../../include/QtQuick3DRender -I../../../../include/QtQuick3DUtils -I/Qt/Src/qtbase/include -I/Qt/Src/qtbase/include/QtOpenGLExtensions -I/Qt/Src/qtdeclarative/include -I/Qt/Src/qtdeclarative/include/QtQuick -I/Qt/Src/qtbase/include/QtGui -I/Qt/Src/qtbase/include/QtCore/5.14.1 -I/Qt/Src/qtbase/include/QtCore/5.14.1/QtCore -I/Qt/Src/qtdeclarative/include/QtQmlModels -I/Qt/Src/qtdeclarative/include/QtQml -I/Qt/Src/qtbase/include/QtNetwork -I/Qt/Src/qtbase/include/QtCore -I.moc/armeabi-v7a -I/android_openssl/openssl-1.1.1d/include -I/Qt/Src/qtbase/mkspecs/android-clang -o .obj/armeabi-v7a/glTFImporter.o ../../../3rdparty/assimp/src/code/glTFImporter.cpp In file included from ../../../3rdparty/assimp/src/code/glTFImporter.cpp:59: In file included from ../../../3rdparty/assimp/src/code/glTFAsset.h:64: In file included from ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/document.h:20: ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:547:78: error: use of undeclared identifier 'kDefaultStackCapacity' GenericReader(StackAllocator* stackAllocator = 0, size_t stackCapacity = kDefaultStackCapacity) : stack_(stackAllocator, stackCapacity), parseResult_() {} ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:547:142: error: member initializer 'parseResult_' does not name a non-static data member or base class GenericReader(StackAllocator* stackAllocator = 0, size_t stackCapacity = kDefaultStackCapacity) : stack_(stackAllocator, stackCapacity), parseResult_() {} ^~~~~~~~~~~~~~ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:560:20: error: use of undeclared identifier 'IterativeParse' return IterativeParse<parseFlags>(is, handler); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:562:9: error: use of undeclared identifier 'parseResult_' parseResult_.Clear(); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:567:44: error: use of undeclared identifier 'parseResult_' RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:571:48: error: use of undeclared identifier 'parseResult_' RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:575:48: error: use of undeclared identifier 'parseResult_' RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:579:52: error: use of undeclared identifier 'parseResult_' RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:583:56: error: use of undeclared identifier 'parseResult_' RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:588:16: error: use of undeclared identifier 'parseResult_' return parseResult_; ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:607:9: error: use of undeclared identifier 'parseResult_' parseResult_.Clear(); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:608:9: error: use of undeclared identifier 'state_' state_ = IterativeParsingStartState; ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:624:47: error: use of undeclared identifier 'state_' IterativeParsingState n = Predict(state_, t); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:625:39: error: use of undeclared identifier 'Transit' IterativeParsingState d = Transit<parseFlags>(state_, t, n, is, handler); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:625:59: error: use of undeclared identifier 'state_' IterativeParsingState d = Transit<parseFlags>(state_, t, n, is, handler); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:631:33: error: use of undeclared identifier 'state_' HandleError(state_, is); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:637:17: error: use of undeclared identifier 'state_' state_ = d; ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:645:37: error: use of undeclared identifier 'state_' HandleError(state_, is); ^ ../../../3rdparty/assimp/src/contrib/rapidjson/include/rapidjson/reader.h:655:13: error: use of undeclared identifier 'state_' state_ = d; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: *** [Makefile.Armeabi-v7a:4319: .obj/armeabi-v7a/glTFImporter.o] Error 1 make[1]: Leaving directory '/Qt/Src/qtquick3d/src/plugins/assetimporters/assimp' make: *** [Makefile:48: armeabi-v7a-all] Error 2
env
ANDROID_NDK_ARCH='arch-arm c' ANDROID_NDK_EABI='llvm c' ANDROID_NDK_HOST=linux-x86_64 ANDROID_NDK_TOOLCHAIN_PREFIX='arm-linux-androideabi c' ANDROID_NDK_TOOLCHAIN_VERSION='4.9 c' MACHTYPE=x86_64-pc-linux-gnu
Debian 10
java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
Configure options:
LANG=C ./configure -opensource -release -nomake tests -nomake examples -no-compile-examples -android-sdk /android-sdk-linux -android-ndk /android-ndk-r20b -xplatform android-clang -no-warnings-are-errors --disable-rpath -openssl -I /android_openssl/openssl-1.1.1d/include -L /android_openssl/arm -android-abis armeabi-v7a,x86,arm64-v8a,x86_64 -recheck-all
sdk version:
26.1.1