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

Failed to open and run an official code example in Qt Creator using Qt 6.7.0 beta1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 6.7.0 Beta1
    • Examples and Demos
    • None
    • Windows

    Description

      I try to open and run the `cube` example. I use `Qt 6.7.0 beta1`. I see examples in the Welcome page and click on the `cube` example. I see that the project files are inactive:

       

      I see these errors:

       

      ```
      C:\Qt\Examples\Qt-6.7.0\opengl\cube\CMakeLists.txt:13: error: By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "Qt6", but
      CMake did not find one.

      Could not find a package configuration file provided by "Qt6" with any of
      the following names:

        Qt6Config.cmake
        qt6-config.cmake

      Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
      to a directory containing one of the above files.  If "Qt6" provides a
      separate development package or SDK, be sure it has been installed.
      ```

      It is interesting for me what is wrong. I see that the example uses CMake. I have CMake installed:

       

      I have a path to CMake in the Path variable:

      I use a compile kit from the the Qt maintenance tool:

      Topic: https://forum.qt.io/topic/153688/failed-to-open-and-run-an-official-code-example-in-qt-creator-using-qt-6-7-0-beta1

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            8observer8 Ivan Enzhaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes