Unsolved Warning messages about "recipe for target"
-
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
-
I think it is some speciality of qmake.
Try to reorder toDEPLOYMENTFOLDERS = 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. -
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?
-
@vlada I have exactly the same problem! Do got a solution for it?
-
@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 # }
-
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.