• <bdo id='L0cuj'></bdo><ul id='L0cuj'></ul>
    <tfoot id='L0cuj'></tfoot>

    1. <legend id='L0cuj'><style id='L0cuj'><dir id='L0cuj'><q id='L0cuj'></q></dir></style></legend>
    2. <small id='L0cuj'></small><noframes id='L0cuj'>

        <i id='L0cuj'><tr id='L0cuj'><dt id='L0cuj'><q id='L0cuj'><span id='L0cuj'><b id='L0cuj'><form id='L0cuj'><ins id='L0cuj'></ins><ul id='L0cuj'></ul><sub id='L0cuj'></sub></form><legend id='L0cuj'></legend><bdo id='L0cuj'><pre id='L0cuj'><center id='L0cuj'></center></pre></bdo></b><th id='L0cuj'></th></span></q></dt></tr></i><div id='L0cuj'><tfoot id='L0cuj'></tfoot><dl id='L0cuj'><fieldset id='L0cuj'></fieldset></dl></div>

        添加“Qt5Widgets"的安装前缀;到 CMAKE_PREFIX_PATH

        时间:2023-08-27

        <tfoot id='nsMpl'></tfoot>
        <i id='nsMpl'><tr id='nsMpl'><dt id='nsMpl'><q id='nsMpl'><span id='nsMpl'><b id='nsMpl'><form id='nsMpl'><ins id='nsMpl'></ins><ul id='nsMpl'></ul><sub id='nsMpl'></sub></form><legend id='nsMpl'></legend><bdo id='nsMpl'><pre id='nsMpl'><center id='nsMpl'></center></pre></bdo></b><th id='nsMpl'></th></span></q></dt></tr></i><div id='nsMpl'><tfoot id='nsMpl'></tfoot><dl id='nsMpl'><fieldset id='nsMpl'></fieldset></dl></div>

        <small id='nsMpl'></small><noframes id='nsMpl'>

                • <bdo id='nsMpl'></bdo><ul id='nsMpl'></ul>
                    <tbody id='nsMpl'></tbody>
                  <legend id='nsMpl'><style id='nsMpl'><dir id='nsMpl'><q id='nsMpl'></q></dir></style></legend>
                • 本文介绍了添加“Qt5Widgets"的安装前缀;到 CMAKE_PREFIX_PATH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我对 cmake 了解不多,我正在尝试使用 cmake 和 Qt 构建客户端.收到以下错误:

                  I don't know a lot about cmake, I'm trying to build a client using cmake and Qt. Getting the following error:

                  alethzero/CMakeLists.txt:26 (find_package) 处的 CMake 错误:不在此项目的 CMAKE_MODULE_PATH 中提供FindQt5Widgets.cmake"
                  已要求 CMake 查找
                  提供的包配置文件Qt5Widgets",但 CMake 没有找到.

                  CMake Error at alethzero/CMakeLists.txt:26 (find_package): By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
                  has asked CMake to find a package configuration file provided by
                  "Qt5Widgets", but CMake did not find one.

                  找不到Qt5Widgets"提供的包配置文件具有以下任何名称:

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

                  Qt5WidgetsConfig.cmake
                  qt5widgets-config.cmake
                  

                  将Qt5Widgets"的安装前缀添加到CMAKE_PREFIX_PATH或者将Qt5Widgets_DIR"设置为包含上述之一的目录文件.如果Qt5Widgets"提供单独的开发包或SDK,请确保已安装.

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

                  -- 配置不完整,出现错误!

                  -- Configuring incomplete, errors occurred!

                  据我了解,我需要将QT路径添加到CMake中.我该怎么做?我在/home/user/Programs 中安装了 Qt.我找到的所有解释都是做这个或那个".我需要确切的终端命令,以便我将来可以学习如何操作.

                  As far as I understand, I need to add the QT path to CMake. How do I do it? I have Qt installed in /home/user/Programs. All the explanations I find are "just do this or that". I need the exact Terminal commands so I can just learn how to do it in the future.

                  谢谢!

                  更新:export CMAKE_PREFIX_PATH=/home/user/Programs 对我没有帮助.

                  UPDATE: export CMAKE_PREFIX_PATH=/home/user/Programs did not help me.

                  推荐答案

                  好吧,这里有一个适用于 Windows 的解决方案:如何在windows上找到qt5 CMake模块

                  Well, here you have a solution for Windows: How to find qt5 CMake module on windows

                  set (CMAKE_PREFIX_PATH "C:\Qt\Qt5.0.1\5.0.1\msvc2010\")
                  

                  对于您的环境,我认为您将不得不更改Qt所在的路径...

                  For your environment, I think you will have to change the path where Qt is located...

                  也许这会对您有所帮助:
                  https://github.com/Cockatrice/Cockatrice/issues/205

                  Maybe this will help you:
                  https://github.com/Cockatrice/Cockatrice/issues/205

                  这篇关于添加“Qt5Widgets"的安装前缀;到 CMAKE_PREFIX_PATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:库标题和#define 下一篇:如何让 CMake 创建一个 dll 及其匹配的 lib 文件?

                  相关文章

                  <tfoot id='IUWyk'></tfoot>
                    1. <small id='IUWyk'></small><noframes id='IUWyk'>

                        <bdo id='IUWyk'></bdo><ul id='IUWyk'></ul>

                      <i id='IUWyk'><tr id='IUWyk'><dt id='IUWyk'><q id='IUWyk'><span id='IUWyk'><b id='IUWyk'><form id='IUWyk'><ins id='IUWyk'></ins><ul id='IUWyk'></ul><sub id='IUWyk'></sub></form><legend id='IUWyk'></legend><bdo id='IUWyk'><pre id='IUWyk'><center id='IUWyk'></center></pre></bdo></b><th id='IUWyk'></th></span></q></dt></tr></i><div id='IUWyk'><tfoot id='IUWyk'></tfoot><dl id='IUWyk'><fieldset id='IUWyk'></fieldset></dl></div>
                    2. <legend id='IUWyk'><style id='IUWyk'><dir id='IUWyk'><q id='IUWyk'></q></dir></style></legend>