在macOS系统中编译FFmpeg(静态编译)
步骤:
- git clone https://git.ffmpeg.org/ffmpeg.git
- ./configure --disable-x86asm【静态编译,默认编译成静态库;运行./configure --help输出的内容节选([no]是指默认值):Configuration options: --disable-static do not build static libraries [no]、--enable-shared build shared libraries [no]】
- make
- make install(如果不需要安装,可以不运行这个步骤)