当前位置:网站首页>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)
边栏推荐
- ES6深入—async 函数 与 Symbol 类型
- Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
- [es6] 模板字符串内添加if判断或添加三元运算符判断
- CISP-PTE之PHP伪协议总结
- Pspnet | semantic segmentation and scene analysis
- Apiccloud cloud debugging solution
- Accès aux données - intégration du cadre d'entité
- Cheer yourself up
- 普洛斯数据中心发布DC Brain系统,科技赋能智慧化运营管理
- DeSci:去中心化科学是Web3.0的新趋势?
猜你喜欢
新春限定丨“牛年忘烦”礼包等你来领~
【 brosser le titre 】 chemise culturelle de l'usine d'oies
CISP-PTE之SQL注入(二次注入的应用)
服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
Bs-xx-042 implementation of personnel management system based on SSM
普洛斯数据中心发布DC Brain系统,科技赋能智慧化运营管理
2020-2022 two-year anniversary of creation
Flet教程之 09 NavigationRail 基础入门(教程含源码)
清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
随机推荐
Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
践行自主可控3.0,真正开创中国人自己的开源事业
Reduce the cost by 40%! Container practice of redis multi tenant cluster
10 minutes to help you get ZABBIX monitoring platform alarm pushed to nail group
BS-XX-042 基于SSM实现人事管理系统
[deep learning] how does deep learning affect operations research?
[vulnerability warning] cve-2022-26134 conflict Remote Code Execution Vulnerability POC verification and repair process
【 brosser le titre 】 chemise culturelle de l'usine d'oies
How to uninstall MySQL cleanly
【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……
Accès aux données - intégration du cadre d'entité
How does win11 change icons for applications? Win11 method of changing icons for applications
Using graylog alarm function to realize the regular work reminder of nail group robots
单商户 V4.4,初心未变,实力依旧!
ES6 deep - ES6 class class
CISP-PTE之SQL注入(二次注入的应用)
Data access - entityframework integration
Apple 已弃用 NavigationView,使用 NavigationStack 和 NavigationSplitView 实现 SwiftUI 导航
求解汉诺塔问题【修改版】
How to install MySQL