Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5900

moc doesn't work properly for x64 Windows 7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • 4.7.0
    • 3.x
    • Build tools: moc
    • None

      Although this bug manifests in moc, it appears to be caused by QFile not recognising the volume label in a canonical file path returned by QFileInfo::canonicalFilePath()

      Line 824 of preprocessor.cpp (moc) is:-

      include = fi.canonicalFilePath().toLocal8Bit();

      If this is changed to

      include = fi.absoluteFilePath().toLocal8Bit();

      the problem disappears.

      I suspect there is a difference between the Volume label generated by 64 bit Windows to that generated on x86 versions and that QFile doesn't recognise the volume label for 64 bit versions.

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

            poulain Benjamin Poulain (closed Nokia identity) (Inactive)
            cattell Matthew Cattell (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes