[MPlayer-users] mencoder wants X11

SrinTuar srintuar at gmail.com
Thu Dec 14 03:39:24 CET 2006


Is anyone besides me having trouble linking the latest mencoder from svn ?

For me it seems to need X11 libs to link libavformat, though the X11 libs
arent being passed to the linker...

Just wondering if anybody else was seeing this :)


~~~~~
cc -o mencoder mencoder.o mp_msg-mencoder.o asxparser.o codec-cfg.o
cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o
playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o
unrarlib.o parser-mecmd.o xvid_vbr.o libmpcodecs/libmpencoders.a
libmpdemux/libmpmux.a libmpcodecs/libmpcodecs.a libaf/libaf.a
libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a
libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a
libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a
tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a
libass/libass.a osdep/libosdep.a  -Wl,-z,noexecstack   -lncurses -lsmbclient
-lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -lcdda_interface
-lcdda_paranoia -lfreetype -lz -lfontconfig  -L/usr/lib -lfribidi -lz
-ltheora -logg   -ldv  -lpthread -ldl -rdynamic  -lm

libavformat/libavformat.a(x11grab.o)(.text+0x46): In function
`x11grab_read_close':
x11grab.c: undefined reference to `XShmDetach'
libavformat/libavformat.a(x11grab.o)(.text+0x1bb): In function
`x11grab_read_header':
x11grab.c: undefined reference to `XShmQueryExtension'
libavformat/libavformat.a(x11grab.o)(.text+0x253):x11grab.c: undefined
reference to `XShmCreateImage'
libavformat/libavformat.a(x11grab.o)(.text+0x2bd):x11grab.c: undefined
reference to `XShmAttach'
libavformat/libavformat.a(x11grab.o)(.text+0xc1d): In function
`x11grab_read_packet':
x11grab.c: undefined reference to `XShmGetImage'
collect2: ld returned 1 exit status
make: *** [mencoder] Error 1



More information about the MPlayer-users mailing list