[MPlayer-dev-eng] xvid support won't compile if divx5 headers present

Felix Buenemann atmosfear at users.sourceforge.net
Sun Mar 10 10:22:44 CET 2002


Am Son, 2002-03-10 um 09.53 schrieb Gabucino:
> $subject.
> 
> With DivX5's decore.h in /usr/include :
> 
> ============ Checking for XviD/DivX4linux/DivX5linux/OpenDivX decore ==========
> 
> #include <decore.h>
> int main(void) { (void) decore(0, 0, 0, 0);  return DEC_OPT_FRAME_311; }
> 
> gcc    /home/gabucino/tmp/mplayer-conf-28400-7368.c -o
>         /home/gabucino/tmp/mplayer-conf-30446-7368.o -lm
>         /home/gabucino/src/xvidcore/build/generic/libcore.a
> /home/gabucino/tmp/mplayer-conf-28400-7368.c: In function 
ain':
> /home/gabucino/tmp/mplayer-conf-28400-7368.c:2: `DEC_OPT_FRAME_311' undeclared
> /home/gabucino/tmp/mplayer-conf-28400-7368.c:2: (Each undeclared identifier is
> /home/gabucino/tmp/mplayer-conf-28400-7368.c:2: for each function it appears in
> 
> ldd /home/gabucino/tmp/mplayer-conf-30446-7368.o
> lddlibc4: cannot read header from /home/gabucino/tmp/mplayer-conf-30446-7368.o
> 
> 
> With DivX4's decore.h in /usr/include :
> 
> ============ Checking for XviD/DivX4linux/DivX5linux/OpenDivX decore ==========
> 
> #include <decore.h>
> int main(void) { (void) decore(0, 0, 0, 0);  return DEC_OPT_FRAME_311; }
> 
> gcc    /home/gabucino/tmp/mplayer-conf-3111-8242.c -o
>         /home/gabucino/tmp/mplayer-conf-2173-8242.o -lm
>         /home/gabucino/src/xvidcore/build/generic/libcore.a
> 
> ldd /home/gabucino/tmp/mplayer-conf-2173-8242.o 
>         libm.so.6 => /lib/libm.so.6 (0x4001f000)
>         libc.so.6 => /lib/libc.so.6 (0x40042000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> Result is: XviD (with /home/gabucino/src/xvidcore/build/generic/libcore.a)
> 

Doesn't XviD have an own decore.h? It's bad technique detecting xvid lib
with non xlib headers...
-- 
Best Regards,
	Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________




More information about the MPlayer-dev-eng mailing list