PDA

View Full Version : rcc: File does not exist



lyuts
18th October 2010, 08:15
Hi, guys.
I’m facing a rather interesting behavior of rcc. I was building one of the projects in a build directory outside the source directory. I ran:



$ mkdir proj
$ cd proj
$ qmake /path/to/source/dir/proj.pro
$ make


I got the following message during the compilation of resources:


/usr/local/qt-4.7.0/bin/rcc: File does not exist '/path/to/project/file.qrc'

The first thought that I had (as expected) that the path to qrc file was not valid as relatively to build dir. But what confused me is that the binary has been compiled successfully and all the resources are successfully found at runtime, i.e. I can see all my icons when I run this application.

Besides that, running the next command is proving that rcc is looking at the right place because it ls finds the resource file by the path reported by rcc.


$ ls /path/to/project/file.qrc

Note: When specifying the path to icons I use the notation appropriate for resource paths as described in qt docs.

Does anybody know what really happens here and why the error reported?

Thanks.

tbscope
18th October 2010, 08:19
Can you show the .pro file please?

lyuts
18th October 2010, 08:26
Can you show the .pro file please?


TEMPLATE = app
TARGET = MyApp

DEPENDPATH += . ui
INCLUDEPATH += . src

MOC_DIR = .moc
OBJECTS_DIR = .obj
UI_DIR = .uic
UI_HEADERS_DIR = ui

# Input
FORMS += ui/MainDialog.ui

SOURCES += src/main.cpp \
src/MainDialog.cpp

HEADERS += src/MainDialog.h

RESOURCES += MyApp.qrc