LinuxSir.cn,穿越时空的Linuxsir!

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

小弟问个菜鸟问题……

[复制链接]
发表于 2006-5-24 17:49:50 | 显示全部楼层 |阅读模式
我在编译安装mplayer的时候提示:
……
Checking for X11 headers presence ... yes (using -I/usr/X11/include/X11)
Checking for X11 libs presence ... yes (using -L/usr/X11/lib)
Checking for X11 ... no
……
Error: X11 support required for GUI compilation

程序代码如下:
echocheck "X11 headers presence"
if test -z "$_inc_x11" ; then
  for I in /usr/X11/include /usr/X11R6/include/ /usr/include/X11R6 /usr/include /usr/openwin/include ; do
    if test -d "$I/X11" && test -f "$I/X11/Xlib.h" ; then
      _inc_x11="-I$I"
      echores "yes (using $I)"
      break
    fi
  done
  if test -z "$_inc_x11" ; then
    _x11=no
    echores "not found (check if the dev(el) packages are installed)"
  fi
else
  echores "yes (using $_inc_x11)"
fi
if test "$_inc_x11" = "-I/usr/include" ; then
  _inc_x11=""
fi


echocheck "X11 libs presence"
if test -z "$_ld_x11" ; then
  for I in /usr/X11R6/lib /usr/lib/X11R6 /usr/X11/lib /usr/lib32 /usr/openwin/lib /usr/X11R6/lib64 /usr/lib ; do
    if test -d "$I" && ( test -f "$I/libX11.so" || test -f "$I/libX11.a" || test -f "$I/libX11.dll.a" ) ; then
      if netbsd; then
        _ld_x11="-L$I -Wl,-R$I"
      else
        _ld_x11="-L$I"
      fi
      echores "yes (using $I)"
      break;
    fi
  done
  if test -z "$_ld_x11" ; then
    _x11=no
    echores "not found (check if the dev(el) packages are installed)"
  fi
else
  echores "yes (using $_ld_x11)"
fi
_ld_x11="$_ld_x11 -lXext -lX11 $_ld_sock"


echocheck "X11"
if test "$_x11" != no ; then
  cat > $TMPC <<EOF
#include </usr/X11/include/X11/Xlib.h>
#include </usr/X11/include/X11/Xutil.h>
int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; }
EOF
  _x11=no
  cc_check $_inc_x11 $_ld_x11 && _x11=yes
fi
if test "$_x11" = yes ; then
  _def_x11='#define HAVE_X11 1'
  _vosrc="$_vosrc x11_common.c vo_x11.c vo_xover.c"
  _vomodules="x11 xover $_vomodules"
else
  _def_x11='#undef HAVE_X11'
  _inc_x11=''
  _ld_x11=''
  _novomodules="x11 $_novomodules"
fi
echores "$_x11"

请问问题出在哪呢?谢谢!!!
 楼主| 发表于 2006-5-24 18:04:13 | 显示全部楼层
安装日志中的出错信息:
#include <X11/Xlib.h>
#include <X11/Xutil.h>
int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; }

cc     /tmp/mplayer-conf-4564-15867.c -o /tmp/mplayer-conf-7848-15867.o -I/usr/X11/include/X11 -L/usr/X11/lib -lXext -lX11 -lnsl
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11/lib/libXext.so when searching for -lXext
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11/lib/libXext.a when searching for -lXext
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status

ldd /tmp/mplayer-conf-7848-15867.o
ldd: /tmp/mplayer-conf-7848-15867.o: No such file or directory

Result is: no
回复 支持 反对

使用道具 举报

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

本版积分规则

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