Mac - FFmpeg - 本地编译错误 - symbol(s) not found for architecture x86_64

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/biezhihua/article/details/84582749

问题

在编译FFmpeg的时候报了如下错误:

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ffmpeg_g] Error 1

解决

在配置项中加上--cc=clang,指定使用的C编译器L

./configure --prefix=/usr/local/ffmpeg/ --enable-shared  --cc=clang --host-cflags= --host-ldflags=

支持H264视频,ACC编码

/configure --enable-libx264 --enable-libfdk-aac --enable-gpl --enable-nonfree --enable-shared  --cc=clang --host-cflags= --host-ldflags=

猜你喜欢

转载自blog.csdn.net/biezhihua/article/details/84582749
今日推荐