当前位置:网站首页>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)
边栏推荐
- The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
- PSPNet | 语义分割及场景分析
- 如何将mysql卸载干净
- 【深度学习】深度学习如何影响运筹学?
- Exception com alibaba. fastjson. JSONException: not match : - =
- Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache
- Apiccloud cloud debugging solution
- 一些认知的思考
- 漫画:什么是MapReduce?
- 【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
猜你喜欢

Binary tree related OJ problems

scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月

ES6 deep - ES6 class class

数据湖(十四):Spark与Iceberg整合查询操作

《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md

Seaborn绘制11个柱状图

Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)

【 brosser le titre 】 chemise culturelle de l'usine d'oies

Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~

解决CMakeList find_package找不到Qt5,找不到ECM
随机推荐
Bs-xx-042 implementation of personnel management system based on SSM
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Using graylog alarm function to realize the regular work reminder of nail group robots
Obj resolves to a set
Binary tree related OJ problems
一键安装脚本实现快速部署GrayLog Server 4.2.10单机版
[深度学习][原创]让yolov6-0.1.0支持yolov5的txt读取数据集模式
中间表是如何被消灭的?
What is the difference between EDI license and ICP business license
[graduation season] as a sophomore majoring in planning, I have something to say
自己要有自己的坚持
File operation --i/o
Mongodb getting started Tutorial Part 04 mongodb client
Flet教程之 09 NavigationRail 基础入门(教程含源码)
今日睡眠质量记录79分
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)