Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake : No rule to make target Stop.

qmake : No rule to make target Stop.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmakesubdirproject files
2 Posts 2 Posters 1.6k 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:39 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
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 9 Nov 2020, 16:24 last edited by Christian Ehrlicher 11 Sept 2020, 16:25
      #2

      Double post - closed.
      https://forum.qt.io/topic/120680/qmake-warning-no-rule-to-make-target-stop

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      1/2

      9 Nov 2020, 15:39

      • 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