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. What does this warning mean, “overriding recipe for target”
Forum Updated to NodeBB v4.3 + New Features

What does this warning mean, “overriding recipe for target”

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 10.5k Views 2 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.
  • C Offline
    C Offline
    cq_qt
    wrote on last edited by
    #1

    There are some warnings that I don't understand:
    overriding recipe for target 'debug/qrt_rc.cpp' Makefile.Debug 332
    ignoring old recipe for target 'debug/qrt_rc.cpp' Makefile.Debug 334

    How can I remove these warnings, thanks.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by sierdzio
      #2

      You have qrt_rc.cpp duplicated in your .pro file and the build system tries not to compile it twice.

      (Z(:^

      C 1 Reply Last reply
      5
      • sierdzioS sierdzio

        You have qrt_rc.cpp duplicated in your .pro file and the build system tries not to compile it twice.

        C Offline
        C Offline
        cq_qt
        wrote on last edited by
        #3

        @sierdzio .
        I checked. There is no qrt_rc.cpp in my .pro file. And there is no qrt_rc.cpp file in my projects.
        It is produced automatically by qt creator when I start to compile the projects. It is in the Build directory.
        creator also produces Makefile.Debug file in the Build directory。 In this file,qrt_rc.cpp is invoked twice。
        The compiler I use is migw810_32.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Do you define RC_FILE or RES_FILES anywhere in your .pro?

          (Z(:^

          C 1 Reply Last reply
          1
          • sierdzioS sierdzio

            Do you define RC_FILE or RES_FILES anywhere in your .pro?

            C Offline
            C Offline
            cq_qt
            wrote on last edited by
            #5

            @sierdzio thank you. You help me solve the problem.
            I don't define RC_FILE or RES_FILES in .pro file.
            But I defined the RESOURCES by mistake:
            RESOURSES +=
            rc.qrc
            rc.qrc
            How stupid I am. Thank you again.

            sierdzioS 1 Reply Last reply
            0
            • C cq_qt

              @sierdzio thank you. You help me solve the problem.
              I don't define RC_FILE or RES_FILES in .pro file.
              But I defined the RESOURCES by mistake:
              RESOURSES +=
              rc.qrc
              rc.qrc
              How stupid I am. Thank you again.

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @cq_qt said in What does this warning mean, “overriding recipe for target”:

              How stupid I am. Thank you again.

              Hey, don't worry. Thanks for sharing your solution, maybe it will help somebody else, too!

              (Z(:^

              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