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