ffmpeg won't compile and install #15314

Closed
will-in-wi opened this Issue Oct 5, 2012 · 8 comments

7 participants

@will-in-wi

The ffmpeg install fails.

# ./configure --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
ALL_COMPONENTS='
    aac_adtstoasc_bsf
chomp_bsf
dump_extradata_bsf
h264_mp4toannexb_bsf
imx_dump_header_bsf
mjpeg2jpeg_bsf
mjpega_dump_header_bsf
mp3_header_compress_bsf
mp3_header_decompress_bsf
mov2textsub_bsf
noise_bsf
remove_extradata_bsf
text2movsub_bsf
    aasc_decoder
amv_decoder
anm_decoder
ansi_decoder
asv1_decoder
asv2_decoder
...skipping...
==> Downloading http://ffmpeg.org/releases/ffmpeg-1.0.tar.bz2
CC      libavdevice/alldevices.o
CC      libavdevice/avdevice.o
CC      libavdevice/lavfi.o
CC      libavfilter/af_aconvert.o
CC      libavfilter/af_aformat.o
CC      libavfilter/af_amerge.o
CC      libavfilter/af_amix.o
CC      libavfilter/af_anull.o
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
...skipping...
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-g
==> make install
make: *** Waiting for unfinished jobs....
2 errors generated.
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
make: *** [libavcodec/vda_h264_dec.o] Error 1

Error: ffmpeg did not build
Logs: /Users/william/Library/Logs/Homebrew/ffmpeg/

The end of the 02.make log describes some errors.

CC  libavcodec/vda_h264.o
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
CC  libavcodec/vda_h264_dec.o
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
CC  libavcodec/vima.o
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
In file included from libavcodec/vda_h264.c:27:
In file included from libavcodec/vda.h:45:
In file included from /System/Library/Frameworks/VideoDecodeAcceleration.framework/Headers/VDADecoder.h:12:
In file included from /System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:25:
In file included from /System/Library/Frameworks/CoreVideo.framework/Headers/CVDisplayLink.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:24:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:18:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:785:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
        uuid_string_t   ext_jnl_uuid;
        ^
/usr/include/device/device_types.h:87:16: note: 'io_string_t' declared here
typedef char                    io_string_t[512];       
                                ^
In file included from libavcodec/vda_h264.c:27:
In file included from libavcodec/vda.h:45:
In file included from /System/Library/Frameworks/VideoDecodeAcceleration.framework/Headers/VDADecoder.h:12:
In file included from /System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:25:
In file included from /System/Library/Frameworks/CoreVideo.framework/Headers/CVDisplayLink.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:24:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:18:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:787:20: error: use of undeclared identifier 'uuid_string_t'; did you mean 'io_string_t'?
        char            reserved[JIB_RESERVED_SIZE];
                                 ^
/usr/include/hfs/hfs_format.h:778:61: note: expanded from macro 'JIB_RESERVED_SIZE'
#define JIB_RESERVED_SIZE  ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
                                                            ^
CC  libavcodec/vmdav.o
In file included from libavcodec/vda_h264_dec.c:30:
In file included from libavcodec/vda.h:45:
In file included from /System/Library/Frameworks/VideoDecodeAcceleration.framework/Headers/VDADecoder.h:12:
In file included from /System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:25:
In file included from /System/Library/Frameworks/CoreVideo.framework/Headers/CVDisplayLink.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:24:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:18:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:785:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
        uuid_string_t   ext_jnl_uuid;
        ^
/usr/include/device/device_types.h:87:16: note: 'io_string_t' declared here
typedef char                    io_string_t[512];       
                                ^
In file included from libavcodec/vda_h264_dec.c:30:
In file included from libavcodec/vda.h:45:
In file included from /System/Library/Frameworks/VideoDecodeAcceleration.framework/Headers/VDADecoder.h:12:
In file included from /System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:25:
In file included from /System/Library/Frameworks/CoreVideo.framework/Headers/CVDisplayLink.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:24:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:18:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:787:20: error: use of undeclared identifier 'uuid_string_t'; did you mean 'io_string_t'?
        char            reserved[JIB_RESERVED_SIZE];
                                 ^
