LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1206|回复: 1

./configure执行完后提示说需要xlib开发库,但是我已经装了

[复制链接]
发表于 2005-12-25 00:59:16 | 显示全部楼层 |阅读模式
./configure执行完后提示说需要xlib开发库,但是我已经装了,在/usr/X11R6/include/X11/Xlib.h中可以找到XOpenDisplay函数的。
./configure运行结果如下所示:

checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for XOpenDisplay in -lX11... no
checking X11/XKBlib.h usability... yes
checking X11/XKBlib.h presence... yes
checking for X11/XKBlib.h... yes
configure: error: cannot find X11 development files
 楼主| 发表于 2005-12-25 01:30:54 | 显示全部楼层
configure.in文件之中关于xlib检测的部分:
AC_PATH_X
AC_CHECK_LIB(X11, XOpenDisplay,
  [ac_cv_my_have_x11="yes"
   if test -n "${x_includes}"; then X_CFLAGS="-I${x_includes}"; fi
   if test -n "${x_libraries}"; then X_LIBS="-lX11 -lXext -L${x_libraries}"; fi
   AC_DEFINE(USE_X11, 1, Define to activate the X11 backend driver)],
  [ac_cv_my_have_x11="no"],
  [[-lXt -L${x_libraries}]])
AC_CHECK_HEADERS(X11/XKBlib.h)
if test "${ac_cv_my_have_x11}" != "yes" ; then
  AC_MSG_ERROR([cannot find X11 development files])
fi
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表