The Qt Resource System compile error



  • 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.



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

    Cheers



  • 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.


  • Moderators

    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.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.