/usr/include/hfs/hfs_format.h:778:61: note: expanded from macro 'JIB_RESERVED_SIZE'
#define JIB_RESERVED_SIZE  ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
                                                            ^
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
CC  libavcodec/vmnc.o
CC  libavcodec/vorbis.o
2 errors generated.
make: *** [libavcodec/vda_h264.o] Error 1
make: *** Waiting for unfinished jobs....
2 errors generated.
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
brew: superenv removed: -I./ -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
make: *** [libavcodec/vda_h264_dec.o] Error 1

HOMEBREW_VERSION: 0.9.3
HEAD: f899878220668c7c7f0fcf43c6d294a52b7e79ed
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.1
CLT: 4.5.0.0.1.1249367152
X11: 2.7.3 => /opt/X11

I hope that this is the needed information. I'm new to homebrew and love the tool. Please ask if there is anything I should try or other logs I should post.

Thanks!

@MikeMcQuaid
Homebrew member

brew doctor output and follow this please: https://github.com/mxcl/homebrew/wiki/troubleshooting

@will-in-wi

Thanks! I apologize for not doing that first. I have fixed all of the errors with the exception of some library ones:

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libcdt.5.dylib    /usr/local/lib/libcgraph.6.dylib    /usr/local/lib/libgraph.5.dylib    /usr/local/lib/libgvc.6.dylib    /usr/local/lib/libgvpr.2.dylib    /usr/local/lib/libmacfuse_i32.2.dylib    /usr/local/lib/libmacfuse_i64.2.dylib    /usr/local/lib/libosxfuse_i32.2.dylib    /usr/local/lib/libosxfuse_i64.2.dylib    /usr/local/lib/libpathplan.4.dylib    /usr/local/lib/libxdot.4.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libosxfuse_i32.la    /usr/local/lib/libosxfuse_i64.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib/pkgconfig/blkid.pc    /usr/local/lib/pkgconfig/com_err.pc    /usr/local/lib/pkgconfig/e2p.pc    /usr/local/lib/pkgconfig/ext2fs.pc    /usr/local/lib/pkgconfig/libcdt.pc    /usr/local/lib/pkgconfig/libcgraph.pc    /usr/local/lib/pkgconfig/libgraph.pc    /usr/local/lib/pkgconfig/libgvc.pc    /usr/local/lib/pkgconfig/libgvpr.pc    /usr/local/lib/pkgconfig/libpathplan.pc    /usr/local/lib/pkgconfig/libxdot.pc    /usr/local/lib/pkgconfig/osxfuse.pc    /usr/local/lib/pkgconfig/quota.pc    /usr/local/lib/pkgconfig/ss.pc    /usr/local/lib/pkgconfig/uuid.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
    /usr/local/lib/libblkid.a    /usr/local/lib/libcom_err.a    /usr/local/lib/libe2p.a    /usr/local/lib/libext2fs.a    /usr/local/lib/libquota.a    /usr/local/lib/libss.a    /usr/local/lib/libuuid.a

Should I just delete these?

@will-in-wi

I deleted the unexpected files and brew doctor gives me no errors now. However, ffmpeg continues to fail to install. The 02.make errors are the same.

https://gist.github.com/3841181

@mistydemeo

Could you try reinstalling your CLT package? It looks like the errors are coming from files included in the system headers, which suggests to me that you have a broken and/or mismatched CLT installation.

@will-in-wi

I tried uninstalling and reinstalling the CLT. Same error. Could the issue be with the fact that I am running Mountain Lion?

@dlouzan

Could it be that pkg-config is not listed as a requirement of ffmpeg? I had similar problems solved by installing pkg-config before installing ffmpeg, with the following command:

$ brew install pkg-config

Regards.

@2bits

@jacknagel The recent changes to the troubleshooting wiki eliminated it asking for gists of

  • Entire output of brew install -v
  • config.log or CMakeCache.txt
  • brew --config
  • brew doctor

Now all it asks for is Paste the output from brew in a wall of text in between bacticks and a gist of 02.make ? iWow

@jacknagel

By "output from brew" it means the simplified error output which is usually ~5 lines.

@adamv adamv added a commit that closed this issue Oct 23, 2012
@adamv adamv ffmpeg: depends on pkg-config
Closes #15314.
e8cffc6
@adamv adamv closed this in e8cffc6 Oct 23, 2012
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
@adamv adamv ffmpeg: depends on pkg-config
Closes #15314.
08a5293
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.