xvid support won't compile if divx5 headers present
$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) -- Gabucino "I think the developers placed this bug intentionally, so the GUI won't run on specific systems. They are Debian-lovers, I see this from the docs." -- lama
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/ - ____________________________________________
Doesn't XviD have an own decore.h? It's bad technique detecting xvid lib with non xlib headers... True. But it's the MPlayer Approved Way.. And it works with DivX4. This is a bad way, though.. And note that xvid make install installs only
Felix Buenemann didn't RTFM : libxvidcore.so, no headers. Hm. Are headers needed for static libraries? :) -- Gabucino "I think the developers placed this bug intentionally, so the GUI won't run on specific systems. They are Debian-lovers, I see this from the docs." -- lama
On Sun, Mar 10, 2002 at 10:33:37AM +0100, Gabucino wrote:
Doesn't XviD have an own decore.h? It's bad technique detecting xvid lib with non xlib headers... True. But it's the MPlayer Approved Way.. And it works with DivX4. This is a bad way, though.. And note that xvid make install installs only
Felix Buenemann didn't RTFM : libxvidcore.so, no headers. Hm. Are headers needed for static libraries? :)
As those libraries implement the same API (well divx5 headers removed the *311 option & that's how it's detected) there's no easy way to know that the header files you are using don't match the library you'll link with (or I ve not looked closer enough :) Just get sure to specify your includes with the configure --*extra-include* option. -- Best regards, pl
Just get sure to specify your includes with the configure --*extra-include* option. But if I have divx5 includes I don't have divx4 includes..
-- Gabucino "I think the developers placed this bug intentionally, so the GUI won't run on specific systems. They are Debian-lovers, I see this from the docs." -- lama
participants (3)
-
Felix Buenemann -
Gabucino -
pl