且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Mac OS X 10.8(Mountain Lion)上建立graphviz时找不到Xlib.h

更新时间: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.