Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. cmake fails for Qt 6.10.1 build for android

cmake fails for Qt 6.10.1 build for android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 182 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • msauer751M Offline
    msauer751M Offline
    msauer751
    wrote on last edited by
    #1

    Hi,
    I have to projects with the same Qt Creator configuration to build the app for Android.

    8f63ef4e-8c47-4eb9-bd89-6765f7548d83-image.png

    But the second project will create an error during configuration.

    [cmake] Running /opt/Entwicklung/cmake/bin/cmake -S /home/martin/Entwicklung/Qt/qt_wm -B /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release -DCMAKE_C_COMPILER:FILEPATH=/opt/Entwicklung/Android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID_PLATFORM:STRING=android-28 -DANDROID_STL:STRING=c++_shared -DANDROID_NDK:PATH=/opt/Entwicklung/Android/sdk/ndk/27.2.12479018 -DQT_NO_GLOBAL_APK_TARGET_PART_OF_ALL:BOOL=ON -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/.qtc/package-manager/auto-setup.cmake -DANDROID_ABI:STRING=arm64-v8a -DQT_USE_TARGET_ANDROID_BUILD_DIR:BOOL=ON -DANDROID_USE_LEGACY_TOOLCHAIN_FILE:BOOL=OFF -DQT_MAINTENANCE_TOOL:FILEPATH=/opt/Entwicklung/Qt/MaintenanceTool -DANDROID_SDK_ROOT:PATH=/opt/Entwicklung/Android/sdk -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PREFIX_PATH:PATH=/opt/Entwicklung/Qt/6.10.1/android_arm64_v8a -DQT_HOST_PATH:PATH=/opt/Entwicklung/Qt/6.10.1/gcc_64 -DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/bin/qmake -DCMAKE_FIND_ROOT_PATH:PATH=/opt/Entwicklung/Qt/6.10.1/android_arm64_v8a -DCMAKE_CXX_FLAGS_INIT:STRING= -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_CXX_COMPILER:FILEPATH=/opt/Entwicklung/Android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ in /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release.
    [cmake] CMAKE fuer project: qt_wm
    [cmake] -- Android: Targeting API '28' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64'
    [cmake] -- Android: Selected unified Clang toolchain
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeDetermineSystem.cmake:146 (include)
    [cmake]   CMakeLists.txt:8 (project)
    [cmake] 
    [cmake] 
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/4.1.2/CMakeSystem.cmake:6 (include)
    [cmake]   CMakeLists.txt:8 (project)
    [cmake] 
    [cmake] 
    [cmake] -- The CXX compiler identification is Clang 18.0.3
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/flags.cmake:18 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang.cmake:23 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeCXXInformation.cmake:48 (include)
    [cmake]   CMakeLists.txt:8 (project)
    [cmake] 
    [cmake] 
    [cmake] -- Detecting CXX compiler ABI info
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/4.1.2/CMakeSystem.cmake:6 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-d9Ji3R/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/flags.cmake:18 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang.cmake:23 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeCXXInformation.cmake:48 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-d9Ji3R/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] -- Detecting CXX compiler ABI info - done
    [cmake] -- Check for working CXX compiler: /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
    [cmake] -- Detecting CXX compile features
    [cmake] -- Detecting CXX compile features - done
    [cmake] CMAKE fuer project: libdatad
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/4.1.2/CMakeSystem.cmake:6 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-EOA6FQ/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/flags.cmake:18 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang.cmake:23 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeCXXInformation.cmake:48 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-EOA6FQ/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] -- Check if compiler accepts -pthread
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/4.1.2/CMakeSystem.cmake:6 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-gaelJ0/CMakeLists.txt:5 (project)
    [cmake] 
    [cmake] 
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/flags.cmake:18 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang.cmake:23 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeCXXInformation.cmake:48 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-gaelJ0/CMakeLists.txt:5 (project)
    [cmake] 
    [cmake] 
    [cmake] -- Check if compiler accepts -pthread - yes
    [cmake] -- Performing Test HAVE_STDATOMIC
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/4.1.2/CMakeSystem.cmake:6 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-ccL3PJ/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/flags.cmake:18 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang.cmake:23 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeCXXInformation.cmake:48 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-ccL3PJ/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] -- Performing Test HAVE_STDATOMIC - Success
    [cmake] CMAKE fuer project: libdb
    [cmake] CMAKE fuer project: libgeo
    [cmake] -- The C compiler identification is Clang 18.0.3
    [cmake] -- Detecting C compiler ABI info
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/4.1.2/CMakeSystem.cmake:6 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-yherGe/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/flags.cmake:18 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang.cmake:23 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang-C.cmake:1 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeCInformation.cmake:48 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-yherGe/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] -- Detecting C compiler ABI info - done
    [cmake] -- Check for working C compiler: /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
    [cmake] -- Detecting C compile features
    [cmake] -- Detecting C compile features - done
    [cmake] -- Performing Test HAVE_EGL
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/4.1.2/CMakeSystem.cmake:6 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-XMIT8I/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/flags.cmake:18 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang.cmake:23 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeCXXInformation.cmake:48 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-XMIT8I/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] -- Performing Test HAVE_EGL - Success
    [cmake] -- Found EGL: /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include (found version "1.5")
    [cmake] -- Performing Test HAVE_GLESv2
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/4.1.2/CMakeSystem.cmake:6 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-IPhBnd/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] CMake Deprecation Warning at /opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/flags.cmake:18 (cmake_minimum_required):
    [cmake]   Compatibility with CMake < 3.10 will be removed from a future version of
    [cmake]   CMake.
    [cmake] 
    [cmake]   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    [cmake]   to tell CMake that the project requires at least <min> but has been updated
    [cmake]   to work with policies introduced by <max> or earlier.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang.cmake:23 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
    [cmake]   /opt/Entwicklung/cmake/share/cmake-4.1/Modules/CMakeCXXInformation.cmake:48 (include)
    [cmake]   /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/CMakeFiles/CMakeScratch/TryCompile-IPhBnd/CMakeLists.txt:4 (project)
    [cmake] 
    [cmake] 
    [cmake] -- Performing Test HAVE_GLESv2 - Success
    [cmake] CMAKE fuer project: libjsonrpc
    [cmake]   ANDROID: target link libraries with ssl
    [cmake] CMAKE fuer project: libwm-lib
    [cmake] CMAKE fuer project: qt_wm
    [cmake] QML IMPORT PATH=/home/martin/Entwicklung/Qt/qt_wm/home/martin/Entwicklung/Qt/qt_wm/assets/home/martin/Entwicklung/Qt/qt_wm/components/home/martin/Entwicklung/Qt/qt_wm/images/home/martin/Entwicklung/Qt/qt_wm/providers/home/martin/Entwicklung/Qt/qt_wm/views
    [cmake]     ANDROID: target link libaries with ssl
    [cmake] CMake Warning at /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:285 (message):
    [cmake]   The Widgets target is mentioned as a dependency for wm-lib, but not
    [cmake]   declared.  The linking might be incomplete.
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:337 (__qt_internal_walk_libs)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:772 (__qt_internal_collect_all_target_dependencies)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:877 (_qt_internal_finalize_executable)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:921:EVAL:1 (qt6_finalize_target)
    [cmake]   wm-ui/CMakeLists.txt:DEFERRED
    [cmake] 
    [cmake] 
    [cmake] -- Configuring 'qt_wm' for the following Android ABIs: arm64-v8a (default)
    [cmake] -- Found android platform plugin at: /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/plugins/platforms/libplugins_platforms_qtforandroid_arm64-v8a.so
    [cmake] CMake Warning (dev) at /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3506 (message):
    [cmake]   Qt policy QTP0002 is not set: Target properties that specify
    [cmake]   android-specific paths may contain generator expressions but they must
    [cmake]   evaluate to valid JSON strings.  Check
    [cmake]   https://doc.qt.io/qt-6/qt-cmake-policy-qtp0002.html for policy details.
    [cmake]   Use the qt_policy command to set the policy and suppress this warning.
    [cmake] 
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:1153 (__qt_internal_setup_policy)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:136 (_qt_internal_android_format_deployment_paths)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:1699 (qt6_android_generate_deployment_settings)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:799 (_qt_internal_android_executable_finalizer)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:799 (cmake_language)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:877 (_qt_internal_finalize_executable)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:921:EVAL:1 (qt6_finalize_target)
    [cmake]   wm-ui/CMakeLists.txt:DEFERRED
    [cmake] This warning is for project developers.  Use -Wno-dev to suppress it.
    [cmake] 
    [cmake] -- Configuring done (1.9s)
    [cmake] CMake Error at /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:404 (file):
    [cmake]   Error evaluating generator expression:
    [cmake] 
    [cmake]     $<TARGET_FILE:Qt6::QAndroidStylePlugin>
    [cmake] 
    [cmake]   No target "Qt6::QAndroidStylePlugin"
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:1699 (qt6_android_generate_deployment_settings)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:799 (_qt_internal_android_executable_finalizer)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:799 (cmake_language)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:877 (_qt_internal_finalize_executable)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:921:EVAL:1 (qt6_finalize_target)
    [cmake]   wm-ui/CMakeLists.txt:DEFERRED
    [cmake] 
    [cmake] 
    [cmake] CMake Error at /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:404 (file):
    [cmake]   Error evaluating generator expression:
    [cmake] 
    [cmake]     $<TARGET_FILE:Qt6::QAndroidStylePlugin>
    [cmake] 
    [cmake]   No target "Qt6::QAndroidStylePlugin"
    [cmake] Call Stack (most recent call first):
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:1699 (qt6_android_generate_deployment_settings)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:799 (_qt_internal_android_executable_finalizer)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:799 (cmake_language)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:877 (_qt_internal_finalize_executable)
    [cmake]   /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:921:EVAL:1 (qt6_finalize_target)
    [cmake]   wm-ui/CMakeLists.txt:DEFERRED
    [cmake] 
    [cmake] 
    [cmake] -- Generating done (0.1s)
    [cmake] CMake Generate step failed.  Build files cannot be regenerated correctly.
    [cmake] 
    [cmake] The command "/opt/Entwicklung/cmake/bin/cmake -S /home/martin/Entwicklung/Qt/qt_wm -B /home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release -DCMAKE_C_COMPILER:FILEPATH=/opt/Entwicklung/Android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID_PLATFORM:STRING=android-28 -DANDROID_STL:STRING=c++_shared -DANDROID_NDK:PATH=/opt/Entwicklung/Android/sdk/ndk/27.2.12479018 -DQT_NO_GLOBAL_APK_TARGET_PART_OF_ALL:BOOL=ON -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/martin/Entwicklung/Qt/qt_wm/build/Qt_6_10_1_for_Android_arm64_v8a-Release/.qtc/package-manager/auto-setup.cmake -DANDROID_ABI:STRING=arm64-v8a -DQT_USE_TARGET_ANDROID_BUILD_DIR:BOOL=ON -DANDROID_USE_LEGACY_TOOLCHAIN_FILE:BOOL=OFF -DQT_MAINTENANCE_TOOL:FILEPATH=/opt/Entwicklung/Qt/MaintenanceTool -DANDROID_SDK_ROOT:PATH=/opt/Entwicklung/Android/sdk -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/opt/Entwicklung/Android/sdk/ndk/27.2.12479018/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PREFIX_PATH:PATH=/opt/Entwicklung/Qt/6.10.1/android_arm64_v8a -DQT_HOST_PATH:PATH=/opt/Entwicklung/Qt/6.10.1/gcc_64 -DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/bin/qmake -DCMAKE_FIND_ROOT_PATH:PATH=/opt/Entwicklung/Qt/6.10.1/android_arm64_v8a -DCMAKE_CXX_FLAGS_INIT:STRING= -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_CXX_COMPILER:FILEPATH=/opt/Entwicklung/Android/sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++" terminated with exit code 1.
    [cmake] 
    [cmake] Elapsed time: 00:02.
    

    I don't know where the problem is. Can you give me a tip for the solution?

    THank you for your help.
    BR
    Martin

    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Hi @msauer751 and merry Christmas!

      the failing app seems to have a dependency on widgets, that is not correctly handled in its CMakeLists.txt.

      This is first observed here:

      [cmake] CMake Warning at /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:285 (message):
      [cmake]   The Widgets target is mentioned as a dependency for wm-lib, but not
      [cmake]   declared.  The linking might be incomplete.
      

      It causes this error:

      [cmake] CMake Error at /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:404 (file):
      [cmake]   Error evaluating generator expression:
      [cmake] 
      [cmake]     $<TARGET_FILE:Qt6::QAndroidStylePlugin>
      [cmake] 
      [cmake]   No target "Qt6::QAndroidStylePlugin"
      

      From the logs, it looks as if the application uses Quick/QML as well as widgets and the same time.
      Is that really needed?
      If you need more help, please post the CMakeLists.txt.
      Maybe the issue can be fixed with a little cleanup.

      Cheers
      Axel

      Software Engineer
      The Qt Company, Oslo

      msauer751M 1 Reply Last reply
      0
      • msauer751M Offline
        msauer751M Offline
        msauer751
        wrote on last edited by msauer751
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Axel SpoerlA Axel Spoerl

          Hi @msauer751 and merry Christmas!

          the failing app seems to have a dependency on widgets, that is not correctly handled in its CMakeLists.txt.

          This is first observed here:

          [cmake] CMake Warning at /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:285 (message):
          [cmake]   The Widgets target is mentioned as a dependency for wm-lib, but not
          [cmake]   declared.  The linking might be incomplete.
          

          It causes this error:

          [cmake] CMake Error at /opt/Entwicklung/Qt/6.10.1/android_arm64_v8a/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake:404 (file):
          [cmake]   Error evaluating generator expression:
          [cmake] 
          [cmake]     $<TARGET_FILE:Qt6::QAndroidStylePlugin>
          [cmake] 
          [cmake]   No target "Qt6::QAndroidStylePlugin"
          

          From the logs, it looks as if the application uses Quick/QML as well as widgets and the same time.
          Is that really needed?
          If you need more help, please post the CMakeLists.txt.
          Maybe the issue can be fixed with a little cleanup.

          Cheers
          Axel

          msauer751M Offline
          msauer751M Offline
          msauer751
          wrote on last edited by
          #4

          @Axel-Spoerl

          Hi Axel,
          merry christmas, too.

          I forgot to include

          find_package(Qt6 COMPONENTS Widgets REQUIRED)
          

          in the main function.
          Now it works.

          BR
          Martin

          1 Reply Last reply
          0
          • Axel SpoerlA Axel Spoerl has marked this topic as solved on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved