macOS将FFMpeg编译为静态独立二进制文件

时间:2019-10-27 09:30:18

标签: ffmpeg compilation

我试图将macOS(来自macOS)的ffmpeg编译为静态二进制文件好几天了,没有运气。 这是我正在运行的用于编译FFmpeg二进制文件的脚本

cd /Users/$USER/ffmpeg/macOSBuild
basePath=/macOSdependencies/DependenciesOutput

export LD_LIBRARY_PATH="/Users/romanlevin/ffmpeg/macOSdependencies/DependenciesOutputbasePath/SDL2/lib/“

../configure --disable-autodetect --pkg-config-flags="--static" --extra-cflags="-I$basePath/SDL2/include/" --extra-ldflags="-L/Users/romanlevin/ffmpeg/macOSdependencies/DependenciesOutput/SDL2/lib/" --prefix=/usr/local --enable-gpl --enable-version3 --enable-sdl2 --enable-static --disable-shared

make clean
make -j8

但是,它始终将SDL2链接为动态库。

请注意,我已经自己编译了SDL2,并将其放在我要添加到ld的目录中

enter image description here

但是,我还与brew一起安装了SDL2,但我不想使用它。 我希望Ffmpeg选择编译的SDL2。

它确实在寻找我的编译库,但仅在硬编码路径中查找asdylib-这意味着我无法获得可移植的二进制文件:(。

请问我对我做错了什么吗?

0 个答案:

没有答案
相关问题