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

Creator adds -spec to qmake command line, overriding what is set in .qmake.cache

    XMLWordPrintable

Details

    • 2fb8e135297aa061b362d407d5c0a3bcd7f8b71d d94092a018096a4537fe2576c5a609af7d86b2b4

    Description

      When using Qt Creator from the 2.4 branch to work on qt5/qtbase, it insists on adding '-spec xxx' to the qmake command line. However, the mkspec it chooses is not the one used to build Qt.

      To reproduce, first build Qt with a different mkspec:
      git clone qt/qtbase.git
      cd qtbase
      ./configure -developer-buid -platform unsupported/macx-clang
      make

      Now, load qtbase.pro into Qt Creator, tell it to import the existing build. Once loaded, press the build button. The compile output window shows this:

      Running build steps for project qtbase...
      Starting: "/Volumes/Users/bhughes/src/qt5/qtbase/bin/qmake" /Volumes/Users/bhughes/src/qt5/qtbase/qtbase.pro -r -spec macx-g++42
      ...

      This is the wrong mkspec.

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes