mxcl/homebrew — Issue #8245: FFmpeg install fails on lion 10.7.2 and xcode 4.2
Author: slashams
Created: 2011-10-23 14:34:05+00:00
State: open

I Tried to install ffmpeg many times but it keeps failing on make install , I tried also to install it using --use-gcc or --use-clang --HEAD with no luck

==> Downloading http://ffmpeg.org/releases/ffmpeg-0.8.5.tar.bz2
File already downloaded in /Users/ams/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/0.8.5 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/llvm-gcc -
==> make install
----

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....
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/ffmpeg.rb#L64
==> Environment
/usr/bin/gcc
HOMEBREW_VERSION: 0.8
HEAD: 031f90ba23cffc207d2904bc9b0a38810a68f40c
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: quad-core 64-bit sandybridge
OS X: 10.7.2
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.2
GCC-4.0: N/A
GCC-4.2: build 401 (5664 or newer recommended)
LLVM: build 2336
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=core2 -w -pipe
CXXFLAGS: -O3 -march=core2 -w -pipe
MAKEFLAGS: -j4

Error: Failed executing: make install

Thanks