Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Failed to open and run an official code example in Qt Creator using Qt 6.7.0 beta1
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
8 Posts 2 Posters 678 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote on last edited by 8Observer8
    #1

    Hello,

    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:

    5823f120-57dc-4d6c-9bdd-84d35161efd2-image.png

    I see these errors:

    1b121bb9-b537-413a-a789-88554579bbc5-image.png

    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:

    9ad65485-e342-4e4d-8c45-6384fae10832-image.png
    I have a path to CMake in the Path variable: 826f45cf-be3f-40e4-b78b-1de52d697999-image.png

    Axel SpoerlA 1 Reply Last reply
    0
    • 8Observer88 8Observer8

      @Axel-Spoerl I can compile my own examples with QMake. I tried to open the "Menus Example" but it gives the same result because it uses CMake too. I created a bug report: https://bugreports.qt.io/browse/QTBUG-120952

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #6

      @8Observer8
      There is something wrong on your system.
      I just installed 6.7.0 beta 1 on a fresh virtual machine with windows 11.
      The example compiles with MinGW out of the box.

      My guess is, that your path contains another CMake executable. That is probably why qmake works and CMake doesn´t.

      Software Engineer
      The Qt Company, Oslo

      8Observer88 1 Reply Last reply
      2
      • 8Observer88 8Observer8

        Hello,

        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:

        5823f120-57dc-4d6c-9bdd-84d35161efd2-image.png

        I see these errors:

        1b121bb9-b537-413a-a789-88554579bbc5-image.png

        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:

        9ad65485-e342-4e4d-8c45-6384fae10832-image.png
        I have a path to CMake in the Path variable: 826f45cf-be3f-40e4-b78b-1de52d697999-image.png

        Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on last edited by
        #2

        @8Observer8
        Is it a fresh install from the maintenance tool?
        Which compile kit are you using? The one from the installer with 6.7.0 beta1?

        Software Engineer
        The Qt Company, Oslo

        8Observer88 1 Reply Last reply
        0
        • Axel SpoerlA Axel Spoerl

          @8Observer8
          Is it a fresh install from the maintenance tool?
          Which compile kit are you using? The one from the installer with 6.7.0 beta1?

          8Observer88 Offline
          8Observer88 Offline
          8Observer8
          wrote on last edited by
          #3

          @Axel-Spoerl yes, from the installer:

          37539965-3c31-4d95-b4c7-b479d3fc61e1-image.png

          6d09da11-43ee-4a9a-921d-49ee8d99257d-image.png

          27f68311-1548-4aa0-9823-823e94780a4a-image.png

          0faf14ff-584b-4250-9d2d-47077ec014a7-image.png

          10bb7663-b978-4af8-868a-9b9891d650d5-image.png

          Axel SpoerlA 1 Reply Last reply
          0
          • 8Observer88 8Observer8

            @Axel-Spoerl yes, from the installer:

            37539965-3c31-4d95-b4c7-b479d3fc61e1-image.png

            6d09da11-43ee-4a9a-921d-49ee8d99257d-image.png

            27f68311-1548-4aa0-9823-823e94780a4a-image.png

            0faf14ff-584b-4250-9d2d-47077ec014a7-image.png

            10bb7663-b978-4af8-868a-9b9891d650d5-image.png

            Axel SpoerlA Offline
            Axel SpoerlA Offline
            Axel Spoerl
            Moderators
            wrote on last edited by
            #4

            @8Observer8
            Weird. Can you compile anything at all? If only the cube example fails, you have to report another bug I'd say.
            I don't use Windows, so I can't reproduce. It compiles on Linux.

            Software Engineer
            The Qt Company, Oslo

            8Observer88 1 Reply Last reply
            0
            • Axel SpoerlA Axel Spoerl

              @8Observer8
              Weird. Can you compile anything at all? If only the cube example fails, you have to report another bug I'd say.
              I don't use Windows, so I can't reproduce. It compiles on Linux.

              8Observer88 Offline
              8Observer88 Offline
              8Observer8
              wrote on last edited by
              #5

              @Axel-Spoerl I can compile my own examples with QMake. I tried to open the "Menus Example" but it gives the same result because it uses CMake too. I created a bug report: https://bugreports.qt.io/browse/QTBUG-120952

              Axel SpoerlA 1 Reply Last reply
              0
              • 8Observer88 8Observer8

                @Axel-Spoerl I can compile my own examples with QMake. I tried to open the "Menus Example" but it gives the same result because it uses CMake too. I created a bug report: https://bugreports.qt.io/browse/QTBUG-120952

                Axel SpoerlA Offline
                Axel SpoerlA Offline
                Axel Spoerl
                Moderators
                wrote on last edited by
                #6

                @8Observer8
                There is something wrong on your system.
                I just installed 6.7.0 beta 1 on a fresh virtual machine with windows 11.
                The example compiles with MinGW out of the box.

                My guess is, that your path contains another CMake executable. That is probably why qmake works and CMake doesn´t.

                Software Engineer
                The Qt Company, Oslo

                8Observer88 1 Reply Last reply
                2
                • Axel SpoerlA Axel Spoerl

                  @8Observer8
                  There is something wrong on your system.
                  I just installed 6.7.0 beta 1 on a fresh virtual machine with windows 11.
                  The example compiles with MinGW out of the box.

                  My guess is, that your path contains another CMake executable. That is probably why qmake works and CMake doesn´t.

                  8Observer88 Offline
                  8Observer88 Offline
                  8Observer8
                  wrote on last edited by 8Observer8
                  #7

                  @Axel-Spoerl said in Failed to open and run an official code example in Qt Creator using Qt 6.7.0 beta1:

                  My guess is, that your path contains another CMake executable

                  Yes, you are right. I had another CMake installed in "C:\Program Files". I removed it. But Qt wants from me to set up CMake? I don't know how to make it:

                  46cdb6b1-febe-48ca-9a29-e9326a2ea92b-image.png

                  But I see that Qt Creator detects CMake:

                  ec972c5e-9b2d-46aa-a271-2a538e04b804-image.png

                  Axel SpoerlA 1 Reply Last reply
                  0
                  • 8Observer88 8Observer8

                    @Axel-Spoerl said in Failed to open and run an official code example in Qt Creator using Qt 6.7.0 beta1:

                    My guess is, that your path contains another CMake executable

                    Yes, you are right. I had another CMake installed in "C:\Program Files". I removed it. But Qt wants from me to set up CMake? I don't know how to make it:

                    46cdb6b1-febe-48ca-9a29-e9326a2ea92b-image.png

                    But I see that Qt Creator detects CMake:

                    ec972c5e-9b2d-46aa-a271-2a538e04b804-image.png

                    Axel SpoerlA Offline
                    Axel SpoerlA Offline
                    Axel Spoerl
                    Moderators
                    wrote on last edited by
                    #8

                    @8Observer8
                    It's all documented here.

                    Software Engineer
                    The Qt Company, Oslo

                    1 Reply Last reply
                    2
                    • 8Observer88 8Observer8 has marked this topic as solved on

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved