ジルビ*_*ルビズ 5 c++ linux x11 cmake nana
我正在 CLion 中加载 nana 源,cmake 给我一个错误,说 x11 设置为 NOTFOUND
我曾尝试在 ubuntu 上安装 x11 开发库,但没有帮助:/
编辑:我已通过安装(第二个代码块)解决了上述问题
sudo apt install libxft-dev
Run Code Online (Sandbox Code Playgroud)
但是现在我看到以下错误(第一个代码块)
代码块 1
fatal error: X11/Xcursor/Xcursor.h: No such file or directory
#include <X11/Xcursor/Xcursor.h>
^~~~~~~~~~~~~~~~~~~~~~~
Run Code Online (Sandbox Code Playgroud)
代码块 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
Run Code Online (Sandbox Code Playgroud)
预计会编译但由于某种原因它不是
小智 0
这里有很多X11包。libxft-dev 似乎是一个奇怪的选择。它是 X11 的一小部分,可能会也可能不会引入您需要的 X11 库。也许尝试安装 libxcursor-dev 并看看会发生什么。
来自 n. '代词' m 它对我有用
| 归档时间: |
|
| 查看次数: |
1750 次 |
| 最近记录: |