make: *** No rule to make target 'custom_target_name', needed by 'app_name'. Stop.
-
Please, help me, I'm stuck for about three weeks with the same problem.
Cannot build a relatively simple project using QMake/QtCreator/Clang.
It has two C++20 modules files: bitremedy.ixx and finestream.ixx in project_folder/archiver/finestream/modules path.
Project file (.pro) looks like this at the moment:
https://pastebin.com/qQpV1eFhHere's the error:
00:48:18: Running steps for project qc...
00:48:18: Configuration unchanged, skipping qmake step.
00:48:18: Starting: "/usr/bin/make" -j1
/home/maxcury/Qt/5.15.2/gcc_64/bin/qmake -o Makefile ../../qc.pro -spec linux-clang CONFIG+=qtquickcompiler
make: *** No rule to make target 'bitremedy_release_pcm', needed by 'MercuryChess'. Stop.
00:48:19: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project qc (kit: Clang 18 kit)
When executing step "Make"
00:48:19: Elapsed time: 00:01.I've tried trillions of various configurations, variables, custom targets, subdirs etc. searched through the internet and read documentation. I still don't understand what this "No rule to make target" means, it is referencing custom_target.commands isn't it?
And I still don't understand, why this doesn't work, because if you read Adding Custom Targets
paragraph from here: https://doc.qt.io/qt-6/qmake-advanced-usage.html you will find nothing that says it may fail for some reason.The initial problem is that those two modules need other compiler commands than the rest of the files, and I've reduced needed commands to the bare minimum, now it only requires two compiler commands per each module, and all other files can be built in the final target (MercuryChess app) as usual except of those two extra compiler flags: -std=c++20 -fprebuilt-module-path=modules/ added to QMAKE_CXXFLAGS, actually I'm not sure about modules/ path, because no module file either .pcm or .o is built in the build directory. Though everything is fine when I build it from console, you can easily build either modules or other files using these compiler commands, only paths may change, I change them in the hope that it will somehow solve the problem.
P.S. I've run make with --debug option, and this is the only thing it says :((
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'first' does not exist.
File 'all' does not exist.
File 'MercuryChess' does not exist.
File 'bitremedy_release_pcm' does not exist.
Must remake target 'bitremedy_release_pcm'.By the way I have no first and no all variable or anything, maybe these are the files beeing created by qmake/make itself.