Results 1 to 4 of 4

Thread: Problem in building outside source directory(loading qrc files fails)

  1. #1
    Join Date
    May 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem in building outside source directory(loading qrc files fails)

    Hi,

    When I try to compile my application from outside source directory(like src/build/), I always have the problem that it doesn't find the resource files.

    I think there is something wrong in the relative path search, but can't
    figure out what. I get the message below for every resource:

    /home/jayakrishnan/qtsdk-2009.01/qt/bin/rcc: File does not exist '../../resources/resources.qrc'
    /home/jayakrishnan/qtsdk-2009.01/qt/bin/rcc: File does not exist '../../examples/HeadersFooters.qrc'

    An extra ../../ is appended to the path of each resource file.

    Thanks in advance.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem in building outside source directory(loading qrc files fails)

    Try building outside, not within the source tree (eg. make "build" in parallel to "src", not under).
    J-P Nurmi

  3. #3
    Join Date
    May 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in building outside source directory(loading qrc files fails)

    Thanks.

    How to build inside source directory(like src/build/)?

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem in building outside source directory(loading qrc files fails)

    I'm afraid somebody needs to fix the problem in qmake/rcc (or wherever it is) before you can do that.
    J-P Nurmi

Similar Threads

  1. Problem building open source SDK 2009.3.1
    By jmansion in forum Installation and Deployment
    Replies: 1
    Last Post: 16th September 2009, 11:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.