Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13959

Incorrect path for ANDROID_PACKAGE_SOURCE_DIR when adding an Android manifest file to a subdirs project in Qt Creator by wizard.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Not Evaluated
    • Resolution: Done
    • Qt Creator 3.3.0
    • Qt Creator 3.4.0-beta1
    • Android Support
    • None
    • Qt version : Qt 5.4.0 for Android, Linux 32-bit
      Qt Creator 3.3.0

    Description

      I have a subdirs project that i want to compile for Android. It's like :

      TEMPLATE = subdirs
      CONFIG += ordered
      SUBDIRS += \
          Library1 \
          Library2 \
          Main_App
      

      Library1 and Library2 are submodules of type lib (TEMPLATE = lib), that are used in Main_App which is of type app (TEMPLATE = app).

      Now when i want to add a manifest file, I go to Projects > Build Android APK > Details and click on Create Templates. The wizard is shown and the manifest file is created in the directory : MyProject/Main_App/android. But the line related to the android package source directory that is automatically added to the .pro of Main_App is like :

      ANDROID_PACKAGE_SOURCE_DIR = $$PWD/Main_App/android
      

      Which ofcourse is incorrect. It should be :

      ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
      

      That's because $$PWD in the .pro of Main_App refers to MyProject/Main_App/. It's a little annoying and you have to correct the path each time you add a manifest file to a subdirs project.

      Attachments

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

        Activity

          People

            dt Daniel Teske
            nejatafshar Nejat Afshar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes