No CMake configuration found
-
I installed Qt Creator and all the Qt components using the Qt Maintenance tool on Ubuntu 20.04 and I keep getting
No CMake configuration found
. See screenshot belowI get the same error for other build configs too. QT Maintenance tool look something like this (screenshot):
Not sure what's happening here. Any help would be appreciated.
-
Hi,
Do you have the OpenGL development packages installed on your system ?
-
Then you should add it.
-
Hello
@SGaist, I have same problem.
libgl-dev is installed.
what else can be the reason of problem? -
What error message do you have related to cmake ?
-
-
As the error suggests, your cross-compiler binary cannot be found. Where is it located ?
-
/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 -
@SGaist, i checked paths, they are right.
as i understand, in build screen we can see all Cmake defines, but this area is empty. -
Does the cross-compiling work on the command line ?
-
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:
-
This post is deleted!