又要用c++写东西了, 环境很久没整理启动就出了一堆错.一个个解决吧.
下面是提示的错误信息:
严重性 代码 说明 项目 文件 行 禁止显示状态 详细信息 错误 CMake Error at F:/vcpkg/scripts/buildsystems/vcpkg.cmake:857 (_find_package): Could not find a package configuration file provided by "QT" with any of the following names: Qt6Config.cmake qt6-config.cmake Qt5Config.cmake qt5-config.cmake Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to a directory containing one of the above files. If "QT" provides a separate development package or SDK, be sure it has been installed. F:/vcpkg/scripts/buildsystems/vcpkg.cmake 857
应该是代码里用了QT 库, 需要一些QT配置
找到第一个文件的位置,设置环境变量QT和 QT_DIR 到这个目录下, 启动,成功.
标签:cmake,QT,package,buildsystems,问题,vcpkg,集锦 From: https://www.cnblogs.com/kingkaixuan/p/18340212