当前位置:网站首页>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)
边栏推荐
- PSPNet | 语义分割及场景分析
- You should have your own persistence
- Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
- Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
- Some cognitive thinking
- Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
- Quelques réflexions cognitives
- Mongodb getting started Tutorial Part 04 mongodb client
- 企业级备份软件Veritas NetBackup(NBU) 8.1.1服务端的安装部署
- Query the latest record in SQL
猜你喜欢

详解SQL中Groupings Sets 语句的功能和底层实现逻辑

用键盘输入一条命令

数据访问 - EntityFramework集成

Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely

Win11如何给应用换图标?Win11给应用换图标的方法

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]

OneForAll安装使用

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

HiEngine:可媲美本地的云原生内存数据库引擎

Benji Bananas 会员通行证持有人第二季奖励活动更新一览
随机推荐
Seaborn绘制11个柱状图
Cartoon: what is blue-green deployment?
2020-2022两周年创作纪念日
[深度学习][原创]让yolov6-0.1.0支持yolov5的txt读取数据集模式
Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
【深度学习】深度学习如何影响运筹学?
ES6深入—async 函数 与 Symbol 类型
求解汉诺塔问题【修改版】
Exception com alibaba. fastjson. JSONException: not match : - =
Binary tree related OJ problems
二叉树相关OJ题
Data Lake (XIV): spark and iceberg integrated query operation
Cartoon: what is MapReduce?
【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……
Query the latest record in SQL
迁移/home分区
【 brosser le titre 】 chemise culturelle de l'usine d'oies
ES6 deep - ES6 class class
Some cognitive thinking
Accès aux données - intégration du cadre d'entité