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

RCC-generated file is broken: "Too many initializers for ‘const unsigned char [4]’"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.4.0 Beta
    • Fix Version/s: 5.4.0 RC
    • Component/s: Core: Resource System
    • Labels:
      None
    • Environment:
      KUbuntu 14.04
    • Commits:
      cf30a3d9b2e8584fa419ea1a6ee3d64a140352a0

      Description

      ./qrc_audio.cpp:13:91: error: too many initializers for ‘const unsigned char [4]’
       static const unsigned char qt_resource_data[4] = { 'Q', 'R', 'C', '_', 'D', 'A', 'T', 'A' };

      In the generated qrc*.cpp file I see:

      /****************************************************************************
      ** Resource object code
      **
      ** Created by: The Resource Compiler for Qt version 5.4.0
      **
      ** WARNING! All changes made in this file will be lost!
      *****************************************************************************/
      
      ... <path to audio.qss>
      
      static const unsigned char qt_resource_data[4] = { 'Q', 'R', 'C', '_', 'D', 'A', 'T', 'A' };
      
      static const unsigned char qt_resource_name[] = {
        // audio.qss
      
      ...

        Attachments

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

          Activity

            People

            Assignee:
            hjk hjk
            Reporter:
            dmitry64 Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes