gpt4 book ai didi

android - ffmpeg 为 Android 编译

转载 作者:行者123 更新时间:2023-12-02 11:01:44 28 4
gpt4 key购买 nike

我正在尝试使用 this 为 android 编译 ffmmpeg但我收到“错误:未找到 freetype2”,详细信息如下所示。

linux@user1:~/Downloads/android-ffmpeg$ ./configure_ffmpeg.sh
~/Downloads/android-ffmpeg ~/Downloads/android-ffmpeg
No NDK_BASE set, using /opt/android-ndk
patching file ffmpeg/libavfilter/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
The next patch would create the file ffmpeg/libavfilter/af_aredact.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file ffmpeg/libavfilter/allfilters.c
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
The next patch would create the file ffmpeg/libavfilter/vf_redact.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file ffmpeg/libavutil/arm/intmath.h
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
patching file libavcodec/arm/ac3dsp_armv6.S
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
patching file libavcodec/arm/fft_fixed_neon.S
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
patching file libavcodec/arm/fft_neon.S
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
patching file libavcodec/arm/sbrdsp_neon.S
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
patching file libavcodec/arm/vp3dsp_neon.S
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
patching file libavcodec/arm/vp8_armv6.S
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
patching file libavcodec/arm/asm.S
Reversed (or previously applied) patch detected! 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
~/Downloads/android-ffmpeg/ffmpeg ~/Downloads/android-ffmpeg ~/Downloads/android-ffmpeg
*****************The error is here*****************

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.

我已经安装了 freetype,我还在/usr/include/中链接了它,如下所示
rwxr-xr-x  3 root root   4096 Mar 20 22:13 freetype2
lrwxrwxrwx 1 root root 23 Mar 20 22:14 freetype -> /usr/include/freetype2/

我不知道下一步该怎么做,你能帮忙吗?

最佳答案

您需要一个为 ARM 构建的 freetype2 版本,并且可能安装在/usr/include 下的 freetype2 是为您的 PC 架构构建的。看起来该项目包含一个用于为 ARM 构建 freetype2 的配置脚本。如果您使用该脚本构建 freetype2 并链接到该版本,这应该可以工作。

关于android - ffmpeg 为 Android 编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36137590/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com