Results 1 to 3 of 3

Thread: rcc: File does not exist

  1. #1
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default rcc: File does not exist

    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.
    I'm a rebel in the S.D.G.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: rcc: File does not exist

    Can you show the .pro file please?

  3. #3
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: rcc: File does not exist

    Quote Originally Posted by tbscope View Post
    Can you show the .pro file please?
    Qt Code:
    1. TEMPLATE = app
    2. TARGET = MyApp
    3.  
    4. DEPENDPATH += . ui
    5. INCLUDEPATH += . src
    6.  
    7. MOC_DIR = .moc
    8. OBJECTS_DIR = .obj
    9. UI_DIR = .uic
    10. UI_HEADERS_DIR = ui
    11.  
    12. # Input
    13. FORMS += ui/MainDialog.ui
    14.  
    15. SOURCES += src/main.cpp \
    16. src/MainDialog.cpp
    17.  
    18. HEADERS += src/MainDialog.h
    19.  
    20. RESOURCES += MyApp.qrc
    To copy to clipboard, switch view to plain text mode 
    I'm a rebel in the S.D.G.

Similar Threads

  1. Qt Creator: File Makefile doesn't exist
    By earthling in forum Qt Tools
    Replies: 6
    Last Post: 4th November 2016, 04:44
  2. Replies: 1
    Last Post: 2nd October 2010, 23:11
  3. Qt Creator: File Makefile doesn't exist
    By earthling in forum Qt Programming
    Replies: 0
    Last Post: 9th December 2009, 18:46
  4. Replies: 1
    Last Post: 27th September 2008, 21:12
  5. XML Database: eXist
    By Lykurg in forum Qt Programming
    Replies: 3
    Last Post: 7th March 2007, 00:22

Tags for this Thread

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.