Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Rcc: File does not exist
Forum Updated to NodeBB v4.3 + New Features

Rcc: File does not exist

Scheduled Pinned Locked Moved General and Desktop
12 Posts 3 Posters 17.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lyuts
    wrote on last edited by
    #3

    Sorry, I should have pasted it earlier. Here it is:

    @TEMPLATE = app
    TARGET = MyApp

    QT += phonon

    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@

    I'm a rebel in the S.D.G.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on last edited by
      #4

      Have you try to use this?
      @
      RESOURCES += src/MyApp.qrc
      @

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lyuts
        wrote on last edited by
        #5

        [quote author="stuk" date="1287413512"]Have you try to use this?
        @
        RESOURCES += src/MyApp.qrc
        @[/quote]

        MyApp.qrc is not in src directory, but on the same level as src/.

        I'm a rebel in the S.D.G.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stukdev
          wrote on last edited by
          #6

          Interesting, are you sure that the build of qrc is really build? For example have you try to run a make clean? After the qrc is build correctly?

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lyuts
            wrote on last edited by
            #7

            [quote author="stuk" date="1287414185"]Interesting, are you sure that the build of qrc is really build? For example have you try to run a make clean? After the qrc is build correctly?[/quote]

            Are you asking if I'm sure that qrc has been successfully compiled? If yes, then yes, I'm sure.

            1. I have done lots of clean builds/rebuilds
            2. When running make I see
              @/usr/local/qt-4.7.0/bin/rcc -name MyApp /path/to/MyApp/MyApp.qrc -o qrc_MyApp.cpp@
            3. I run this application and all icons which are inside that resource are here.

            I'm a rebel in the S.D.G.

            1 Reply Last reply
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #8

              a wild guess here... :)
              Could it be related to one specific resource file that the code is calling, but does not exist in the resource file or the path in the code is wrong for this file?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stukdev
                wrote on last edited by
                #9

                bq. a wild guess here… :)
                Could it be related to one specific resource file that the code is calling, but does not exist in the resource file or the path in the code is wrong for this file?

                In windows this not build the program
                @RCC: Error in '..\testKeyEvent\test.qrc': Cannot find file 'test.txt'@

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lyuts
                  wrote on last edited by
                  #10

                  [quote author="chetankjain" date="1287415200"]a wild guess here... :)
                  Could it be related to one specific resource file that the code is calling, but does not exist in the resource file or the path in the code is wrong for this file?[/quote]

                  When I came across such behavior I thought about wrong paths, so I checked them. For example, here is how I use the the icon from resource:

                  @QIcon(":/img/logo.png")@

                  As far as I understood the qt docs, this is how I should reference the files in my resource.

                  UPD: chetankjain, I think I misunderstood your post. My apologies.

                  I'm a rebel in the S.D.G.

                  1 Reply Last reply
                  0
                  • ? This user is from outside of this forum
                    ? This user is from outside of this forum
                    Guest
                    wrote on last edited by
                    #11

                    ok just tried my suggestion, and there is no warning message too

                    e.g.: My qrc file has 1.jpg, and in code I refer to 2.jpg

                    forgive my interruption, like I said it was a wild guess :p

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      stukdev
                      wrote on last edited by
                      #12

                      bq. ok just tried my suggestion, and there is no warning message too
                      e.g.: My qrc file has 1.jpg, and in code I refer to 2.jpg
                      forgive my interruption, like I said it was a wild guess :p

                      Ok, i think you tell error in syntax in .qrc not in a code :) In this case yes, no warning :) But i thinks is normal not check if the files exist or not, it assume QString is a valid files :)

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved