homebrew - MacOSX 安装 MP4Box 时,brew 失败

标签 homebrew

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

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)

我有什么问题吗?

最佳答案

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

这对我有用。

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

关于homebrew - MacOSX 安装 MP4Box 时,brew 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27757635/

相关文章:

mysql - Mac Big Sur MariaDB 无法运行

mysql - 如何从 brew info mysql 中删除 mysql 实例

homebrew - 无法在 mac os yosemite 中通过 brew 链接 PCRE

mysql - 运行 Brew Update 后,mysql 已更新,所有带有 mysql2 的 Rails 应用程序都无法工作

java - 如何在 Homebrew 公式中下载 Buck 远程文件?

python - 为本地库创建本地环境的框架

python - 使用 Homebrew 升级 python 后出现 "Library not loaded"错误

Homebrew 程序:安装 php mcrypt

ruby-on-rails - 无法连接到副本集的主节点 <Moped::Cluster nodes=[<Moped::Node resolved_address ="127.0.0.1:27017">]>

macos - 在 Homebrew 上分发 Haskell 程序