[XviD-devel] xvid (cvs-head) problem (ffmpeg+mplayer)

Christoph Lampert chl at math.uni-bonn.de
Mon Feb 24 12:14:49 CET 2003


Okay, 
we had this reported several times and since we'll have to do about
exported symbols anyway: 

I replaced all occurance of cbpy_tab (not cbpy_table) with xvid_cbpy_tab
in CVS. It's just in mbcoding.c, motion_est.c and vlc_codes.h 
Yes, it's not beautiful to fix just this table, but before I change
everything, we have to come up with a strategy. 

My suggestion is to either split up vlc_codes.h or move BITS-related
functions from motion_est.c to bitstream.c, etc...
What cannot be handled this way should get a unique header, e.g. xvid_XXX
like ffmpeg (often) using ff_XXX for global symbols. 

gruel 




On Mon, 24 Feb 2003, Jens Arm wrote:
> Since I think last week there is a problem linking xvid with mplayer:
> 
> gcc -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2     -o mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o cfgparser.o my_profile.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 loader/libloader.a loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a  -lmad -lvorbis -logg -ldv    -lxvidcore -lpng -lz -lz -ljpeg   -lfreetype -ltermcap  -lnsl   -lungif   -laa -lGL -lXxf86dga -lXv -lXxf86vm -lXinerama -L/usr/X11R6/lib -lXext -lX11 -lnsl -lmad -lnsl  !
   !
>             -lpthread -ldl    -lm
> /usr/local/lib/libxvidcore.a(mbcoding.o)(.rodata+0xd40): multiple definition of `cbpy_tab'
> libavcodec/libavcodec.a(h263.o):/home/tux/tmp/comp/mplayer/libavcodec/common.h:300: first defined here
> /usr/bin/ld: Warning: size of symbol `cbpy_tab' changed from 32 to 128 in /usr/local/lib/libxvidcore.a(mbcoding.o)
> collect2: ld returned 1 exit status
> make: *** [mplayer] Error 1
> 
> 
> If you link dynamically you doesn't get an error and can decode without problems, but encoding results in
> only pretty color block noise :(
> 
> I have tried to rename the table-name and then everything IS WORKING fine.
> Perhaps you can do this in the CVS ???
> 
> 
> Jens
> _______________________________________________
> XviD-devel mailing list
> XviD-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
> 




More information about the XviD-devel mailing list