libav (libavcodec) requires old version of libx264
Closed this issue · 2 comments
yacc commented
after brew install libav
and compiling code that links with the libav
library, I'm getting this error when running my executable:
[yacin@mac h264 (master)]$ ./decoder
dyld: Library not loaded: /usr/local/lib/libx264.142.dylib
Referenced from: /usr/local/lib/libavcodec.56.dylib
Reason: image not found
my system has a more recent version of libx264
from installing ffmpeg
[yacin@mac h264 (master)]$ ls -a /usr/local/lib/libx264.*
/usr/local/lib/libx264.144.dylib /usr/local/lib/libx264.a /usr/local/lib/libx264.dylib
[yacin@mac h264 (master)]$ brew uses --installed x264
ffmpeg libav
jacknagel commented
Homebrew only packages these libraries with ffmpeg, not libav.
You may need to brew upgrade ffmpeg
or brew reinstall ffmpeg
; the current bottle is linked correctly:
$ otool -L /usr/local/lib/libavcodec.56.dylib
/usr/local/lib/libavcodec.56.dylib:
/usr/local/lib/libavcodec.56.dylib (compatibility version 56.0.0, current version 56.26.100)
/usr/local/Cellar/ffmpeg/2.6.2/lib/libswresample.1.dylib (compatibility version 1.0.0, current version 1.1.100)
/usr/local/Cellar/ffmpeg/2.6.2/lib/libavutil.54.dylib (compatibility version 54.0.0, current version 54.20.100)
/System/Library/Frameworks/QTKit.framework/Versions/A/QTKit (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1153.20.0)
/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.10.0)
/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.8.0)
/System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation (compatibility version 1.0.0, current version 2.0.0)
/System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1153.18.0)
/System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/VideoDecodeAcceleration (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/local/lib/libx264.144.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libvo-aacenc.0.dylib (compatibility version 1.0.0, current version 1.4.0)
/usr/local/lib/libmp3lame.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (compatibility version 64.0.0, current version 600.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
/usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
yacc commented
@jacknagel thanks, that fixed the problem. appreciate the prompt answer !