Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qmake : warning: No rule to make target Stop.
Forum Update on Monday, May 27th 2025

qmake : warning: No rule to make target Stop.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qmakesubdirproject files
2 Posts 2 Posters 1.0k 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.
  • V Offline
    V Offline
    Venkateswaran
    wrote on 9 Nov 2020, 15:27 last edited by
    #1

    I have a project which has an app and test. Both App and test depends on a common lib (which is submodule for the app). Here is my project structure.

    |
    |_ _Application.pro
    |_ _App/app.pro
    |_ _lib/lib.pro
    |_ _TestSuite/
                 |_ _Test.pro
    
    
    #Application.pro 
    
    
    TEMPLATE = subdirs
    SUBDIRS +=  app \
                lib
    
    #subdirs
    lib.file = $${PWD}/lib/lib.pro
    app.file = $${PWD}/App/app.pro
    
    #dependecies
    app.depends  =  lib
    
    QMAKE_CLEAN += $${OUT_PWD}/Makefile*
    
    #Test.pro 
    
    
    TEMPLATE = subdirs
    SUBDIRS +=  Test \
                lib
    
    #subdirs
    lib.file = $${PWD}/../lib/lib.pro
    app.file = $${PWD}/TestSuite/Test.pro
    
    #dependecies
    Test.depends  =  lib
    
    QMAKE_CLEAN += $${OUT_PWD}/Makefile*
    

    The application compiles fine, but when I run make on test it throws No rule to make target lib.pro needed by Test.pro Stop error.

    If I copy the lib files under TestSuite then it works perfectly. So is it mandatory that subdirs should a subdirectory of the current application?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Nov 2020, 19:03 last edited by
      #2

      Hi,

      AFAIR, yes, but you are setting the dependency on the wrong level.

      In your top level folder, TestSuite should depend on lib like app does.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      1/2

      9 Nov 2020, 15:27

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved