首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到Qt6安装吗?

找不到Qt6安装吗?
EN

Stack Overflow用户
提问于 2022-02-11 19:10:09
回答 1查看 3.3K关注 0票数 2

尝试遵循GitHub页面的安装说明:https://github.com/TASEmulators/fceux

我一直在安装Qt6,当我这样做时,会发生以下情况:

代码语言:javascript
复制
mkdir build
cd build
cmake  -DCMAKE_INSTALL_PREFIX=/usr  -DQT6=1  -DCMAKE_BUILD_TYPE=Debug    ..

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- GUI Frontend: Qt6
CMake Error at src/CMakeLists.txt:22 (find_package):
  By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt6", but
  CMake did not find one.

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

    Qt6Config.cmake
    qt6-config.cmake

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


-- Configuring incomplete, errors occurred!
EN

回答 1

Stack Overflow用户

发布于 2022-02-11 19:26:42

正如错误消息所述,您需要将环境值Qt6_DIR设置为安装qt6的位置。这应该是安装qt6的说明的一部分。

您应该链接用于安装qt6的说明。它们可能包含设置环境变量QT_DIR的指令,而不是正在构建的Qt6_DIR。如果是这样的话,只需按照设置QT_DIR的说明来设置Qt6_DIR。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71085418

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档