rcc: File does not exist

自古美人都是妖i 提交于 2021-01-28 05:03:14

问题


i am using a custom version of QLed for my project. Actually it worked fine when i first included the files in my project. Somehow i end up with this weird error from rcc now. The .svg files are shown when executing the UI. This is my project's folder:

|-- _UI_Projects
|   |-- XmlReader
|   |   |-- include
|   |   |   |-- ...
|   |   |-- resources
|   |   |   |-- circle_black.svg
|   |   |   |-- circle_blue.svg
|   |   |   |-- circle_green.svg
|   |   |   |-- ...
|   |   |-- src
|   |   |   |-- ...
|   |   |-- qled.qrc
|   |   `-- xml_reader.pro

and qmake-qt4 ~/_UI_Projects/XmlReader/xml_reader.pro gives me:

/usr/lib64/qt4/bin/rcc: File does not exist: '../_UI_Projects/XmlReader/qled.qrc

This is my project file:

#####################################################
#                  My Project File                  #
#####################################################


greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): QT += serialport

TEMPLATE = app

DEPENDPATH += . include resources src
INCLUDEPATH += . include

# Input
HEADERS += include/mainwindow.h \
            include/... (and so on)


SOURCES += src/main.cpp \
            src/...(and so on)

RESOURCES = qled.qrc

QT += svg
QT += testlib

I found few information on this rcc error so i would appreciate some help on this one.

EDIT: Excerpt from qled.qrc added below

<RCC>
    <qresource prefix="/">
        <file>resources/circle_green.svg</file>
        <file>resources/circle_grey.svg</file>
        <file>resources/circle_orange.svg</file>
        ... and so on and so on
    </qresource>
</RCC>

来源:https://stackoverflow.com/questions/35340861/rcc-file-does-not-exist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!