[XviD-devel] MacOSX developers needed
ptk9417
ptk9417 at ritvax.rit.edu
Wed Feb 12 00:21:25 CET 2003
On Monday, February 10, 2003, at 08:28 AM, Guillaume Morin wrote:
> Dans un message du 09 Feb à 16:33, ptk9417 écrivait :
>> {Dynamic lib build settings}
>> gcc -Wall -I../src/ -DARCH_IS_32BIT -DARCH_IS_BIG_ENDIAN
>> -DARCH_IS_GENERIC xvid_bench.c -o xvid_bench_dyn -lxvidcore
>>
>> ===== test quant =====
>> PLAINC - quant4_intra 71.314 usec crc=25180
>> *** CRC ERROR! ***
>
> Very weird. Is that reproducible ? It works fine here.
>
Hello Guillaume,
I forgot to check /usr/local/lib/ for previous development cruft. i
had an old copy of the libxvidcore quietly sleeping in there. /me
smacks himself.. I'm very sorry for the false alarm.
But on a different note.. building on linux ppc, without debugging (the
-g flag) causes a segfault on encoding. It occurs in a call to
idct_int32. When debugging is turned on with -g, everything seems to
work fine.. the same occurs with both a static lib and a dyn lib.
{system info}
external at cube examples $ uname -a
Linux cube 2.4.20-ppc-r2 #1 SMP Mon Jan 13 19:49:57 EST 2003 ppc 0
7400, altivec supported GNU/Linux
external at cube examples $ gcc -v
Reading specs from
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.1/specs
Configured with: /var/tmp/portage/gcc-3.2.1/work/gcc-3.2.1/configure
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --host=powerpc-unknown-linux-gnu
--build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
--with-system-zlib --enable-languages=c,c++,ada,f77,objc,java
--enable- threads=posix --enable-long-long --disable-checking
--enable-cstdio=stdio --enable-clocale=generic --enable- __cxa_atexit
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/include/g++-v32
--with- local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext
Thread model: posix
gcc version 3.2.1
{the run -- No debugging enabled}
external at cube examples $ gdb ./xvid_stat
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "powerpc-unknown-linux-gnu"...
(gdb) set args -i cactus.pgm -d 1
(gdb) run
Starting program: /home/external/xvidcore-0.9.1-rc1/examples/xvid_stat
-i cactus.pgm -d 1
xvid_stat - XviD core library test program written by Christoph
Lampert 2002
Trying to retreive width and height from PGM header
Program received signal SIGSEGV, Segmentation fault.
0x10007210 in idct_int32 ()
(gdb)
I'll look into this more over the weekend.
dust
More information about the XviD-devel
mailing list