Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The Qt Resource System compile error

The Qt Resource System compile error

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bathang
    wrote on last edited by
    #1

    Hello all,
    I have a problem when compile rcc file, which contains a unicode file name like this (images.qrc):
    <!DOCTYPE RCC><RCC version="1.0">
    <qresource prefix="/rcc_images">
    <file>Abrams.jpg</file>
    <file>Aixenhao.jpg</file>
    <file>Alêch xang dri.jpg</file>
    </qresource>
    </RCC>

    when i run compile command:
    C:\Qt\4.8.1\bin\rcc.exe -binary images.qrc -o images.rcc
    it says that:
    "RCC: Error in 'images.qrc': Cannot find file 'Al�ch xang dri.jpg'"

    Any one knows this error? How to compile with unicode file name in qrc file?

    Please help!
    Thank you.

    1 Reply Last reply
    0
    • guidupasG Offline
      guidupasG Offline
      guidupas
      wrote on last edited by
      #2

      Try to change the image name removing the spaces of image name. Take out special characters too.

      Cheers

      Att.
      Guilherme Cortada Dupas

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bathang
        wrote on last edited by
        #3

        Thank you for your solution, guidupas. Of course, it works. My problem is that I have a lot of image files named as unicode like I mentioned above, and I don't want to change all of them to ansi characters. Is there QT a solution for RCC to compile Unicode file name?
        Regards.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          I think that if that really does not work, it might be a good idea to file a bug report. UTF-8 is a standard, used by Qt and others everywhere, and UTF filenames should work.

          (Z(:^

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bathang
            wrote on last edited by
            #5

            It really doesn't work, the file name is UTF-8. I haven't tested on the latest RCC version. Any one know whether the latest RCC version work with UTF filenames?
            Thanks.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved