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. No CMake configuration found

No CMake configuration found

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
17 Posts 5 Posters 19.1k Views 1 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Do you have the OpenGL development packages installed on your system ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    A 1 Reply Last reply
    2
    • SGaistS SGaist

      Hi,

      Do you have the OpenGL development packages installed on your system ?

      A Offline
      A Offline
      AkshayFP
      wrote on last edited by
      #3

      @SGaist No I don't

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Then you should add it.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        A 1 Reply Last reply
        1
        • SGaistS SGaist

          Then you should add it.

          A Offline
          A Offline
          AkshayFP
          wrote on last edited by
          #5

          @SGaist Is it the mesa thing?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            libgl-dev

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 1 Reply Last reply
            1
            • SGaistS SGaist

              libgl-dev

              A Offline
              A Offline
              AkshayFP
              wrote on last edited by
              #7

              @SGaist That worked. Thanks.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pavel Romankov
                wrote on last edited by Pavel Romankov
                #8

                Hello
                @SGaist, I have same problem.
                libgl-dev is installed.
                what else can be the reason of problem?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  What error message do you have related to cmake ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Pavel Romankov
                    wrote on last edited by
                    #10

                    Снимок экрана от 2022-03-19 13-13-03.png

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      As the error suggests, your cross-compiler binary cannot be found. Where is it located ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        Pavel Romankov
                        wrote on last edited by
                        #12

                        /opt/toolchains/gcc-arm-none-eabi-10-2020-q4-major/bin$ ls
                        arm-none-eabi-addr2line arm-none-eabi-gdb
                        arm-none-eabi-ar arm-none-eabi-gdb-add-index
                        arm-none-eabi-as arm-none-eabi-gdb-add-index-py
                        arm-none-eabi-c++ arm-none-eabi-gdb-py
                        arm-none-eabi-c++filt arm-none-eabi-gprof
                        arm-none-eabi-cpp arm-none-eabi-ld
                        arm-none-eabi-elfedit arm-none-eabi-ld.bfd
                        arm-none-eabi-g++ arm-none-eabi-lto-dump
                        arm-none-eabi-gcc arm-none-eabi-nm
                        arm-none-eabi-gcc-10.2.1 arm-none-eabi-objcopy
                        arm-none-eabi-gcc-ar arm-none-eabi-objdump
                        arm-none-eabi-gcc-nm arm-none-eabi-ranlib
                        arm-none-eabi-gcc-ranlib arm-none-eabi-readelf
                        arm-none-eabi-gcov arm-none-eabi-size
                        arm-none-eabi-gcov-dump arm-none-eabi-strings
                        arm-none-eabi-gcov-tool arm-none-eabi-strip

                        Снимок экрана от 2022-03-20 02-18-26.png Снимок экрана от 2022-03-20 02-18-12.png

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          Pavel Romankov
                          wrote on last edited by
                          #13

                          @SGaist, i checked paths, they are right.
                          as i understand, in build screen we can see all Cmake defines, but this area is empty.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            Does the cross-compiling work on the command line ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              abolfazl hajinia
                              wrote on last edited by
                              #15

                              hi
                              i have some problem that are same with these.
                              my OS is windows 10 and i try to compile my project by MSVC 17 2022 and i get following error:

                              
                              Running C:\Qt\Tools\CMake_64\bin\cmake.exe -S "C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/test4-msvc" -B "C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit" "-DCMAKE_GENERATOR:STRING=Visual Studio 17 2022" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=C:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake" "-DQT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/6.3.1/msvc2019_64/bin/qmake.exe" "-DCMAKE_PREFIX_PATH:PATH=C:/Qt/6.3.1/msvc2019_64" "-DCMAKE_C_COMPILER:FILEPATH=" "-DCMAKE_CXX_COMPILER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe" "-DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG" in C:\Users\win-10\Documents\Qt\Qt Creator\test4-msvc\build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit.
                              -- Selecting Windows SDK version  to target Windows 10.0.19044.
                              -- The CXX compiler identification is unknown
                              -- Detecting CXX compiler ABI info
                              -- Detecting CXX compiler ABI info - failed
                              -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe
                              -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe - broken
                              CMake Error at C:/Qt/Tools/CMake_64/share/cmake-3.23/Modules/CMakeTestCXXCompiler.cmake:62 (message):
                                The C++ compiler
                              
                                  "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe"
                              
                                is not able to compile a simple test program.
                              
                                It fails with the following output:
                              
                                  Change Dir: C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit/CMakeFiles/CMakeTmp
                                  
                                  Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_60c45.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.3.0+f67e3d35e for .NET Framework
                                  C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(516,5): warning MSB8003: The WindowsSDKDir property is not defined. Some build tools may not be found. [C:\Users\win-10\Documents\Qt\Qt Creator\test4-msvc\build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit\CMakeFiles\CMakeTmp\cmTC_60c45.vcxproj]
                                    Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x64
                                    Copyright (C) Microsoft Corporation.  All rights reserved.
                                    testCXXCompiler.cxx
                                    cl /c /W1 /WX- /diagnostics:column /O2 /D _MBCS /D QT_QML_DEBUG /D "CMAKE_INTDIR=\"Debug\"" /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_60c45.dir\Debug\\" /Fd"cmTC_60c45.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "C:\Users\win-10\Documents\Qt\Qt Creator\test4-msvc\build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"
                                  LINK : fatal error LNK1104: cannot open file 'kernel32.lib' [C:\Users\win-10\Documents\Qt\Qt Creator\test4-msvc\build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit\CMakeFiles\CMakeTmp\cmTC_60c45.vcxproj]
                                  
                               
                              
                                CMake will not be able to correctly generate this project.
                              Call Stack (most recent call first):
                                CMakeLists.txt:3 (project)
                              
                              
                              -- Configuring incomplete, errors occurred!
                              See also "C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit/CMakeFiles/CMakeOutput.log".
                              See also "C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit/CMakeFiles/CMakeError.log".
                              CMake process exited with exit code 1.
                              
                              Elapsed time: 00:06.
                              

                              also ,in CMAKE_GENERATOR except the Visual Studio 17 2022 it was Ninja but i changed it to Visual Studio 17 2022 and get the error:

                              Capture.PNG

                              A 1 Reply Last reply
                              0
                              • A abolfazl hajinia

                                hi
                                i have some problem that are same with these.
                                my OS is windows 10 and i try to compile my project by MSVC 17 2022 and i get following error:

                                
                                Running C:\Qt\Tools\CMake_64\bin\cmake.exe -S "C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/test4-msvc" -B "C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit" "-DCMAKE_GENERATOR:STRING=Visual Studio 17 2022" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=C:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake" "-DQT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/6.3.1/msvc2019_64/bin/qmake.exe" "-DCMAKE_PREFIX_PATH:PATH=C:/Qt/6.3.1/msvc2019_64" "-DCMAKE_C_COMPILER:FILEPATH=" "-DCMAKE_CXX_COMPILER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe" "-DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG" in C:\Users\win-10\Documents\Qt\Qt Creator\test4-msvc\build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit.
                                -- Selecting Windows SDK version  to target Windows 10.0.19044.
                                -- The CXX compiler identification is unknown
                                -- Detecting CXX compiler ABI info
                                -- Detecting CXX compiler ABI info - failed
                                -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe
                                -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe - broken
                                CMake Error at C:/Qt/Tools/CMake_64/share/cmake-3.23/Modules/CMakeTestCXXCompiler.cmake:62 (message):
                                  The C++ compiler
                                
                                    "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe"
                                
                                  is not able to compile a simple test program.
                                
                                  It fails with the following output:
                                
                                    Change Dir: C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit/CMakeFiles/CMakeTmp
                                    
                                    Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_60c45.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.3.0+f67e3d35e for .NET Framework
                                    C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(516,5): warning MSB8003: The WindowsSDKDir property is not defined. Some build tools may not be found. [C:\Users\win-10\Documents\Qt\Qt Creator\test4-msvc\build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit\CMakeFiles\CMakeTmp\cmTC_60c45.vcxproj]
                                      Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x64
                                      Copyright (C) Microsoft Corporation.  All rights reserved.
                                      testCXXCompiler.cxx
                                      cl /c /W1 /WX- /diagnostics:column /O2 /D _MBCS /D QT_QML_DEBUG /D "CMAKE_INTDIR=\"Debug\"" /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_60c45.dir\Debug\\" /Fd"cmTC_60c45.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "C:\Users\win-10\Documents\Qt\Qt Creator\test4-msvc\build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"
                                    LINK : fatal error LNK1104: cannot open file 'kernel32.lib' [C:\Users\win-10\Documents\Qt\Qt Creator\test4-msvc\build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit\CMakeFiles\CMakeTmp\cmTC_60c45.vcxproj]
                                    
                                 
                                
                                  CMake will not be able to correctly generate this project.
                                Call Stack (most recent call first):
                                  CMakeLists.txt:3 (project)
                                
                                
                                -- Configuring incomplete, errors occurred!
                                See also "C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit/CMakeFiles/CMakeOutput.log".
                                See also "C:/Users/win-10/Documents/Qt/Qt Creator/test4-msvc/build-test4-msvc-Desktop_Qt_6_3_1_MSVC2019_64bit/CMakeFiles/CMakeError.log".
                                CMake process exited with exit code 1.
                                
                                Elapsed time: 00:06.
                                

                                also ,in CMAKE_GENERATOR except the Visual Studio 17 2022 it was Ninja but i changed it to Visual Studio 17 2022 and get the error:

                                Capture.PNG

                                A Offline
                                A Offline
                                abolfazl hajinia
                                wrote on last edited by
                                #16
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  littset50
                                  wrote on last edited by
                                  #17

                                  Just run this in the terminal window:
                                  $ sudo apt install libgl-dev
                                  then everything is ok!

                                  1 Reply Last reply
                                  0

                                  • Login

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