In article <[email protected]>, Eike Ziller <[email protected]> wrote:
> On Feb 4, 2010, at 1:41 AM, ext Stephen Chu wrote: > > > > 2. On Windows, rcc.exe reports that the qrc file does not exist. I think > > it's given a relative path from the build folder but the working dir is > > the project dir. Placing the shadow dir next to the project one solves > > it. > > Yeah, we should really give a warning in Qt Creator if you specify a shadow > build directory that qmake can't handle. Actually Creator should handle this easily. It's just that rcc is given a path relative to the shadow build dir but it's set to work in the project dir. Setting the working dir of rcc to the shadow build dir will fix that. But I am not sure if this is a Creator or qmake issue. Say my project is at C:\Projects\MyProject\MyProject.pro and the shadow build directory is set to C:\Shadow\ When compiling C:\Projects\MyProject\MyProject.qrc, rcc is given a path "..\Projects\MyProject\MyProject.qrc" which is a relative path calculated from C:\Shadow\ but rcc is set to use C:\Projects\MyProject\ as its working directory from where the given input path is wrong. That's why using a shadow build directory next to the project dir works. The relative path to the qrc file is the same calculating from both directories. I hope this is a easy fix. Easy for me to say. :) -- Stephen Chu _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
