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

[REG: 12->14] Environment variables in qmake projects are not working as before

    XMLWordPrintable

Details

    Description

      • Open attached project with Android kit.
      • add MYAPP=app1 environment variable
      • run qmake

      It seems it doesn't figure out the application project and run settings are empty. Trying to build only outputs a message in General Messages about:

      Cannot open "/...../build/Android_Qt_6_7_2_Clang_x86_64-Debug/app1/android-build/AndroidManifest.xml".
      

      And in Compile Output there is a message:

      13:17:25: Product type is not an application, not running the Make install step.
      13:17:25: Product type is not an application, not building an APK.
      

      In previous Qt Creator version (14.0.0 or 13 not sure) it was also broken, but differently. It would be able to build it, but once built, if MYAPP was changed to app2, Qt Creator somehow cached the "app1" somewhere and it would just keep building the app1 change until .user file was removed, the project re-opened and MYAPP=app2 added to the environment again.

      In earlier Qt Creator (12 probably) versions it was able to handle this situation better.

      Attachments

        1. qmlapp_switch.zip
          5 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            portale Alessandro Portale
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes