Qt Creator Build failed
-
** Visual Studio 2022 Developer Command Prompt v17.5.1
** Copyright (c) 2022 Microsoft Corporation
[vcvarsall.bat] Environment initialized for: 'x64_x86'
C:\Windows\System32>mkdir "C:/Users/jonas/Desktop/compileQT/qtcreator_build"
C:\Windows\System32>cd "C:/Users/jonas/Desktop/compileQT/qtcreator_build"
C:\Users\jonas\Desktop\compileQT\qtcreator_build>
C:\Users\jonas\Desktop\compileQT\qtcreator_build>cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=C:/Program Files/Qt/6.6.0/msvc2019_64;C:/Program Files/libclang" "C:/Users/jonas/Desktop/compileQT/qt-creator-master"
-- The C compiler identification is MSVC 19.35.32215.0
-- The CXX compiler identification is MSVC 19.35.32215.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:68 (find_package):
Could not find a configuration file for package "Qt6" that is compatible
with requested version "6.2.0".The following configuration files were considered but not accepted:
C:/Program Files/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.6.0 (64bit)
-- Configuring incomplete, errors occurred!
i get this error trying to build qt creator, i tried to :
- use a different qt version.
- using my own cmake installation and the one from the Tools folder of qt creator.
The weirdest is that i used to be able to build and have no idea what i changed.
-
@JonasCharrier Your Qt is a 64bit build and you're trying to use it to cross compile Qt Creator to 32bit using 64bit tools. That's not gonna work.
Either use 32 bit build of Qt if you really want a 32 bit Qt Creator or use a 64bit toolchain if you want 64bit Qt Creator.