Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-717

Incorrect setup profile for Qt 4.8.6 under Windows (only debug variant)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.3.4
    • 1.3.3
    • General
    • None
    • Windows 7 x86_64, MSVS2010_x86, qbs 541b3f38dbfaab955560c42eb5a16958412f7f92
    • edf1ea7d385d0b672ca6ff0bc1a8cb84f7266d20

    Description

      I have setup msvc2010 build of Qt4 and Qt5 in
      E:\Qt\4.8.5\bin\
      and
      E:\Qt\Qt5.2.0\5.2.0\msvc2010\bin\
      respectivetely.

      When i setup both, profile for Qt5 has buildVariant: ["debug", "release"], but for qt only "debug".
      also, creation "core.qbs" by template also failed.

      for some reason, in

       // determine whether Qt is built with debug, release or both
          if (qtEnvironment.qtConfigItems.contains(QLatin1String("debug_and_release"))) {
              qtEnvironment.buildVariant << QLatin1String("debug") << QLatin1String("release");
          } else {
              int idxDebug = qtEnvironment.qtConfigItems.indexOf(QLatin1String("debug"));
              int idxRelease = qtEnvironment.qtConfigItems.indexOf(QLatin1String("release"));
              if (idxDebug < idxRelease)
                  qtEnvironment.buildVariant << QLatin1String("release");
              else
                  qtEnvironment.buildVariant << QLatin1String("debug");
          }
      

      it selects only "debug" variant.

      So it PREVENTS normal use of qbs, I couldn't build anything for release!!

      I had to fix it dirty placing
      qtEnvironment.buildVariant= QStringList() << "release" << "debug";
      after that fragment.

      ps. qt 4.8.5/4.8.6 no difference.

      Attachments

        1. core-qt4-fail.qbs
          13 kB
        2. core-qt5-fail.qbs
          14 kB
        3. qt-setup-log.txt
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            mapron Smirnov Vladimir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes