Could not find a package configuration file provided by "Qt5Qml"

本文详细解析了如何在优快云上撰写一篇高质量的技术博客,包括标题、标签和内容的优化策略,旨在帮助作者提高文章的可见性和吸引力。

https://blog.youkuaiyun.com/qq_32768743/article/details/89057910

[cmake] Running D:\tools\CMake_64\bin\cmake.exe -S D:/sjkshqttest2/untitled2 -B D:/sjkshqttest2/untitled2/build/unknown-Debug "-DCMAKE_GENERATOR:STRING=NMake Makefiles JOM" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=D:\sjkshqttest2\untitled2\build\unknown-Debug/.qtc/package-manager/auto-setup.cmake" "-DCMAKE_CXX_COMPILER:FILEPATH=D:/vs2022/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe" "-DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON" "-DCMAKE_PREFIX_PATH:PATH=D:/python/Library" "-DCMAKE_C_COMPILER:FILEPATH=D:/vs2022/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe" "-DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG" "-DQT_MAINTENANCE_TOOL:FILEPATH=D:/Qt6/MaintenanceTool.exe" "-DQT_QMAKE_EXECUTABLE:FILEPATH=D:/python/Library/bin/qmake.exe" "-DCMAKE_BUILD_TYPE:STRING=Debug" in D:\sjkshqttest2\untitled2\build\unknown-Debug. [cmake] -- The CXX compiler identification is MSVC 19.44.35211.0 [cmake] -- Detecting CXX compiler ABI info [cmake] -- Detecting CXX compiler ABI info - done [cmake] -- Check for working CXX compiler: D:/vs2022/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe - skipped [cmake] -- Detecting CXX compile features [cmake] -- Detecting CXX compile features - done [cmake] -- Configuring done (6.1s) [cmake] -- Generating done (0.5s) [cmake] -- Build files have been written to: D:/sjkshqttest2/untitled2/build/unknown-Debug [cmake] [cmake] Elapsed time: 00:08. Generating compilation database for Clang-Tidy at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\Clang-TidyxhNqAU" ... Compilation database for Clang-Tidy successfully generated at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\Clang-TidyxhNqAU". Generating compilation database for Clazy at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\ClazyNtbhlj" ... Compilation database for Clazy successfully generated at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\ClazyNtbhlj". [cmake] Running D:\tools\CMake_64\bin\cmake.exe -S D:/sjkshqttest2/untitled2 -B D:/sjkshqttest2/untitled2/build/unknown-Debug in D:\sjkshqttest2\untitled2\build\unknown-Debug. [cmake] CMake Error at build/unknown-Debug/.qtc/package-manager/maintenance_tool_provider.cmake:322 (find_package): [cmake] Could not find a package configuration file provided by "QT" with any of [cmake] the following names: [cmake] [cmake] Qt6Config.cmake [cmake] qt6-config.cmake [cmake] [cmake] Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to [cmake] a directory containing one of the above files. If "QT" provides a separate [cmake] development package or SDK, be sure it has been installed. [cmake] Call Stack (most recent call first): [cmake] CMakeLists.txt:12 (find_package) [cmake] [cmake] [cmake] CMake Error at CMakeLists.txt:12 (find_package): [cmake] Could not find a package configuration file provided by "QT" with any of [cmake] the following names: [cmake] [cmake] Qt6Config.cmake [cmake] qt6-config.cmake [cmake] [cmake] Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to [cmake] a directory containing one of the above files. If "QT" provides a separate [cmake] development package or SDK, be sure it has been installed. [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] [cmake] The command "D:\tools\CMake_64\bin\cmake.exe -S D:/sjkshqttest2/untitled2 -B D:/sjkshqttest2/untitled2/build/unknown-Debug" terminated with exit code 1. [cmake] [cmake] Elapsed time: 00:01. [cmake] Running D:\tools\CMake_64\bin\cmake.exe -S D:/sjkshqttest3/untitled0 -B D:/sjkshqttest3/untitled0/build/Desktop_Qt_6_8_3_MSVC2022_64bit-Debug "-DCMAKE_GENERATOR:STRING=NMake Makefiles JOM" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=D:\sjkshqttest3\untitled0\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug/.qtc/package-manager/auto-setup.cmake" "-DCMAKE_CXX_COMPILER:FILEPATH=D:/vs2022/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe" "-DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON" "-DCMAKE_PREFIX_PATH:PATH=D:/Qt6/6.8.3/msvc2022_64" "-DCMAKE_C_COMPILER:FILEPATH=D:/vs2022/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe" "-DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG" "-DQT_MAINTENANCE_TOOL:FILEPATH=D:/Qt6/MaintenanceTool.exe" "-DQT_QMAKE_EXECUTABLE:FILEPATH=D:/Qt6/6.8.3/msvc2022_64/bin/qmake.exe" "-DCMAKE_BUILD_TYPE:STRING=Debug" in D:\sjkshqttest3\untitled0\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug. [cmake] -- The CXX compiler identification is MSVC 19.44.35211.0 [cmake] -- Detecting CXX compiler ABI info [cmake] -- Detecting CXX compiler ABI info - done [cmake] -- Check for working CXX compiler: D:/vs2022/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe - skipped [cmake] -- Detecting CXX compile features [cmake] -- Detecting CXX compile features - done [cmake] -- Performing Test HAVE_STDATOMIC [cmake] -- Performing Test HAVE_STDATOMIC - Success [cmake] -- Configuring done (14.3s) [cmake] -- Generating done (0.1s) [cmake] -- Build files have been written to: D:/sjkshqttest3/untitled0/build/Desktop_Qt_6_8_3_MSVC2022_64bit-Debug [cmake] [cmake] Elapsed time: 00:16. Generating compilation database for Clang-Tidy at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\Clang-TidyBPUYCJ" ... Compilation database for Clang-Tidy successfully generated at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\Clang-TidyBPUYCJ". Generating compilation database for Clazy at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\ClazyEIJfks" ... Compilation database for Clazy successfully generated at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\ClazyEIJfks". [cmake] Running D:\tools\CMake_64\bin\cmake.exe -S D:/sjkshqttest3/untitled0 -B D:/sjkshqttest3/untitled0/build/Desktop_Qt_6_8_3_MSVC2022_64bit-Debug in D:\sjkshqttest3\untitled0\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug. [cmake] -- Found Threads: TRUE [cmake] -- Configuring done (3.8s) [cmake] -- Generating done (0.1s) [cmake] -- Build files have been written to: D:/sjkshqttest3/untitled0/build/Desktop_Qt_6_8_3_MSVC2022_64bit-Debug [cmake] [cmake] Elapsed time: 00:06. Generating compilation database for Clang-Tidy at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\Clang-TidyxhNqAU" ... Compilation database for Clang-Tidy successfully generated at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\Clang-TidyxhNqAU". Generating compilation database for Clazy at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\ClazyNtbhlj" ... Compilation database for Clazy successfully generated at "C:\Users\13292\AppData\Local\Temp\QtCreator-KJnALL\ClazyNtbhlj". [cmake] Running D:\tools\CMake_64\bin\cmake.exe -S D:/sjkshqttest3/untitled0 -B D:/sjkshqttest3/untitled0/build/Desktop_Qt_6_8_3_MSVC2022_64bit-Debug in D:\sjkshqttest3\untitled0\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug. [cmake] CMake Error at CMakeLists.txt:31 (qt_add_executable): [cmake] Unknown CMake command "qt_add_executable". [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] [cmake] The command "D:\tools\CMake_64\bin\cmake.exe -S D:/sjkshqttest3/untitled0 -B D:/sjkshqttest3/untitled0/build/Desktop_Qt_6_8_3_MSVC2022_64bit-Debug" terminated with exit code 1. [cmake] [cmake] Elapsed time: 00:01.
07-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值