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

Example not compiling due 'Unknown CMake command "qt_internal_add_plugin"'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 6.0.0 Alpha
    • Fix Version/s: 6.0.0 RC
    • Component/s: Build System: CMake
    • Labels:
    • Environment:
       Tested on Ubuntu 20.04 x64

      Description

      Examples not compiling:

      /Examples/Qt-6.0.0/widgets/tools/echoplugin/plugin
      /Examples/Qt-6.0.0/widgets/tools/plugandpaint/plugins/extrafilters
      /Examples/Qt-6.0.0/widgets/tools/plugandpaint/plugins/basictools
      /Examples/Qt-6.0.0/widgets/tools/styleplugin/plugin
      /Examples/Qt-6.0.0/designer/containerextension
      /Examples/Qt-6.0.0/designer/taskmenuextension
      /Examples/Qt-6.0.0/designer/worldtimeclockplugin
      /Examples/Qt-6.0.0/designer/customwidgetplugin

      Builds fail with similar error:

      -- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) 
      CMake Error at /home/qt/RTA/qt5/6.0.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1285 (qt_internal_add_plugin):
        Unknown CMake command "qt_internal_add_plugin".
      Call Stack (most recent call first):
        CMakeLists.txt:22 (qt_add_plugin)
      -- Configuring incomplete, errors occurred!
      See also "/home/qt/RTA/qt5/Examples/Qt-6.0.0/widgets/tools/echoplugin/plugin/CMakeFiles/CMakeOutput.log".
      See also "/home/qt/RTA/qt5/Examples/Qt-6.0.0/widgets/tools/echoplugin/plugin/CMakeFiles/CMakeError.log".
      

      SHA1: ca02358af27b458739cba29086ff6ad19196d431

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              alexandru.croitor Alexandru Croitor
              Reporter:
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes