我正在做https://github.com/guardianproject/android-ffmpeg项目。在这个项目中,它使用ffmpeg版本0.11.1。如何使用最新的ffmpeg版本构建此项目?
我尝试删除此项目中的ffmpeg文件夹。在url: git://git.videolan.org/ffmpeg.git上查看最新的ffmpeg版本。之后,我像往常一样运行命令./configure_make_everything.sh,但得到错误:
File to patch:
Skip this patch? [y]
Skipping patch.
3 out of 3 hunks ignored
patching file libavutil/arm/intmath.h
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored
patching file configure
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
~/workspace/android-ffmpeg/ffmpeg ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
**ERROR: freetype2 not found**
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
~/workspace/android-ffmpeg
~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
~/workspace/android-ffmpeg/ffmpeg ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
Makefile:2: config.mak: No such file or directory
Makefile:53: /common.mak: No such file or directory
Makefile:93: /libavutil/Makefile: No such file or directory
Makefile:93: /library.mak: No such file or directory
Makefile:95: /doc/Makefile: No such file or directory
Makefile:178: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
Makefile:2: config.mak: No such file or directory
Makefile:53: /common.mak: No such file or directory
Makefile:93: /libavutil/Makefile: No such file or directory
Makefile:93: /library.mak: No such file or directory
Makefile:95: /doc/Makefile: No such file or directory
Makefile:178: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
~/workspace/android-ffmpeg
admin@ubuntu:~/workspace/android-ffmpeg$我得到了错误: Freetype2没有找到,但是如果我在这个项目中使用原始的ffmpeg构建,这个错误就不会发生。
我怎么才能修复它?请帮帮忙
发布于 2014-06-09 06:19:57
我在为桌面构建ffmpeg时也遇到了同样的问题。在我的例子中,ffmpeg在/usr/ freetype2 /freetype而不是/usr/include/freetype2中查找包含头文件。
这个解决方案很难看,但我创建了一个符号链接
sudo ln -s /usr/include/freetype2/ /usr/include/freetype
然后./configure成功。
通过修补ffmpeg来替换所有
#include <freetype/config/ftheader.h>
使用
#include <freetype2/config/ftheader.h>
这看起来像是在libavfilter/vf_drawtext.c中才有的
由于您似乎是针对不同的CPU构建的,因此您可能需要为您的体系结构的freetype2修改适当的路径。
发布于 2015-02-09 07:30:05
这几乎是一年前的事了,所以我想你不是在等待答案,但我已经有答案了。我派生了guardian项目并更新子模块条目。
https://github.com/touchlab/android-ffmpeg
您需要根据顶部的注释手动编辑ffmpeg/configure。忽略关于ffmpeg/libavutil/arm/intmath.h的部分。
这是我用ndk r10c构建的。
https://stackoverflow.com/questions/22496072
复制相似问题