更新时间:2023-09-26 18:11:58
您需要告诉tkstubs
构建(以及包中可能还有其他位)来查找/opt/X11/include
中的标头.这不是标准的包含路径.
You need to tell the tkstubs
build (and possibly other bits in the package as well) to look for headers in /opt/X11/include
; this is not on the standard include path.
通常,这是通过传递-I/opt/X11/include
作为附加的编译器标志来实现的,但是此方法取决于构建系统.
Usually this is achieved by passing -I/opt/X11/include
as an additional compiler flag, the method to do so is however dependent on the build system.
对于相当现代的configure
脚本,***的方法是将其传递到环境变量CPPFLAGS
中.如果软件包使用其他构建系统,或者由于其他原因而无法使用,则需要查看构建目录中的Makefile
.
For reasonably modern configure
scripts, the best approach is to pass it in the environment variable CPPFLAGS
; if the package uses another build system or this doesn't work for another reason, then you need to look at the Makefile
in the build directory.