我正在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>
^~~~~~~~~~~~~~~~~~~~~~~码BLCOK 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预期会编译,但由于某种原因它没有编译
发布于 2020-05-17 16:05:57
在加载之前试一试:
sudo apt install libxcursor-dev发布于 2020-05-11 10:09:55
这里有许多X11包。libxft-dev似乎是一个奇怪的选择。它只占X11的一小部分,可能会或不会引入您需要的X11库。也许试着安装libxcursor,看看会发生什么。
代词是对我有用的。
发布于 2021-06-27 05:52:17
apt-get install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev这样就行了!
https://stackoverflow.com/questions/56309337
复制相似问题