gpt4 book ai didi

c++ - CMake CEGUI/GTK2 配置错误

转载 作者:行者123 更新时间:2023-11-28 02:53:55 25 4
gpt4 key购买 nike

我正在尝试构建和使用 CEGUI(Crazy Eddie 的 GUI)作为 Ogre 的库。我正在使用 CMake,但在依赖项的配置步骤中,出现以下错误:

Some or all of the gtk libraries were not found. (missing: GTK2_GTK_LIBRARY GTK2_GTK_INCLUDE_DIR GTK2_GDK_INCLUDE_DIR GTK2_GDKCONFIG_INCLUDE_DIR GTK2_GDK_LIBRARY GTK2_GLIB_INCLUDE_DIR GTK2_GLIBCONFIG_INCLUDE_DIR GTK2_GLIB_LIBRARY) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: Boost_INCLUDE_DIR (ADVANCED) used as include directory in directory C:/Cegui/cegui-0.8.3/cegui/src/RendererModules/Ogre

CEGUI 0.8.3cegui-deps-0.8.x-src.zip

最佳答案

  1. 确保您的计算机上安装了 GTK2(据我所知,它不是 CEGUI 依赖项下载存档的一部分)。

  2. 确保 CMake 可以找到库及其所需的一切。从看官CMake FindGKT2 script (而且我找不到 CEGUI 的自定义,所以最有可能使用官方的),检查以下位置:

    • /usr/local/lib64
    • /usr/local/lib
    • /usr/lib64
    • /usr/lib
    • /opt/gnome/include [和/lib]
    • /opt/openwin/include [和/lib]
    • /sw/include [和/lib]
    • /opt/local/include [和/lib]
    • /usr/pkg/lib
    • /usr/pkg/include/glib
    • $ENV{GTKMM_BASEPATH}/include [和/lib]
    • [HKEY_CURRENT_USER\SOFTWARE\gtkmm\2.4;路径]/include
    • [HKEY_CURRENT_USER\SOFTWARE\gtkmm\2.4;路径]/lib
    • [HKEY_LOCAL_MACHINE\SOFTWARE\gtkmm\2.4;路径]/include
    • [HKEY_LOCAL_MACHINE\SOFTWARE\gtkmm\2.4;路径]/lib

因此,如果您使用的是 Windows,设置环境变量 GTKMM_BASEPATH 可能是最简单的方法。或者,您也可以在高级 CEGUI View 中直接输入 GTK2 安装路径。

关于c++ - CMake CEGUI/GTK2 配置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22431866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com