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

Manual examples are in a unbuildable state when enabled globally

    XMLWordPrintable

Details

    • All

    Description

      Manual examples can provide some valuable input. When enabling them 'globally' (on the qt5.git master repo) with e.g. :

      // CMakeUserPresets.json
      ~~~
              "QT_BUILD_TESTS": "ON",
              "QT_BUILD_EXAMPLES": "ON",
              "QT_BUILD_BENCHMARKS": "ON",
              "QT_BUILD_MANUAL_TESTS": "ON",
              "QT_BUILD_TESTS_BY_DEFAULT": "OFF",
              "QT_BUILD_EXAMPLES_BY_DEFAULT": "OFF",
              "QT_BUILD_EXAMPLES_AS_EXTERNAL": "OFF"
      ~~~

      You will be greeted with a lot of:

      CMake Error at build/debug/qtbase/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:1013 (file):
        file RELATIVE_PATH must be passed a full path to the directory:
      Call Stack (most recent call first):
        build/debug/qtbase/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:1005 (qt_internal_add_example_in_tree)
        qtsvg/tests/manual/examples/draganddrop/CMakeLists.txt:5 (qt_internal_add_example)
      CMake Error at build/debug/qtbase/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:1013 (file):
        file RELATIVE_PATH must be passed a full path to the directory:
      Call Stack (most recent call first):
        build/debug/qtbase/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:1005 (qt_internal_add_example_in_tree)
        qtsvg/tests/manual/examples/embedded/CMakeLists.txt:5 (qt_internal_add_example) 

      Those are a result of using the 'qt_internal_add_example()' cmake-function, which seem to not play-well with those examples.

      If you would naively comment out all of those occurrences (I already did that), you will be greeted with the next error message which looks something like this:

      -- Configuring done (21.0s)
      CMake Error: AUTOMOC for target wave: The "moc" executable "/home/qtwayn/Qt/qt6/build/debug/qtbase/libexec/moc" does not exist. 

      however, those only occur example by example making it quite tedious to fix all of those in one single batch.

       

      It would be great to get the manual examples to at least past the 'configuring' state. What's the point of keeping them if not even possible to launch any of those?

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              dennisoberst Dennis Oberst
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes