mxcl/homebrew — Issue #8787: ffmpeg: libavcodec/motionpixels_tablegen.h:33: error: initializer element is not computable at load time
Author: alx
Created: 2011-11-25 17:19:10+00:00
State: open

Hi,

I'm trying to install ffmpeg under osx lion, with xcode up to date (after it was not working under previous xcode) and using --use-gcc flag as told in header.

```
HOSTCC	libavcodec/motionpixels_tablegen.o
In file included from libavcodec/motionpixels_tablegen.c:27:
libavcodec/motionpixels_tablegen.h: In function ‘mp_yuv_to_rgb’:
libavcodec/motionpixels_tablegen.h:33: error: initializer element is not computable at load time
make: *** [libavcodec/motionpixels_tablegen.o] Error 1
make: *** Waiting for unfinished jobs....
```

gist: https://gist.github.com/1394001

brew doctor:

/usr/bin/gcc
Your gcc 4.2.x version is older than the recommended version. It may be advisable
to upgrade to the latest release of Xcode.

```
/usr/bin/gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```