[MPlayer-users] radeon_vid.c compile error
Steven M. Schultz
sms at 2BSD.COM
Thu Apr 29 18:24:22 CEST 2004
Hi -
cc -c -I../libvo/ -I../../libvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fPIC -I. -I.. -o radeon_vid.o radeon_vid.c
radeon_vid.c:29: X11/Xlib.h: No such file or directory
radeon_vid.c: In function `probe_fireGL_driver':
radeon_vid.c:925: `Display' undeclared (first use in this function)
radeon_vid.c:925: (Each undeclared identifier is reported only once
radeon_vid.c:925: for each function it appears in.)
radeon_vid.c:925: `dp' undeclared (first use in this function)
radeon_vid.c:926: syntax error before `int'
radeon_vid.c:929: `extlist' undeclared (first use in this function)
radeon_vid.c:932: `n' undeclared (first use in this function)
gmake[2]: *** [radeon_vid.o] Error 1
gmake[2]: Leaving directory `/usr/local/src/MPlayer-cvs/vidix/drivers'
X11 was detected (HAVE_X11 is set) but the include path (_inc_x11)
to the X headers is not being added or passed thru to the
vidix/drivers/Makefile
If I manually add -I/usr/X11R6/include to the flags, the compilation
succeeds but then the linker complains with this error:
cc -I../libvo/ -I../../libvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibmpdemux -Iloader -Ilibvo -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/SDL -D_REENTRANT -D_THREAD_SAFE -I/usr/X11/include -o mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o mixer.o parser-mpcmd.o libvo/libvo.a libao2/libao2.a vidix/libvidix.a libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a -ldvdread libavcodec/libavcodec.a libavformat/libavformat.a -lmad -lvorbis -logg -ldv -ltheora -logg -lfaad -llzo -lmp3lame -lvorbis -logg -lxvidcore -lm -lpng -lz -lz -ljpeg -L/usr/local/lib -lfreety!
pe -lz -ltermcap /usr/local/src/l
ive/liveMedia/libliveMedia.a /usr/local/src/live/groupsock/libgroupsock.a /usr/local/src/live/UsageEnvironment/libUsageEnvironment.a /usr/local/src/live/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++ -lGL -lXxf86dga -lXv -lXxf86vm -lXinerama -L/usr/X11R6/lib -lXext -lX11 -lmad -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lm -ldl -L/usr/X11R6/lib -lX11 -lXext -L/usr/contrib/lib -lesd -laudiofile -lm -L/usr/local/lib -ldl -rdynamic -ldvd -liconv -lintl -lm
libmpdemux/libmpdemux.a(demux_rtp_codec.o)(.data+0x0): multiple definition of `VIDEO_FORMAT'
libmpdemux/libmpdemux.a(demux_rtp.o)(.data+0x4): first defined here
libmpdemux/libmpdemux.a(demux_rtp_codec.o)(.data+0x4): multiple definition of `VIDEO_STANDARD'
libmpdemux/libmpdemux.a(demux_rtp.o)(.data+0x8): first defined here
Seems VIDEO_FORMAT and VIDEO_STANDARD are defined in two places.
Steven Schultz
More information about the MPlayer-users
mailing list