当前位置:网站首页>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)
边栏推荐
- What is the difference between EDI license and ICP business license
- How does win11 change icons for applications? Win11 method of changing icons for applications
- 漫画:什么是八皇后问题?
- Facing new challenges and becoming a better self -- attacking technology er
- Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
- 漫画:什么是蓝绿部署?
- 帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
- Apiccloud cloud debugging solution
- Single merchant v4.4 has the same original intention and strength!
- Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
猜你喜欢

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

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

OneForAll安装使用

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]

Global Data Center released DC brain system, enabling intelligent operation and management through science and technology

Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert

StarkWare:欲构建ZK“宇宙”

如何安装mysql

Bs-xx-042 implementation of personnel management system based on SSM

Parameter type setting error during batch update in project SQL
随机推荐
阿掌的怀念
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
数据访问 - EntityFramework集成
给自己打打气
Flet教程之 12 Stack 重叠组建图文混合 基础入门(教程含源码)
企业级备份软件Veritas NetBackup(NBU) 8.1.1服务端的安装部署
Dare not buy thinking
Domestic API management artifact used by the company
PHP 严格模式
Do sqlserver have any requirements for database performance when doing CDC
【漏洞预警】CVE-2022-26134 Confluence 远程代码执行漏洞POC验证与修复过程
怎样在电脑上设置路由器的WiFi密码
[brush title] goose factory shirt problem
一键安装脚本实现快速部署GrayLog Server 4.2.10单机版
File operation --i/o
[js] skill simplification if empty judgment
Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
Solve the Hanoi Tower problem [modified version]
Quelques réflexions cognitives
OneForAll安装使用