[FFmpeg-devel] FFmpeg for Mac

Diego Biurrun diego
Wed May 20 19:44:08 CEST 2009

On Wed, May 20, 2009 at 11:27:27AM -0600, Neal Krawetz wrote:
> I managed to port FFMpeg to Macs as a Universal Binary (runs on both ppc
> and x86 architectures).  There were a couple of changes that I needed
> to make in order for this work.

Please don't misspell FFmpeg.

> Anyway, here is my notes of things I needed to change for porting to the Mac:
> * Install ffmpeg.
>   Unforutnately, ffmpeg does not support universal binaries and configure
>   does not set all of the configuration variables correctly.  So we will
>   force it.
>   Edit libavformat/framehook.c and comment out the header check:
>         // #if HAVE_DLFCN_H
>         #include <dlfcn.h>
>         // #endif

Why did you have to comment out all those header checks?

>   Now compile:
>     CFLAGS='-arch ppc -arch i386' ./configure --arch=x86
>     CFLAGS='-arch ppc -arch i386' ./configure --arch=x86
>     # Yes: Run configure twice! There is a permissions problem for config.h.

What sort of permission problem?

> ============================================
> #ifndef BIG_ENDIAN
> #define BIG_ENDIAN      4321
> #endif
> #define LITTLE_ENDIAN   1234
> #endif

What was the number you were trying to encode here? :)


More information about the ffmpeg-devel mailing list