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

"New Qt Project" wizard uses the same name for project target name and QML URI name

    XMLWordPrintable

Details

    • macOS
    • 7eb93ab08 (dev), 1fc2aa2c5 (3.0)

    Description

      The "New Qt Project" wizard seems to create a new Qt CMake project and gives the name provided to the project target name and also to URI set with qt_add_qml_module(), that seems to cause a build failure:

      [15/15] Creating AAR for QtTASQtAppTarget
      FAILED: android-build-QtTASQtAppTarget/QtTASQtAppTarget.aar /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/QtTASQtAppTarget.aar 
      cd /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp && /Users/assam/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -E copy /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/libQtTASQtAppTarget_x86.so /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/libs/x86/libQtTASQtAppTarget_x86.so && /Users/assam/Qt/6.8.0/macos/bin/androiddeployqt --input /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-QtTASQtAppTarget-deployment-settings.json --output /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget --apk /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/QtTASQtAppTarget.aar --depfile /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/QtTASQtAppTarget.d --builddir /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp --build-aar "" && /Users/assam/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/assam/AndroidStudioProjects/QtTASQtApp /Users/assam/AndroidStudioProjects/QtTASQtApp /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/QtTASQtAppTarget.d /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/CMakeFiles/d/47f1f6ed54f89f311e8d67ce0d072e2f88e502b9334abc85ebfa91558e0da982.d
      Generating Android Package
        Input file: /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-QtTASQtAppTarget-deployment-settings.json
        Output directory: /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget/
        Application binary: QtTASQtAppTarget
        Android build platform: android-34
        Install to device: No
      A QML module name (QtTASQtAppTarget) cannot be the same as the target name when building with QT_ANDROID_GENERATE_JAVA_QML_COMPONENTS flag.
      Generating Java QML Components in /Users/assam/AndroidStudioProjects/QtTASTestApp/app/build/qt_generated/QtTASQtApp/android-build-QtTASQtAppTarget//src/org/qtproject/example/QtTASQtAppTarget directory.
      ninja: build stopped: subcommand failed. 

      Attachments

        Issue Links

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

          Activity

            People

              soarmin Soheil Armin
              assam Assam Boudjelthia
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes