Setting the Application Icon on Windows
These instructions seem simple enough:
Setting the Application Icon on Windows
but I get:
mingw32-make[1]: *** No rule to make target `..\source\MixAndMatch.rc', needed by `debug/MixAndMatch_res.o'. Stop.
instead of a build. What am I supposed to know but don’t?
Re: Setting the Application Icon on Windows
Can you show your pro file?
Re: Setting the Application Icon on Windows
Thank you for responding. It turned out to be a silly error on my part: I misspelled the name of the *.rc file in the source folder; since make complained about lacking a “rule” rather than not finding a file, it didn’t occur to me to check that until I went looking for the *.pro file to copy into a reply to you... then I saw it.
In retrospect, I take it the error message meant that make had instructions (from the RC_FILE directive) for which it required MixAndMatch.rc, which it couldn’t find, and so it concluded that it was supposed to make that file, and it had no instructions telling it how to do that.
Re: Setting the Application Icon on Windows
Test if you have a space in some folder in your path to the project.
Example: D:\Lab\QtProjects\MyNotepad 1.0
This make that cannot recognize "windres"
Do the follow:
-Delete the pro.user file in your project root directory
-rename without spaces (Ex: D:\Lab\QtProjects\MyNotepad-1.0)
-in Qt Creator -> Open Project -> mynotepad.pro (following the example)
Compile and Voilé.... All ok!!
Try...
Re: Setting the Application Icon on Windows
This "answer" has absolutely nothing to do with the original question that was asked in this seven year old post. Why did you dig it up and answer a question that was never asked?
Besides that, the correct "answer" is not to rename files and directories, it is to enclose the path and/or file name in quotes when there are embedded spaces:
Code:
"D:\Lab\QtProjects\MyNotepad 1.0"