Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-13

Build process should stop execution if a step fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • QtTAS 1.0
    • QtTAS: General
    • None
    • macOS
    • 06bca02ef (dev), 4d8c81c89 (1.0)

    Description

      The three stage process - configure, build, deploy - should not execute further steps if a step fails. For example, if we introduce a syntax error to the QML file, the build should fail and androiddeployqt should not be executed. Instead it is and the last error line is from androiddeployqt, which may confuse the user.

      -- Android toolchain file within NDK detected: /Users/ollivuolteenaho/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
      -- Android toolchain file within NDK detected: /Users/ollivuolteenaho/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
      -- The CXX compiler identification is Clang 17.0.2
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Users/ollivuolteenaho/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
      -- Check if compiler accepts -pthread
      -- Check if compiler accepts -pthread - yes
      -- Found Threads: TRUE  
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE  
      -- Performing Test HAVE_EGL
      -- Performing Test HAVE_EGL - Success
      -- Found EGL: /Users/ollivuolteenaho/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include (found version "1.5") 
      -- Performing Test HAVE_GLESv2
      -- Performing Test HAVE_GLESv2 - Success
      -- Found GLESv2: /Users/ollivuolteenaho/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include  
      -- Found WrapVulkanHeaders: /Users/ollivuolteenaho/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include  
      -- Configuring 'embedded_qml' for the following Android ABIs: arm64-v8a (default)
      -- Found android platform plugin at: /Users/ollivuolteenaho/Qt/6.7.0/android_arm64_v8a/./plugins/platforms/libplugins_platforms_qtforandroid_arm64-v8a.so
      -- Configuring done (2.0s)
      -- Generating done (0.0s)
      -- Build files have been written to: /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build
      /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/main.qml:76:Expected token `}'
      /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/embedded_qml/main.qml:76:Expected token `}'
      CMake Warning:
        Manually-specified variables were not used by the project:    SPECIAL_FLAG
      [1/18] Copying main.qml to /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/embedded_qml/main.qml
      [2/18] Automatic MOC and UIC for target embedded_qml
      [3/18] Running rcc for resource embedded_qml_raw_qml_0
      [4/18] Running rcc for resource qmake_embedded_qml
      [5/18] Running AUTOMOC file extraction for target embedded_qml
      [6/18] Generating .rcc/qmlcache/embedded_qml_qmlcache_loader.cpp
      [7/18] Running moc --collect-json for target embedded_qml
      [8/18] Automatic QML type registration for target embedded_qml
      [9/18] Generating .rcc/qmlcache/embedded_qml_main_qml.cpp
      FAILED: .rcc/qmlcache/embedded_qml_main_qml.cpp /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/.rcc/qmlcache/embedded_qml_main_qml.cpp 
      cd /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build && /Users/ollivuolteenaho/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -E make_directory /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/.rcc/qmlcache && /Users/ollivuolteenaho/Qt/6.7.0/macos/./libexec/qmlcachegen --bare --resource-path /qt/qml/embedded_qml/main.qml -I /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build -I /Users/ollivuolteenaho/Qt/6.7.0/android_arm64_v8a/./qml -i /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/embedded_qml/qmldir --resource /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/.rcc/qmake_embedded_qml.qrc --resource /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/.rcc/embedded_qml_raw_qml_0.qrc -o /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/.rcc/qmlcache/embedded_qml_main_qml.cpp /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/main.qml
      Error compiling qml file: /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/main.qml:76:1: error: Expected token `}'
      ninja: build stopped: subcommand failed.
      Cannot find application binary in build dir /Users/ollivuolteenaho/dev/qtdeclarative/examples/platforms/android/qml_project/build/android-build//libs/arm64-v8a/libembedded_qml_arm64-v8a.so.
      

      Attachments

        Issue Links

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

          Activity

            People

              nikunj Nikunj Arora
              olvuolte Olli Vuolteenaho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes