前言,为了windows平台下ffmpeg正常编译支持frei0r滤镜,可采用如下步骤确保支持dlopen等相关接口。
第一步 下载库
地址 https://github.com/dlfcn-win32/dlfcn-win32
第二步 编译
下载文件为 dlfcn-win32-1.3.0.tar.gz
上传到指定系统的指定路径,执行解压命令
tar -zxvf dlfcn-win32-1.3.0.tar.gz
编译前,先扩展环境变量
export PATH="/home/hybase/mingw-w64/tools/x86_64-w64-mingw32/bin:$PATH"
./configure --cross-prefix=/home/hybase/mingw-w64/tools/x86_64-w64-mingw32
testing compiler: /home/hybase/mingw-w64/tools/x86_64-w64-mingw32gcc -shared -o tmptest.dll tmptest.c
./configure: 149: ./configure: /home/hybase/mingw-w64/tools/x86_64-w64-mingw32gcc: not found
/home/hybase/mingw-w64/tools/x86_64-w64-mingw32gcc could not create shared file with Windows API functions.
Make sure your MinGW system is working properly.
root@ubuntu:~/dlfcn-win32-1.3.0# ./configure --cross-prefix=/home/

该博客详细介绍了如何在Ubuntu环境下,使用mingw-w64进行交叉编译,使FFmpeg支持Windows平台的Frei0r滤镜。首先从GitHub下载并编译dlfcn-win32库,然后设置环境变量并配置编译选项,成功编译后将头文件和库文件复制到指定位置,最后验证ffmpeg编译结果。整个过程旨在确保FFmpeg在Windows上能使用dlopen等接口。
最低0.47元/天 解锁文章

650

被折叠的 条评论
为什么被折叠?



