CMake生成错误:缺少Qt5PrintSupportConfig.CMake 我试图用CMake构建一个叫做MITK的C++工具包。但我得到了这个Qt5相关的错误。我使用的是Qt5.7.1的开源版本。在Qt5文件夹中找不到任何名为Qt5PrintSupportConfig.cmake的文件。我找到的最接近的东西是文件夹printsupport中的windowsprintersupport.dll。有什么问题吗 CMake Error at C:/Qt5.7.1/5.7/winrt_x64_msvc2015/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package): Could not find a package configuration file provided by "Qt5PrintSupport" with any of the following names: Qt5PrintSupportConfig.cmake qt5printsupport-config.cmake Add the installation prefix of "Qt5PrintSupport" to CMAKE_PREFIX_PATH or set "Qt5PrintSupport_DIR" to a directory containing one of the above files. If "Qt5PrintSupport" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:211 (find_package)
您下载了错误的Qt在线安装程序 您安装的是从这里开始的: 您想要的版本在这里:最新版本或较旧版本 我不确定区别是什么,但您可能安装的是CMake生成错误:缺少Qt5PrintSupportConfig.CMake 我试图用CMake构建一个叫做MITK的C++工具包。但我得到了这个Qt5相关的错误。我使用的是Qt5.7.1的开源版本。在Qt5文件夹中找不到任何名为Qt5PrintSupportConfig.cmake的文件。我找到的最接近的东西是文件夹printsupport中的windowsprintersupport.dll。有什么问题吗 CMake Error at C:/Qt5.7.1/5.7/winrt_x64_msvc2015/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package): Could not find a package configuration file provided by "Qt5PrintSupport" with any of the following names: Qt5PrintSupportConfig.cmake qt5printsupport-config.cmake Add the installation prefix of "Qt5PrintSupport" to CMAKE_PREFIX_PATH or set "Qt5PrintSupport_DIR" to a directory containing one of the above files. If "Qt5PrintSupport" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:211 (find_package),c++,qt,build,cmake,mitk,C++,Qt,Build,Cmake,Mitk,您下载了错误的Qt在线安装程序 您安装的是从这里开始的: 您想要的版本在这里:最新版本或较旧版本 我不确定区别是什么,但您可能安装的是普通版版本,而您需要的是统一版版本,不管这意味着什么。安装后,请检查以下目录:C:\Qt\5.7\msvc2015\u 64\lib\cmake\Qt5PrintSupport,因为现在它应该包括Qt5PrintSupportConfig.cmake文件
普通版
版本,而您需要的是统一版
版本,不管这意味着什么。安装后,请检查以下目录:C:\Qt\5.7\msvc2015\u 64\lib\cmake\Qt5PrintSupport
,因为现在它应该包括Qt5PrintSupportConfig.cmake
文件