Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109315

Implicit reconfigure causes error regarding missing target PkgConfig::BLUEZ

    XMLWordPrintable

Details

    • Linux/X11
    • 0b941a358 (dev), c9a0ace54 (6.5), ccfe3f958 (6.4), c1edd05af (tqtc/lts-6.2)

    Description

      To reproduce, I just need to touch any CMakeLists.txt files, and the ninja-initiated reconfigure fails 100% of the time with

      -- Configuring done
      CMake Error at qtbase/cmake/QtTargetHelpers.cmake:140 (target_link_libraries):
        Target "sdpscanner" links to:
      
          PkgConfig::BLUEZ
      
        but the target was not found.  Possible reasons include:
      
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.
      
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:113 (qt_internal_extend_target)
        qtbase/cmake/QtAppHelpers.cmake:40 (qt_internal_add_executable)
        qtconnectivity/src/tools/sdpscanner/CMakeLists.txt:12 (qt_internal_add_app)
      

      I have to rm CMakeCache.txt and configure -redo to get it fixed (until the next time).

      I'm attaching a partial diff of the builddir between a successful explicit (-) and the unsuccessful implicit (+) configure runs.

      Full diff is 9MiB, but available on request.

      Attachments

        1. config-redo.log
          159 kB
        2. config-implicit.log
          114 kB
        3. builddirs.diff
          6 kB

        Activity

          People

            semlanik Alexey Edelev
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: