Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. make: *** No rule to make target 'custom_target_name', needed by 'app_name'. Stop.
Forum Updated to NodeBB v4.3 + New Features

make: *** No rule to make target 'custom_target_name', needed by 'app_name'. Stop.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 107 Views
  • 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.
  • M Offline
    M Offline
    MMD18
    wrote on last edited by MMD18
    #1

    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/qQpV1eFh

    Here'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.

    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