小编ジルビ*_*ルビズ的帖子

在 nana cmake 上找不到 x11

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

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

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

sudo apt install libxft-dev
Run Code Online (Sandbox Code Playgroud)

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

代码块 1

fatal error: X11/Xcursor/Xcursor.h: No such file or directory
 #include <X11/Xcursor/Xcursor.h>
          ^~~~~~~~~~~~~~~~~~~~~~~
Run Code Online (Sandbox Code Playgroud)

代码块 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 …
Run Code Online (Sandbox Code Playgroud)

c++ linux x11 cmake nana

5
推荐指数
2
解决办法
1750
查看次数

标签 统计

c++ ×1

cmake ×1

linux ×1

nana ×1

x11 ×1