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

qtdeclarative cannot be built for Android with tests enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 6.2.0 Alpha
    • Build System
    • None
    • Android

    Description

      trying

      basedir=`pwd`
      mkdir qtbase
      pushd qtbase
      /usr/bin/cmake  -DWARNINGS_ARE_ERRORS=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/gcc-11 -DCMAKE_CXX_COMPILER=/usr/bin/g++-11 -G Ninja -DFEATURE_developer_build
      =ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_TESTS=ON -DQT_BUILD_EXAMPLES=ON /home/andreasbuhr/development/qtdev/qtbase
      /usr/bin/cmake --build .
      popd
      
      mkdir qtbase-android
      pushd qtbase-android
      /usr/bin/cmake  -DWARNINGS_ARE_ERRORS=OFF -DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/21.3.6528147/build/cmake/android.toolchai
      n.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk -DQT_HOST_PATH=$basedir/qtbase -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_TESTS=ON /ho
      me/andreasbuhr/development/qtdev/qtbase
      /usr/bin/cmake --build .
      ninja analogclock_make_apk
      popd
      
      mkdir qtshadertools
      pushd qtshadertools
      /usr/bin/cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=$basedir/qtbase/lib/cmake/Qt6/qt.toolchain.cmake /home/andreasbuhr/development/qtdev/qtshadertools
      cmake --build .
      popd
      
      mkdir qtshadertools-android
      pushd qtshadertools-android
      /usr/bin/cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=$basedir/qtbase-android/lib/cmake/Qt6/qt.toolchain.cmake -DQT_BUILD_EXAMPLES=ON /home/andreasbuhr/development/qtdev/qtshadertools
      cmake --build .
      popd
      
      mkdir qtdeclarative
      pushd qtdeclarative
      /usr/bin/cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=$basedir/qtbase/lib/cmake/Qt6/qt.toolchain.cmake -DQT_BUILD_TESTS=ON /home/andreasbuhr/development/qtdev/qtdeclarative
      cmake --build .
      popd
      
      mkdir qtdeclarative-android
      pushd qtdeclarative-android
      /usr/bin/cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=$basedir/qtbase-android/lib/cmake/Qt6/qt.toolchain.cmake -DQT_BUILD_TESTS=ON /home/andreasbuhr/development/qtdev/qtdeclarative
      cmake --build .
      popd
      
      

      leads to

      CMake Error at /home/andreasbuhr/development/qtdev/qtbase/cmake/QtToolHelpers.cmake:50 (message):
        The tool "qjstest" has not been assigned to a module via TOOLS_TARGET (so
        it can't be found) and it can't be built (QT_WILL_BUILD_TOOLS is FALSE).
      Call Stack (most recent call first):
        tests/auto/qml/ecmascripttests/qjstest/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      -- Configuring incomplete, errors occurred!
      
      

      Attachments

        Issue Links

          Activity

            People

              qtbuildsystem Qt Build System Team
              andreasbuhr Andreas Buhr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: