Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1021|回复: 1
打印 上一主题 下一主题

prefix of "Qt5" to CMAKE_PREFIX_PATH

[复制链接]

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
跳转到指定楼层
楼主
发表于 2023-6-8 19:59:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
No  executable found. Can't check QT_INSTALL_PREFIX
CMake Error at CMakeLists.txt:51 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.


Configuring incomplete, errors occurred!
See also "E:/github/office/qtkeychain/build/CMakeFiles/CMakeOutput.log".

回复

使用道具 举报

1272

主题

2067

帖子

7962

积分

认证用户组

Rank: 5Rank: 5

积分
7962
沙发
 楼主| 发表于 2023-6-8 20:01:32 | 只看该作者
本帖最后由 Qter 于 2023-6-8 20:02 编辑

set (CMAKE_PREFIX_PATH"C:\\Qt\\Qt5.0.1\\5.0.1\\msvc2010\")
添加上面环境变量
Qt5Config.cmake

CMAKE_PREFIX_PATH
D:\Qt\Qt5.15.2\5.15.2\msvc2019\lib\cmake\Qt5\
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-11-25 23:35 , Processed in 0.056577 second(s), 18 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表