|
|
我在编译安装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"
请问问题出在哪呢?谢谢!!! |
|