[XviD-devel] XviD on Mactels again

Eric Petit titer at m0k.org
Thu Dec 21 23:44:27 CET 2006


On Dec 17, 2006, at 1:09 AM, Robert Swain wrote:
> At the end of the make process, two ranlib operations fail:
> ranlib: file: libxvidcore.a(timer.o) has no symbols
> ranlib: file: libxvidcore.a(timer.o) has no symbols

  Those are harmless warnings, don't worry about them.

> Then edit build/generic/platform.inc around line 41 to read:
> AS=nasm
> AFLAGS=-I$(<D)/ -f macho
> ASSEMBLY_EXTENSION=asm
> When trying to build XviD into MPlayer, even though the linking  
> flags are
> correct (-L/usr/local/lib -lxvidcore) error output in the configure  
> log
> regarding missing symbols occurs.

  You're missing -DPREFIX in the AFLAGS (symbols in OS X must the  
prefixed with '_', same as for win32). I'm attaching a patch for  
configure.in, maybe someone should check that in.
  The static library works fine, the shared library won't build though:
'ld: bitstream/x86_asm/cbp_mmx.o has local relocation entries in non- 
writable section (__TEXT,__text)'
This usually means that something isn't PIC-safe enough for OS X, but  
I haven't looked into it.

-- 
Eric




More information about the XviD-devel mailing list