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

qt-setup for static Qt4 seems to be broken (windows, msvc)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.4.1
    • 1.4.0
    • General
    • None
    • Windows 8.1, msvc 2013
    • e703ca1c84b0f51f3c9d82bdfe7bc646afcb9582

    Description

      Not that I think that many people are interested in using qbs to build with static Qt4 version but it would be very nice if you could fix that. I noticed that qbs generates wrong library names for Qt4 static build in modules i.e. qtcored4.lib instead of qtcored.lib. I found the culprit to be the following lines:

              if (!isStaticLibrary && qtEnvironment.qtMajorVersion < 5)
                  name += QString::number(qtEnvironment.qtMajorVersion);
      

      In my case it's static build of Qt indeed but contrary to allQt5Modules function assignment to isStaticBuild seems to be totally missing from allQt4Modules except for some axContainer module.

      However it seems like it's not easy to detect if Qt was built statically for Qt4 indeed, the one possible way I found is to check CONFIG += line in qconfig.pri which is in mkspesc dir

      Attachments

        For Gerrit Dashboard: QBS-804
        # Subject Branch Project Status CR V

        Activity

          People

            jbornema Joerg Bornemann
            predelnik Sergey Semushin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes