首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MacOSX使用brew安装MP4Box失败

MacOSX使用brew安装MP4Box失败
EN

Stack Overflow用户
提问于 2015-01-04 01:37:21
回答 1查看 3K关注 0票数 7

当尝试以下命令在MacOSX上安装MP4Box时,失败,如下所示:

代码语言:javascript
复制
MP4Box$ brew install --fresh mp4box
==> Downloading https://downloads.sourceforge.net/gpac/gpac-0.5.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/gpac-0.5.0.tar.gz
==> Patching
patching file modules/ffmpeg_in/ffmpeg_decode.c
patching file modules/ffmpeg_in/ffmpeg_demux.c
patching file modules/ffmpeg_in/ffmpeg_in.h
==> ./configure --disable-wx --prefix=/usr/local/Cellar/gpac/0.5.0 --mandir=/usr/local/Cellar/gpac/0.5.0/share/man --ext
==> make
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gm_ffmpeg_in.dylib] Error 1
make[1]: *** [plugs] Error 2
make: *** [all] Error 2

READ THIS: http://git.io/brew-troubleshooting

These open issues may also help:
gpac 0.5.0 doesn't build against ffmpeg 2.4.1 (https://github.com/Homebrew/homebrew/issues/32978)

我有什么问题吗?

EN

回答 1

Stack Overflow用户

发布于 2015-08-12 10:15:43

在Gist中尝试以下脚本:https://gist.github.com/orcaman/369e8da048b5d7345f5a

这对我很管用。

代码语言:javascript
复制
curl -#LO http://www.ijg.org/files/jpegsrc.v8c.tar.gz
curl -#LO http://download.sourceforge.net/libpng/libpng-1.6.8.tar.gz
curl -#LO http://downloads.sourceforge.net/project/faac/faad2-src/faad2-2.7/faad2-2.7.tar.gz
curl -#LO ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
curl -#LO http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
curl -#LO https://www.libsdl.org/release/SDL2-2.0.3.tar.gz
svn export --non-interactive --trust-server-cert https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac

for file in `ls *.tar.*`; do
    tar -xzf $file
    rm $file
done

cd jpeg-*/
./configure && make -j 4 && sudo make install; cd ..

cd libpng-*/
./configure && make -j 4 && sudo make install; cd ..

cd faad2-*/
./configure --without-xmms --without-drm --without-mpeg4ip && make && sudo make install; cd ..

cd libmad-*/
sed -i -e 's/-march=i486//g' configure.ac
./configure && make -j 4 && sudo make install; cd ..

cd a52dec-*/
./configure --enable-shared && make -j 4 && sudo make install; cd ..

cd SDL2-*/
./configure --without-x && make -j 4 && sudo make install; cd ..

cd gpac/
./configure && make lib && make apps && sudo make install lib && sudo make install
票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27757635

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档