如何在makefile中添加#include



我想构建以下源代码:https://bitbucket.org/portix/dwb/src.如果我运行make install,我得到:

In file included from dwbremote.c:19:
./dwbremote.h:22:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
         ^

所以我在config.mk中添加了CFLAGS += -I/opt/X11/include。但这并没有修复它。我也遇到了同样的错误。

编辑:要包含的标题位于/opt/X11/include/X11/Xlib.h

C_INCLUDE_PATH=/opt/X11/include
export C_INCLUDE_PATH

完成

最新更新