qwindowkit
qwindowkit copied to clipboard
Build Issue
CMake Error at build/_install/lib/cmake/qmsetup/cmake/QMSetupAPI.cmake:238 (find_package):
Could not find a configuration file for package "QT" that is compatible
with requested version "".
The following configuration files were considered but not accepted:
C:/Qt/6.9.0/msvc2022_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.9.0 (64bit)
Call Stack (most recent call first):
build/_install/lib/cmake/qmsetup/cmake/QMSetupAPI.cmake:256 (qm_find_qt)
build/_install/lib/cmake/qmsetup/cmake/QMSetupAPI.cmake:411 (qm_link_qt)
src/CMakeLists.txt:74 (qm_configure_target)
src/core/CMakeLists.txt:92 (qwk_add_library)
I keep getting this issue when installing with qmsetup. I need it for QtQuick. I'm on Qt6.9 with CMake and the MSVC toolchain on windows 11
PS F:\repos\qwindowkit> cmake -B build -S . `
>> -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl `
>> -DCMAKE_PREFIX_PATH="C:\Qt\6.9.0\msvc2022_64" `
>> -DQWINDOWKIT_BUILD_QUICK=true `
>> -DCMAKE_INSTALL_PREFIX="C:\Qt\QWindowKit" `
>> -G "Ninja Multi-Config"
-- The CXX compiler identification is MSVC 19.43.34810.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring qmsetup...
-- Building qmsetup (Release)...
-- Installing qmsetup (Release)...
CMake Error at build/_install/lib/cmake/qmsetup/cmake/QMSetupAPI.cmake:238 (find_package):
Could not find a configuration file for package "QT" that is compatible
with requested version "".
The following configuration files were considered but not accepted:
C:/Qt/6.9.0/msvc2022_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.9.0 (64bit)
Call Stack (most recent call first):
build/_install/lib/cmake/qmsetup/cmake/QMSetupAPI.cmake:256 (qm_find_qt)
build/_install/lib/cmake/qmsetup/cmake/QMSetupAPI.cmake:411 (qm_link_qt)
src/CMakeLists.txt:74 (qm_configure_target)
src/core/CMakeLists.txt:92 (qwk_add_library)
-- Configuring incomplete, errors occurred!
not sure what happened, sorry, most likely you configured something wrong