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

Cross Compiling QT Android Failed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.4
    • None

    Description

      I have error to build QT on Ubuntu

      Here the errors:

      + mkdir -p qtbase
       + cd qtbase
       + exec /media/mate/Data/qt-everywhere-src-6.2.4/qtbase/configure -top-level -xplatform android-clang -prefix ../ -disable-rpath -nomake tests -nomake examples -no-warnings-are-errors -android-ndk /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393 -android-sdk /media/mate/Data/Android-sdk/Sdk -qt-host-path /usr/lib/x86_64-linux-gnu/cmake -android-abis armeabi-v7a
       '/usr/bin/cmake' '-DQT_HOST_PATH=/usr/lib/x86_64-linux-gnu/cmake' '-DWARNINGS_ARE_ERRORS=OFF' '-DCMAKE_INSTALL_PREFIX=..' '-DQT_QMAKE_TARGET_MKSPEC=android-clang' '-DANDROID_SDK_ROOT=/media/mate/Data/Android-sdk/Sdk' '-DANDROID_NDK_ROOT=/media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393' '-DANDROID_ABI=armeabi-v7a' '-DQT_BUILD_TESTS=FALSE' '-DQT_BUILD_EXAMPLES=FALSE' '-DINPUT_rpath=no' '-G' 'Ninja' '/media/mate/Data/qt-everywhere-src-6.2.4'
       - Android toolchain file within NDK detected: /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake
       - Android build detected, checking configuration defaults...
       - ANDROID_NATIVE_API_LEVEL was not specified, using API level 23 as default
       - The CXX compiler identification is Clang 14.0.6
       - The C compiler identification is Clang 14.0.6
       - The ASM compiler identification is Clang with GNU-like command-line
       - Found assembler: /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
       - Detecting CXX compiler ABI info
       - Detecting CXX compiler ABI info - done
       - Check for working CXX compiler: /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
       - Detecting CXX compile features
       - Detecting CXX compile features - done
       - Detecting C compiler ABI info
       - Detecting C compiler ABI info - done
       - Check for working C compiler: /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
       - Detecting C compile features
       - Detecting C compile features - done
       Checking dependencies of 'qtbase'
       Checking dependencies of 'qtshadertools'
       Checking dependencies of 'qtsvg'
       Checking dependencies of 'qtimageformats'
       Checking dependencies of 'qtdeclarative'
       Checking dependencies of 'qt3d'
       Checking dependencies of 'qt5compat'
       Checking dependencies of 'qtactiveqt'
       Checking dependencies of 'qtmultimedia'
       Checking dependencies of 'qtcharts'
       Checking dependencies of 'qtcoap'
       Checking dependencies of 'qtconnectivity'
       Checking dependencies of 'qtdatavis3d'
       Checking dependencies of 'qttools'
       Checking dependencies of 'qtdoc'
       Checking dependencies of 'qtlottie'
       Checking dependencies of 'qtmqtt'
       Checking dependencies of 'qtnetworkauth'
       Checking dependencies of 'qtopcua'
       Checking dependencies of 'qtserialport'
       Checking dependencies of 'qtpositioning'
       Checking dependencies of 'qtquicktimeline'
       Checking dependencies of 'qtquick3d'
       Checking dependencies of 'qtremoteobjects'
       Checking dependencies of 'qtscxml'
       Checking dependencies of 'qtsensors'
       Checking dependencies of 'qtserialbus'
       Checking dependencies of 'qttranslations'
       Checking dependencies of 'qtvirtualkeyboard'
       Checking dependencies of 'qtwayland'
       Checking dependencies of 'qtwebsockets'
       Checking dependencies of 'qtwebchannel'
       Checking dependencies of 'qtwebengine'
       Checking dependencies of 'qtwebview'
       Configuring 'qtbase'
       - Setting build type to 'Release' as none was specified.
       - Using Android SDK API android-33 from /media/mate/Data/Android-sdk/Sdk/platforms
       - Found Java: /usr/lib/jvm/java-8-openjdk-amd64/bin/java (found suitable version "1.8.0.312", minimum required is "1.8") found components: Development 
       - Check for feature set changes
       - Building architecture extraction project with the following CMake arguments:
       -DANDROID_ABI=armeabi-v7a
       -DANDROID_ARM_MODE=thumb
       -DANDROID_ARM_NEON=TRUE
       -DANDROID_PIE=TRUE
       -DANDROID_PLATFORM=android-23
       -DANDROID_STL=c++_shared
       -DANDROID_TOOLCHAIN=clang
       -DCMAKE_OBJCOPY=/media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-objcopy
       -DCMAKE_TOOLCHAIN_FILE=/media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake
       -DCMAKE_C_STANDARD=11
       -DCMAKE_CXX_STANDARD=17
       -DCMAKE_MODULE_PATH:STRING=/media/mate/Data/qt-everywhere-src-6.2.4/qtbase/cmake/platforms
       - Extracting architecture info from /media/mate/Data/qt-android-6.2.4/build/qtbase/config.tests/arch/architecture_test.
       - CMAKE_VERSION: "3.22.1"
       - CMAKE_HOST_SYSTEM: "Linux-5.13.0-1011-intel"
       - CMAKE_HOST_SYSTEM_NAME: "Linux"
       - CMAKE_HOST_SYSTEM_VERSION: "5.13.0-1011-intel"
       - CMAKE_HOST_SYSTEM_PROCESSOR: "x86_64"
       - CMAKE_SYSTEM: "Android"
       - CMAKE_SYSTEM_NAME: "Android"
       - CMAKE_SYSTEM_VERSION: "1"
       - CMAKE_SYSTEM_PROCESSOR: "armv7-a"
       - CMAKE_CROSSCOMPILING: "TRUE"
       - CMAKE_C_COMPILER: "/media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang" (14.0.6)
       - CMAKE_CXX_COMPILER: "/media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++" (14.0.6)
       - ANDROID_TOOLCHAIN: "clang"
       - ANDROID_NDK: "/media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393"
       - ANDROID_ABI: "armeabi-v7a"
       - ANDROID_PLATFORM: "android-23"
       - ANDROID_STL: "c++_shared"
       - ANDROID_PIE: "TRUE"
       - ANDROID_CPP_FEATURES: ""
       - ANDROID_ALLOW_UNDEFINED_SYMBOLS: ""
       - ANDROID_ARM_MODE: "thumb"
       - ANDROID_ARM_NEON: "TRUE"
       - ANDROID_DISABLE_FORMAT_STRING_CHECKS: ""
       - ANDROID_NATIVE_API_LEVEL: "23"
       - ANDROID_LLVM_TRIPLE: "armv7-none-linux-androideabi23"
       - Found ZLIB: /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/23/libz.so (found suitable version "1.2.12", minimum required is "1.0.8") 
       - Found WrapZLIB: TRUE (Required is at least version "1.0.8") 
       - Could NOT find ZSTD: Found unsuitable version "", but required is at least "1.3" (found ZSTD_LIBRARY-NOTFOUND)
       - Could NOT find WrapDBus1 (missing: DBus1_LIBRARY DBus1_INCLUDE_DIR WrapDBus1_FOUND) (Required is at least version "1.2")
       - Performing Test TEST_use_bfd_linker
       - Performing Test TEST_use_bfd_linker - Failed
       - Performing Test TEST_use_gold_linker
       - Performing Test TEST_use_gold_linker - Failed
       - Performing Test TEST_use_lld_linker
       - Performing Test TEST_use_lld_linker - Success
       - Performing Test TEST_use_mold_linker
       - Performing Test TEST_use_mold_linker - Success
       - Performing Test HAVE_cxx14
       - Performing Test HAVE_cxx14 - Success
       - Performing Test HAVE_cxx17
       - Performing Test HAVE_cxx17 - Success
       - Performing Test HAVE_cxx20
       - Performing Test HAVE_cxx20 - Success
       - Performing Test precompiled header support
       - Performing Test precompiled header support - Success
       - Performing Test TEST_optimize_debug
       - Performing Test TEST_optimize_debug - Success
       - Performing Test TEST_enable_new_dtags
       - Performing Test TEST_enable_new_dtags - Success
       - Performing Test TEST_gdb_index
       - Performing Test TEST_gdb_index - Success
       - Performing Test HAVE_reduce_relocations
       - Performing Test HAVE_reduce_relocations - Failed
       - Performing Test separate debug information support
       - Performing Test separate debug information support - Success
       - Performing Test HAVE_signaling_nan
       - Performing Test HAVE_signaling_nan - Success
       - Performing SIMD Test SSE2 instructions
       - Performing SIMD Test SSE2 instructions - Failed
       - Performing SIMD Test SSE3 instructions
       - Performing SIMD Test SSE3 instructions - Failed
       - Performing SIMD Test SSSE3 instructions
       - Performing SIMD Test SSSE3 instructions - Failed
       - Performing SIMD Test SSE4.1 instructions
       - Performing SIMD Test SSE4.1 instructions - Failed
       - Performing SIMD Test SSE4.2 instructions
       - Performing SIMD Test SSE4.2 instructions - Failed
       - Performing SIMD Test AES new instructions
       - Performing SIMD Test AES new instructions - Failed
       - Performing SIMD Test F16C instructions
       - Performing SIMD Test F16C instructions - Failed
       - Performing SIMD Test RDRAND instruction
       - Performing SIMD Test RDRAND instruction - Failed
       - Performing SIMD Test RDSEED instruction
       - Performing SIMD Test RDSEED instruction - Failed
       - Performing SIMD Test SHA new instructions
       - Performing SIMD Test SHA new instructions - Failed
       - Performing SIMD Test AVX instructions
       - Performing SIMD Test AVX instructions - Failed
       - Performing SIMD Test AVX2 instructions
       - Performing SIMD Test AVX2 instructions - Failed
       - Performing SIMD Test AVX512 F instructions
       - Performing SIMD Test AVX512 F instructions - Failed
       - Performing SIMD Test AVX512 ER instructions
       - Performing SIMD Test AVX512 ER instructions - Failed
       - Performing SIMD Test AVX512 CD instructions
       - Performing SIMD Test AVX512 CD instructions - Failed
       - Performing SIMD Test AVX512 PF instructions
       - Performing SIMD Test AVX512 PF instructions - Failed
       - Performing SIMD Test AVX512 DQ instructions
       - Performing SIMD Test AVX512 DQ instructions - Failed
       - Performing SIMD Test AVX512 BW instructions
       - Performing SIMD Test AVX512 BW instructions - Failed
       - Performing SIMD Test AVX512 VL instructions
       - Performing SIMD Test AVX512 VL instructions - Failed
       - Performing SIMD Test AVX512 IFMA instructions
       - Performing SIMD Test AVX512 IFMA instructions - Failed
       - Performing SIMD Test AVX512 VBMI instructions
       - Performing SIMD Test AVX512 VBMI instructions - Failed
       - Performing Test HAVE_posix_fallocate
       - Performing Test HAVE_posix_fallocate - Success
       - Performing Test HAVE_alloca_stdlib_h
       - Performing Test HAVE_alloca_stdlib_h - Success
       - Performing Test HAVE_alloca_h
       - Performing Test HAVE_alloca_h - Success
       - Performing Test HAVE_alloca_malloc_h
       - Performing Test HAVE_alloca_malloc_h - Failed
       - Performing Test HAVE_stack_protector
       - Performing Test HAVE_stack_protector - Success
       - Performing Test HAVE_intelcet
       - Performing Test HAVE_intelcet - Failed
       - Performing Test HAVE_LD_VERSION_SCRIPT
       - Performing Test HAVE_LD_VERSION_SCRIPT - Success
       - Looking for backtrace
       - Looking for backtrace - not found
       - Could NOT find Backtrace (missing: Backtrace_LIBRARY) 
       - Could NOT find double-conversion (missing: double-conversion_DIR)
       - Could NOT find WrapDoubleConversion (missing: WrapDoubleConversion_FOUND) 
       - Could NOT find GLIB2 (missing: GLIB2_LIBRARIES GTHREAD2_LIBRARIES GLIB2_INCLUDE_DIRS) 
       - Found the following ICU libraries:
       - i18n (required)
       - uc (required)
       - data (required)
       - Failed to find all ICU components (missing: ICU_LIBRARY) (found version "71.1")
       - Performing Test HAVE_STDATOMIC
       - Performing Test HAVE_STDATOMIC - Success
       - Found WrapAtomic: TRUE 
       - Could NOT find Libb2 (missing: LIBB2_LIBRARY LIBB2_INCLUDE_DIR) 
       - Performing Test HAVE_GETTIME
       - Performing Test HAVE_GETTIME - Success
       - Found WrapRt: TRUE 
       - Could NOT find LTTngUST (missing: LTTNGUST_LIBRARIES LTTNGUST_INCLUDE_DIRS) 
       - Could NOT find WrapSystemPCRE2 (missing: PCRE2_LIBRARIES PCRE2_INCLUDE_DIRS __pcre2_found) (Required is at least version "10.20")
       - Could NOT find Slog2 (missing: Slog2_INCLUDE_DIR Slog2_LIBRARY) 
       - Performing Test HAVE_atomicfptr
       - Performing Test HAVE_atomicfptr - Success
       - Performing Test HAVE_clock_monotonic
       - Performing Test HAVE_clock_monotonic - Success
       - Performing Test HAVE_cloexec
       - Performing Test HAVE_cloexec - Success
       - Performing Test HAVE_cxx11_future
       - Performing Test HAVE_cxx11_future - Success
       - Performing Test HAVE_cxx11_random
       - Performing Test HAVE_cxx11_random - Success
       - Performing Test HAVE_cxx17_filesystem
       - Performing Test HAVE_cxx17_filesystem - Success
       - Performing Test HAVE_eventfd
       - Performing Test HAVE_eventfd - Success
       - Performing Test HAVE_futimens
       - Performing Test HAVE_futimens - Success
       - Performing Test HAVE_futimes
       - Performing Test HAVE_futimes - Failed
       - Performing Test HAVE_getauxval
       - Performing Test HAVE_getauxval - Success
       - Performing Test HAVE_getentropy
       - Performing Test HAVE_getentropy - Failed
       - Performing Test HAVE_glibc
       - Performing Test HAVE_glibc - Failed
       - Performing Test HAVE_inotify
       - Performing Test HAVE_inotify - Success
       - Performing Test HAVE_ipc_sysv
       - Performing Test HAVE_ipc_sysv - Failed
       - Performing Test HAVE_ipc_posix
       - Performing Test HAVE_ipc_posix - Failed
       - Performing Test HAVE_linkat
       - Performing Test HAVE_linkat - Success
       - Performing Test HAVE_ppoll
       - Performing Test HAVE_ppoll - Success
       - Performing Test HAVE_pollts
       - Performing Test HAVE_pollts - Failed
       - Performing Test HAVE_poll
       - Performing Test HAVE_poll - Success
       - Performing Test HAVE_renameat2
       - Performing Test HAVE_renameat2 - Failed
       - Performing Test HAVE_statx
       - Performing Test HAVE_statx - Failed
       - Performing Test HAVE_syslog
       - Performing Test HAVE_syslog - Success
       - Performing Test HAVE_cpp_winrt
       - Performing Test HAVE_cpp_winrt - Failed
       - Performing Test HAVE_xlocalescanprint
       - Performing Test HAVE_xlocalescanprint - Failed
       - Could NOT find WrapBrotli (missing: BrotliDec_FOUND BrotliEnc_FOUND BrotliCommon_FOUND) 
       - Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) 
       - Could NOT find WrapOpenSSLHeaders (missing: OPENSSL_INCLUDE_DIR) 
       - Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) 
       - Could NOT find WrapOpenSSLHeaders (missing: OPENSSL_INCLUDE_DIR) 
       - Could NOT find WrapOpenSSL (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) 
       - Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIRS) 
       - Performing Test HAVE_getifaddrs
       - Performing Test HAVE_getifaddrs - Failed
       - Performing Test HAVE_ifr_index
       - Performing Test HAVE_ifr_index - Failed
       - Performing Test HAVE_ipv6ifname
       - Performing Test HAVE_ipv6ifname - Failed
       - Performing Test HAVE_linux_netlink
       - Performing Test HAVE_linux_netlink - Success
       - Performing Test HAVE_sctp
       - Performing Test HAVE_sctp - Failed
       - Performing Test HAVE_networklistmanager
       - Performing Test HAVE_networklistmanager - Failed
       - Could NOT find Libdrm (missing: Libdrm_LIBRARY Libdrm_INCLUDE_DIR) 
       - Performing Test HAVE_EGL
       - Performing Test HAVE_EGL - Success
       - Found EGL: /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include (found version "1.5") 
       - Could NOT find WrapSystemFreetype (missing: __freetype_found) (Required is at least version "2.2.0")
       - Could NOT find Fontconfig (missing: Fontconfig_LIBRARY Fontconfig_INCLUDE_DIR) 
       - Could NOT find gbm (missing: gbm_LIBRARY gbm_INCLUDE_DIR) 
       - Could NOT find WrapSystemHarfbuzz (missing: HARFBUZZ_LIBRARIES HARFBUZZ_INCLUDE_DIRS) (Required is at least version "2.6.0")
       - Could NOT find Libinput (missing: Libinput_LIBRARY Libinput_INCLUDE_DIR) 
       - Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
       - Could NOT find md4c (missing: md4c_DIR)
       - Could NOT find WrapSystemPNG (missing: __png_found) 
       - Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) 
       - Could NOT find WrapOpenGL (missing: WrapOpenGL_FOUND) 
       - Performing Test HAVE_GLESv2
       - Performing Test HAVE_GLESv2 - Success
       - Found GLESv2: /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include 
       - Found WrapVulkanHeaders: /media/mate/Data/Android-sdk/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include 
       - Performing Test HAVE_egl_brcm
       - Performing Test HAVE_egl_brcm - Failed
       - Performing Test HAVE_egl_egldevice
       - Performing Test HAVE_egl_egldevice - Success
       - Performing Test HAVE_egl_mali
       - Performing Test HAVE_egl_mali - Failed
       - Performing Test HAVE_egl_mali_2
       - Performing Test HAVE_egl_mali_2 - Failed
       - Performing Test HAVE_egl_viv
       - Performing Test HAVE_egl_viv - Failed
       - Performing Test HAVE_egl_openwfd
       - Performing Test HAVE_egl_openwfd - Failed
       - Performing Test HAVE_egl_rcar
       - Performing Test HAVE_egl_rcar - Failed
       - Performing Test HAVE_evdev
       - Performing Test HAVE_evdev - Success
       - Performing Test HAVE_integrityfb
       - Performing Test HAVE_integrityfb - Failed
       - Performing Test HAVE_linuxfb
       - Performing Test HAVE_linuxfb - Failed
       - Performing Test HAVE_opengles3
       - Performing Test HAVE_opengles3 - Failed
       - Performing Test HAVE_opengles31
       - Performing Test HAVE_opengles31 - Failed
       - Performing Test HAVE_opengles32
       - Performing Test HAVE_opengles32 - Failed
       - Performing Test HAVE_directwrite
       - Performing Test HAVE_directwrite - Failed
       - Performing Test HAVE_directwrite3
       - Performing Test HAVE_directwrite3 - Failed
       - Performing Test HAVE_d2d1
       - Performing Test HAVE_d2d1 - Failed
       - Performing Test HAVE_d2d1_1
       - Performing Test HAVE_d2d1_1 - Failed
       - Searching for tool 'Qt6::moc' in package Qt6CoreTools.
       - Could NOT find Qt6CoreTools (missing: Qt6CoreTools_DIR)
       CMake Error at qtbase/cmake/QtToolHelpers.cmake:170 (message):
       The tool "Qt6::moc" was not found in the Qt6CoreTools package. Package
       found: 0
       Call Stack (most recent call first):
       qtbase/src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      - Configuring incomplete, errors occurred!
      

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            kafabih-kr Kafabih Rahmat
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes