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:

Qt Code:
  1. $ mkdir proj
  2. $ cd proj
  3. $ qmake /path/to/source/dir/proj.pro
  4. $ make
To copy to clipboard, switch view to plain text mode 

I got the following message during the compilation of resources:

Qt Code:
  1. /usr/local/qt-4.7.0/bin/rcc: File does not exist '/path/to/project/file.qrc'
To copy to clipboard, switch view to plain text mode 

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.

Qt Code:
  1. $ ls /path/to/project/file.qrc
To copy to clipboard, switch view to plain text mode 

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.