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

MinGW build and WINVER issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 1.19.0
    • Fix Version/s: None
    • Component/s: API: JavaScript
    • Labels:
      None

      Description

      I've noticed a strange behavior in MinGW build of Qbs. TestBlackboxQt::dbusAdaptors and TestBlackboxQt::dbusInterfaces tests fail because Qbs passes invalid WINVER macro:

      "-DWINVER=0x0000" "-D_WIN32_WINNT=0x0000" "-D_WIN32_WINDOWS=0x0000"
      

      Debugging shows the problem is in the getWindowsVersionInFormat:

      return "0x" + ("0000" + ((major << 8) | minor).toString(16)).slice(-4);
      

      For some reason, ((major << 8) | minor) is 0 for non-zero values:

          console.info(major);
          console.info(minor);
          console.info(((major << 8) | minor).toString(16));
          console.info("0000" + ((major << 8) | minor).toString(16));
      
      used version = 6.0
      
      6
      0
      0
      00000
      

      QtScript bug?

        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:
            arch Ivan Komissarov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes