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
Forum Updated to NodeBB v4.3 + New Features

The Qt Resource System compile error

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.4k Views 1 Watching
  • 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 18 Jun 2014, 09:04 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
    • G Offline
      G Offline
      guidupas
      wrote on 18 Jun 2014, 14:31 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 18 Jun 2014, 15:22 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
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 18 Jun 2014, 15:28 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 18 Jun 2014, 15:39 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

            1/5

            18 Jun 2014, 09:04

            • Login

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