c++ - 在 nana cmake 上找不到 x11

标签 c++ linux cmake x11 nana

我在 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

预计会编译,但由于某种原因它不是

最佳答案

在加载之前尝试一下:

sudo apt install libxcursor-dev

关于c++ - 在 nana cmake 上找不到 x11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56309337/

相关文章:

c++ - 以列表作为值初始化 map

python - 在 Windows 上将 Python 链接到我的 C++ 代码中 - 链接器错误

c++ - 使用 CMake 查找 SQLiteCpp 包

c++ - Bellman ford 实现不起作用

linux - 音频 channel 自动更改/交换

c - 为什么 C 中的填充对分配在堆栈上的变量/结构有效?

regex - 使用perl用特殊字符替换字符串

c++ - cmake 链接 libboost_python-py32.so 而不是 libboost_python.so

cmake:相对链接目录

c++ - 重新插入Eigen库的稀疏矩阵