当前位置:网站首页>Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
2022-07-05 16:39:00 【Trendy technology research society】
Compiling a cmake When the project is , Need to use ECM, So using vcpkg install ecm, Results the installation was successful , however cmake Still don't recognize ,find_package Report errors , Can't find ecm Location , Obviously ,vcpkg install ecm To packages Under the path , This packages The path is not cmake Find the
Now , We need to be in CMakeList Add path description to the file , That is to use set 了 .
As shown in the figure below ,Qt5 Can directly set, however ECM, I can't find it ECM How to set the path of ,Qt5_DIR We often see , however ECM_DIR But I have never seen , Obviously , Give it a try , no way .
Then I tried to vcpkg in packages In the catalog ecm Installation directory share Copy the directory directly to cmake share Directory ,cmake Successfully found ecm, But that's normal ,cmake Look under your own path , It must be found .
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
set(Qt5_DIR "D:\\Qt\\5.15.2\\msvc2019_64\\lib\\cmake\\Qt5")
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Svg Concurrent)
边栏推荐
- [深度学习][原创]让yolov6-0.1.0支持yolov5的txt读取数据集模式
- DeSci:去中心化科学是Web3.0的新趋势?
- 给自己打打气
- 清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
- How to set the WiFi password of the router on the computer
- 迁移/home分区
- 极坐标扇图使用场景与功能详解
- Seaborn draws 11 histograms
- 程序员如何提升自己的格局?
- Practice independent and controllable 3.0 and truly create the open source business of the Chinese people
猜你喜欢
Research and development efficiency measurement index composition and efficiency measurement methodology
[brush title] goose factory shirt problem
CISP-PTE之PHP伪协议总结
普洛斯数据中心发布DC Brain系统,科技赋能智慧化运营管理
Data Lake (XIV): spark and iceberg integrated query operation
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md
BS-XX-042 基于SSM实现人事管理系统
二叉树相关OJ题
随机推荐
Cheer yourself up
文件操作--I/O
Cartoon: what is distributed transaction?
中间表是如何被消灭的?
解决CMakeList find_package找不到Qt5,找不到ECM
Bs-xx-042 implementation of personnel management system based on SSM
【漏洞预警】CVE-2022-26134 Confluence 远程代码执行漏洞POC验证与修复过程
[echart] resize lodash 实现窗口缩放时图表自适应
JSON转MAP前后数据校验 -- 自定义UDF
ES6 drill down - ES6 generator function
Solve the Hanoi Tower problem [modified version]
The list set is summed up according to a certain attribute of the object, the maximum value, etc
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
Data access - entityframework integration
如何安装mysql
APICloud云调试解决方案
Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
Flet教程之 09 NavigationRail 基础入门(教程含源码)
數據訪問 - EntityFramework集成
CISP-PTE之PHP伪协议总结