Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/159.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 在nana cmake上找不到x11_C++_Linux_Cmake_X11_Nana - Fatal编程技术网

C++ 在nana cmake上找不到x11

C++ 在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> ^~~~~

我正在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>
          ^~~~~~~~~~~~~~~~~~~~~~~

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

这里有许多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