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

MinGW build and WINVER issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 1.19.0
    • API: JavaScript
    • 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

            kandeler Christian Kandeler
            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