Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Warning messages about "recipe for target"

Warning messages about "recipe for target"

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 4.8k 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.
  • V Offline
    V Offline
    vlada
    wrote on last edited by
    #1

    Hello,

    when compiling my Qt/QML application I get a lot of warnings like this:

    Makefile:22552: warning: overriding recipe for target 'install_itemfolder_01'
    Makefile:22543: warning: ignoring old recipe for target 'install_itemfolder_01'
    Makefile:22556: warning: overriding recipe for target 'uninstall_itemfolder_01'
    Makefile:22547: warning: ignoring old recipe for target 'uninstall_itemfolder_01'
    

    What does it mean? I tried to clean (delete) the build directory and completely rebuild the project but it didn't help.

    Does it have something to do with these lines in my project (.pro) file?

    folder_01.source = qml/MyApp
    folder_01.target = qml
    DEPLOYMENTFOLDERS = folder_01
    

    Thank you

    K 1 Reply Last reply
    0
    • V vlada

      Hello,

      when compiling my Qt/QML application I get a lot of warnings like this:

      Makefile:22552: warning: overriding recipe for target 'install_itemfolder_01'
      Makefile:22543: warning: ignoring old recipe for target 'install_itemfolder_01'
      Makefile:22556: warning: overriding recipe for target 'uninstall_itemfolder_01'
      Makefile:22547: warning: ignoring old recipe for target 'uninstall_itemfolder_01'
      

      What does it mean? I tried to clean (delete) the build directory and completely rebuild the project but it didn't help.

      Does it have something to do with these lines in my project (.pro) file?

      folder_01.source = qml/MyApp
      folder_01.target = qml
      DEPLOYMENTFOLDERS = folder_01
      

      Thank you

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @vlada

      I think it is some speciality of qmake.
      Try to reorder to

      DEPLOYMENTFOLDERS = folder_01
      folder_01.source = qml/MyApp
      folder_01.target = qml
      

      How did you get the variable name "DEPLOYMENTFOLDERS"?
      I could not find in documentation.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vlada
        wrote on last edited by
        #3

        These lines were created automatically when I set up my project a few years ago. Could it be an old unsupported way of deploying QML files?

        T 1 Reply Last reply
        0
        • V vlada

          These lines were created automatically when I set up my project a few years ago. Could it be an old unsupported way of deploying QML files?

          T Offline
          T Offline
          Torsten Krause
          wrote on last edited by
          #4

          @vlada I have exactly the same problem! Do got a solution for it?

          T 1 Reply Last reply
          0
          • T Torsten Krause

            @vlada I have exactly the same problem! Do got a solution for it?

            T Offline
            T Offline
            Torsten Krause
            wrote on last edited by
            #5

            @Torsten-Krause
            I found it!
            there is a for loop, that adds the install folders a second time to the make file.
            I had to uncomment the part in the else:unix case:

            #    for(deploymentfolder, DEPLOYMENTFOLDERS) {
            #        item = item$${deploymentfolder}
            #        itemfiles = $${item}.files
            #        $$itemfiles = $$eval($${deploymentfolder}.source)
            #        itempath = $${item}.path
            #        $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
            #        export($$itemfiles)
            #        export($$itempath)
            #        INSTALLS += $$item
            #    }
            
            1 Reply Last reply
            0
            • V Offline
              V Offline
              vlada
              wrote on last edited by
              #6

              Sorry, I couldn't reply sooner. I rebuilt all the project files from scratch and that fixed the warnings I was getting.

              But I still get a lot of different warnings when compiling for Android. Like this bug some missing translations or obsolete Android functions.

              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