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

Unable to build examples when building as module with -DQT_BUILD_EXAMPLES=ON

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.3.0 Beta3, 6.4.0 Beta1
    • 6.2.4, 6.3, 6.4
    • WebEngine
    • None
    • All
    • 864f5c7d52 (qt/qtwebengine/dev) 46911cc619 (qt/qtwebengine/6.3) 46911cc619 (qt/qtwebengine/6.3.0)

    Description

      configure step:

      /home/stampho/work/Qt/qt6-dev-release/qtbase/bin/qt-configure-module \
          /home/stampho/work/Qt/qt6-dev-src/qtwebengine \
          -- \
          -DQT_FEATURE_webengine_proprietary_codecs=ON \
          -DQT_BUILD_TESTS=ON \
          -DQT_BUILD_EXAMPLES=ON
      

      build step:

      cmake --build .
      

      The build step fails:

      FAILED: examples/pdfwidgets/pdfviewer-ep/stamp/pdfviewer-9d70-configure /home/stampho/work/Qt/qtwebengine-dev-release/examples/pdfwidgets/pdfviewer-ep/stamp/pdfviewer-9d70-configure 
      cd /home/stampho/work/Qt/qtwebengine-dev-release/examples/pdfwidgets/pdfviewer && /usr/bin/cmake -GNinja -C/home/stampho/work/Qt/qtwebengine-dev-release/examples/pdfwidgets/pdfviewer-ep/tmp/pdfviewer-9d70-cache-Release.cmake /home/stampho/work/Qt/qt6-dev-src/qtwebengine/examples/pdfwidgets/pdfviewer && /usr/bin/cmake -E touch /home/stampho/work/Qt/qtwebengine-dev-release/examples/pdfwidgets/pdfviewer-ep/stamp/pdfviewer-9d70-configure
      loading initial cache file /home/stampho/work/Qt/qtwebengine-dev-release/examples/pdfwidgets/pdfviewer-ep/tmp/pdfviewer-9d70-cache-Release.cmake
      -- Configuring done
      CMake Error at /home/stampho/work/Qt/qt6-dev-release/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:559 (add_executable):
        Target "pdfviewerwidgets" links to target "Qt::PdfWidgets" but the target
        was not found.  Perhaps a find_package() call is missing for an IMPORTED
        target, or an ALIAS target is missing?
      Call Stack (most recent call first):
        /home/stampho/work/Qt/qt6-dev-release/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:523 (_qt_internal_create_executable)
        /home/stampho/work/Qt/qt6-dev-release/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:952 (qt6_add_executable)
        CMakeLists.txt:22 (qt_add_executable)
      
      
      -- Generating done
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      

      The issue happens since: https://codereview.qt-project.org/c/qt/qtwebengine/+/394073
      Reverting the change fixes the issue.

      Attachments

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              pvarga Peter Varga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes