【问题标题】:Failure to find x11 on nana cmake在 nana cmake 上找不到 x11
【发布时间】:2019-05-25 22:52:07
【问题描述】:

我在 CLion 中加载 nana 源,cmake 给我一个错误,说 x11 设置为 NOTFOUND

我尝试在 ubuntu 上安装 x11 开发库,但没有帮助:/

编辑:我已通过安装(第二个代码块)解决了上述问题

sudo apt install libxft-dev

但是现在我看到以下错误(第一个代码块)

代码块 1

fatal error: X11/Xcursor/Xcursor.h: No such file or directory
 #include <X11/Xcursor/Xcursor.h>
          ^~~~~~~~~~~~~~~~~~~~~~~

代码块 2

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:
/home/jirubizu/Downloads/nana_hotfix/X11_Xft_INCLUDE_PATH
   used as include directory in directory /home/jirubizu/Downloads/nana_hotfix
X11_Xft_LIB (ADVANCED)
    linked by target "nana" in directory /home/jirubizu/Downloads/nana_hotfix

预计会编译,但由于某种原因它没有

【问题讨论】:

  • 有很多 X11 包。 libxft-dev 似乎是一个奇怪的选择。它是 X11 的一小部分,可能会或可能不会引入您需要的 X11 库。也许尝试安装 libxcursor-dev 看看会发生什么。
  • 忘记回复但问题已经解决了,非常感谢

标签: c++ linux cmake x11 nana


【解决方案1】:

在加载之前尝试一下:

sudo apt install libxcursor-dev

【讨论】:

    【解决方案2】:

    这里有很多 X11 包。 libxft-dev 似乎是一个奇怪的选择。它是 X11 的一小部分,可能会或可能不会引入您需要的 X11 库。也许尝试安装 libxcursor-dev 看看会发生什么。

    来自 n。 '代词' m 它对我有用

    【讨论】:

      【解决方案3】:
      apt-get install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev
      

      应该这样做!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-06-02
        • 1970-01-01
        • 2020-10-17
        • 2017-09-25
        • 2021-01-16
        • 1970-01-01
        • 1970-01-01
        • 2023-04-04
        相关资源
        最近更新 更多