android编译ffmpeg遇到的坑

1,参考https://www.jianshu.com/p/ca7ffd2e5e68

Makefile:2: config.mak: No such file or directory
Makefile:59: /common.mak: No such file or directory

先执行./configure才能生成config.mak文件 后面就不会报错了,我刚踩了这个坑

Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/@anchor{ <-- HERE (?:[^}]*)}/ at ./doc/texi2pod.pl line 376.
doc/Makefile:66: recipe for target 'doc/ffmpeg.pod' failed
make: *** [doc/ffmpeg.pod] Error 255

doc/texi2pod.pl line 376格式有问题,手动改一下

/bin/sh: ranlib/usr/local/lib/libavdevice.a: No such file or directory
make: *** [install-libavdevice-static] Error 127

出错后发现这是由于LIB_INSTALL_EXTRA_CMD='$$(RANLIB)"$(LIBDIR)/$(LIBNAME)"'这个命令少打了一个空格的关系= =,应该改为LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"',网络上挺多教程这里都少了空格,希望大家遇到问题的时候注意

5,3.x的ffmpeg没有在当前目录生成so文件
需要./configure 时加参数 --enable-shared

最后会在/usr/local/lib目录下生成so文件

posted @ 2022-04-07 13:35  m00219907  阅读(456)  评论(0编辑  收藏  举报