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

QtC call the wrong Makefile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: Qt Creator 4.8.0-beta1
    • Fix Version/s: None
    • Labels:

      Description

      When using a subdir project, setup like this:

      TEMPLATE=subdirs
      app.file = app/stuff/app.pro
      subdirs += app
      lib.file = lib/stuff/lib.pro
      subdirs += lib

      And lib.pro contains QMAKE_MAKEFILE = lib.mk

      When asking QtC to build the 'lib' subdir (from project pane, contextual menu), then an error occured:

      lib/stuff/Makefile: No such file or directory

      Real log, using latest git master version of QtC:

      17:21:22: Running steps for project MFDApp...
      17:21:22: Starting: "/opt/qt511/bin/qmake" /home/chgans/Projects/nos/AIS/Builds/AIS.pro -spec linux-g++ CONFIG+=qml_debug CONFIG+=qtquickcompiler CONFIG+=force_debug_info CONFIG+=separate_debug_info
      17:21:23: The process "/opt/qt511/bin/qmake" exited normally.
      17:21:23: Starting: "/usr/bin/make" -f /home/chgans/tmp/build-MFDApp-Qt_5_11-Profile/AIS/Builds/Makefile qmake_all
      make: /home/chgans/tmp/build-MFDApp-Qt_5_11-Profile/AIS/Builds/Makefile: No such file or directory
      make: *** No rule to make target '/home/chgans/tmp/build-MFDApp-Qt_5_11-Profile/AIS/Builds/Makefile'.  Stop.
      17:21:23: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project MFDApp (kit: Qt 5.11)
      When executing step "qmake"
      17:21:23: Elapsed time: 00:00. 

      Expected behaviour:
      It should call the custom Makefile:

      /usr/bin/make -f /home/chgans/tmp/build-MFDApp-Qt_5_11-Profile/AIS/Builds/AIS.mk qmake_all
      

        Attachments

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

          Activity

            People

            • Assignee:
              kandeler Christian Kandeler
              Reporter:
              christian_gagneraud_navico Christian Gagneraud
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes