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

Rcc generates invalid cpp file with -binary flag set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.0
    • Build tools: rcc
    • None
    • Windows 7 32-bit MinGW 4.8

      When adding -binary flag to QMAKE_RESOURCE_FLAGS causes rcc to output a version of the generated cpp file which cannot be compiled due to some kind of error in nonprintable characters the top of the cpp file. A small extract of the many errors is as follows:

      debug\qrc_resources.cpp:1:5: warning: null character(s) ignored [enabled by default]
      qres
      ^
      debug\qrc_resources.cpp:1:1: error: stray '\1' in program
      qres

      In addition, warnings over potential duplicate aliases detected are also shown, where the qrc file is known to be correct.

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

            hjk hjk
            miketrahearn Mike Trahearn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes