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 SUBDIRS project dependencies are buggy with MSVC project generator
Qt 6.11 is out! See what's new in the release blog

qmake SUBDIRS project dependencies are buggy with MSVC project generator

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 1.1k Views 1 Watching
  • 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
    Violet Giraffe
    wrote on last edited by
    #1

    I hit this error every now and then in various projects. The error is that some dependencies are honored in a SUBDIRS project, and others are not.

    Here's my .pro file:

    TEMPLATE = subdirs
    
    SUBDIRS += qtutils text_encoding_detector file_commander_core autoupdater imageviewerplugin textviewerplugin qt_app cpputils
    
    cpputils.subdir = cpputils
    
    qtutils.subdir = qtutils
    qtutils.depends = cpputils
    
    autoupdater.file = github-releases-autoupdater/autoupdater-for-github.pro
    autoupdater.depends = cpputils
    
    file_commander_core.subdir = file-commander-core
    file_commander_core.depends = qtutils
    
    imageviewerplugin.subdir = plugins/viewer/imageviewer
    imageviewerplugin.depends = file_commander_core
    
    textviewerplugin.subdir = plugins/viewer/textviewer
    textviewerplugin.depends = file_commander_core text_encoding_detector
    
    text_encoding_detector.subdir = text-encoding-detector/text-encoding-detector
    text_encoding_detector.depends = cpputils
    
    qt_app.subdir  = qt-app
    qt_app.depends = file_commander_core qtutils imageviewerplugin textviewerplugin autoupdater
    

    Note the qt_app dependencies.
    And here's what dependencies it actually generates: http://i.imgur.com/RqnJGIQ.jpg

    Is there a workaround for this issue?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Violet Giraffe
      wrote on last edited by
      #2

      Bump for this quite annoying issue. Has no one had a similar problem? I'd expect to see quite a few Visual Studio users on this forum.

      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