尝试遵循GitHub页面的安装说明:https://github.com/TASEmulators/fceux
我一直在安装Qt6,当我这样做时,会发生以下情况:
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!发布于 2022-02-11 19:26:42
正如错误消息所述,您需要将环境值Qt6_DIR设置为安装qt6的位置。这应该是安装qt6的说明的一部分。
您应该链接用于安装qt6的说明。它们可能包含设置环境变量QT_DIR的指令,而不是正在构建的Qt6_DIR。如果是这样的话,只需按照设置QT_DIR的说明来设置Qt6_DIR。
https://stackoverflow.com/questions/71085418
复制相似问题