[x264-devel] Snow leopard problem

Antoine Gerschenfeld gerschen at gmail.com
Tue Sep 1 14:34:04 CEST 2009


Hi,

On Sep 1, 2009, at 1:55 PM, Erich Marth wrote:

> Hi there,
>
> I was trying to compile x264 in Snow Leopard but this won't work.
> There might be a problem...
>
> if i do start the configure process
> I do get the following output:
>
> No working C compiler found.

It's because Snow Leopard reports itself as "i386-apple-darwin10.0.0",  
but its compiler builds x86_64 executables by default. Since x264  
thinks it's going to be built in 32-bit, it passes "-march=i686" to the
compiler, which protests...

You can build a 64-bit x264 by running " ./configure --host=x86_64- 
darwin ", or build it 32-bit by running
" CFLAGS=-m32 LDFLAGS=-m32 ./configure " for the moment.

In the long term, "./configure" should be patched : the easiest way to  
check what gcc will output by default
is to run "echo | gcc -dM -E -c" and look whether __x86_64__ or  
__i386__ is defined.



More information about the x264-devel mailing list