C++ 在nana cmake上找不到x11
我正在CLion中加载nana源代码,cmake告诉我一个错误,说x11设置为NOTFOUND 我曾尝试在ubuntu上安装x11 dev libs,但没有帮助:/ 编辑:我已通过安装(第二个代码块)修复了上述问题 但是现在我看到以下错误(第一个代码块) 代码块1C++ 在nana cmake上找不到x11,c++,linux,cmake,x11,nana,C++,Linux,Cmake,X11,Nana,我正在CLion中加载nana源代码,cmake告诉我一个错误,说x11设置为NOTFOUND 我曾尝试在ubuntu上安装x11 dev libs,但没有帮助:/ 编辑:我已通过安装(第二个代码块)修复了上述问题 但是现在我看到以下错误(第一个代码块) 代码块1 fatal error: X11/Xcursor/Xcursor.h: No such file or directory #include <X11/Xcursor/Xcursor.h> ^~~~~
fatal error: X11/Xcursor/Xcursor.h: No such file or directory
#include <X11/Xcursor/Xcursor.h>
^~~~~~~~~~~~~~~~~~~~~~~
预计会编译,但由于某些原因它不是这里有许多X11包。libxft-dev似乎是一个奇怪的选择。它只是X11的一小部分,可能会也可能不会引入您需要的X11库。也许可以尝试安装libxcursordev,看看会发生什么 来自n.'代词'm
它对我有效在加载之前尝试一下:
sudo apt install libxcursor-dev
有许多X11软件包。libxft-dev似乎是一个奇怪的选择。它只是X11的一小部分,可能会也可能不会引入您需要的X11库。也许可以尝试安装libxcursordev,看看会发生什么。忘记回复了,但这已经解决了问题,非常感谢
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