[XviD-devel] [BUGLET?] win32 project files

suxen_drol suxen_drol at hotmail.com
Thu Apr 15 12:46:27 CEST 2004


On Thu, 15 Apr 2004 01:53:55 +0300 Andrew Voznytsa <av at polynet.lviv.ua> wrote:
> just built rc4,
> no problems, everything ok.

i disagree!  on my box (vc6,sp+pp,winxp), fread(stdin) by xvid_decraw
always returns zero, and therefore causes the decoding loop to exit.
this results in zero frames decoded, and a div0 error when printing avg
frame decoding time.

i've commited the following to release-1.0:
	#define ARCH_IS_LITTLE_ENDIAN missing for xvid_enc/decraw
	fixed xvid_decraw compile warnings and div0 error
	added xvid_decraw MSVC stdin eof warning

ed, xvid_bench fails to compile under msvc, due to lack of a static lib.
ive alrady commited a patch for this to cvshead. is it worth applying
this to the release-branch?

also ed(!), the examples makefile fails to build under mingw. it can be
fixed by the following patch, but...

-LDFLAGS = -lc -lm -lxvidcore
+LDFLAGS = -static -L../build/generic/\=build -lxvidcore 

... the libxvidcore make/output rules need to be modified. according to
ld version 2.13.90 (20030111), the static library should be named
libxvidcore.a _or_ xvidcore.lib.

currently when we build xvidcore with mingw we output:
	xvidcore.a (static) <-- incorrect
	xvidcore.dll (shared object)
	xvidcore.dll.a (shared object exports)

when compiling (by default), the following names are sought
	libxvidcore.dll.a (shared object exports)
	xvidcore.dll.a (shared object exports)
	libxvidcore.a (static)
	libxvidcore.dll (shared object)
	xvidcore.dll (shared object)
	xvidcore.lib (static)

when compiling with ld -static, the following names are sought:
	libxvidcore.a
	xvidcore.lib

-- pete





More information about the XviD-devel mailing list