gpt4 book ai didi

android - 用于 Android 工具链的 FFMPEG : arm-linux-armeabi-eabi-pkg-config - is there any toolchain in existence containing the pkg-config tool

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:28:41 27 4
gpt4 key购买 nike

有人知道包含 arm-linux-androideabi-pkg-config 工具的 ffmpeg linux arm 平台的任何工具链吗?

Android NDK 不包含它。还有人成功地为包含 alsa 设备的 android 构建 ffmpeg 吗?请注意,libasound 存在于我的 Ubuntu x86 PC 上。

经过非常广泛的研究访问论坛,包括 ffmpeg.org、ffmpeg--nabbles、groups.google.com,包括 andro 和 android-ndk gropus,和整个互联网一样,我还没有成功找到任何似乎知道它存在的人。充其量,我读过人们说忽略它。考虑到它的用途,我认为这样说很天真。

仔细查看标准 ffmpeg 配置脚本表明,对于某些输入和输出设备,工具链描述为 pkg_config_default= pkg-config 是必需的。此外,HAVE_LIST 上的所有项目都是系统相关的。配置脚本非常清楚地说明了每个 indev 或 outdev 项需要哪些依赖项。显然,此工具随后用于验证依赖项所需的库

当您尝试为 android 配置 ffmpeg 时会发生这种情况

jasongipsyblues@android-master:~/android-ffmpeg/Project/jni$ ./configure_ffmpeg.sh
...
...
..
....
License: GPL version 3 or later Creating config.mak and config.h...

config.h is unchanged

config.asm is unchanged

libavutil/avconfig.h is unchanged

WARNING: /home/jasongipsyblues/Desktop/apps/android-ndk-r8b/toolchains/arm-linux-androideabi- 4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-pkg-config not found, library detection may fail.

在装有 Ubuntu 的 PC 上,pkg-config 没有问题。

请比较以下输出,当一个 greps 用于 Ubuntu x86 的 config.log 文件中的输入/输出设备 alsa 时PC 和使用 android-ndk-r8 工具链的 android box

jasongipsyblues@android-master:~/android-ffmpeg/Project/jni/ffmpeg$ cat config.log|grep >alsa
alsa_indev
alsa_outdev
alsa_asoundlib_h
INDEV_LIST='alsa_indev
OUTDEV_LIST='alsa_outdev
alsa_indev='yes'
alsa_indev_deps='alsa_asoundlib_h snd_pcm_htimestamp'
alsa_outdev='yes'
alsa_outdev_deps='alsa_asoundlib_h'
indevs_if_any='alsa_indev
outdevs_if_any='alsa_outdev
check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound
check_func_headers alsa/asoundlib.h snd_pcm_htimestamp -lasound
1 #include
/tmp/ffconf.VCjQQAHQ.c:1:28: error: alsa/asoundlib.h: No such file or directory

这是显示错误来源的编译器输出:

check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound
check_func_headers alsa/asoundlib.h snd_pcm_htimestamp -lasound
check_ld cc -lasound
check_cc
BEGIN /tmp/ffconf.VCjQQAHQ.c
1 #include
2 long check_snd_pcm_htimestamp(void) { return (long) snd_pcm_htimestamp; }
3 int main(void) { return 0; }
END /tmp/ffconf.VCjQQAHQ.c
/home/jasongipsyblues/Desktop/apps/android-ndk-r8b/toolchains/arm-linux-androideabi->4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/jasongipsyblues/Desktop/apps/android-ndk-r8b/platforms/android-14/arch-arm -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I../x264 -mcpu=cortex-a9 -std=c99 -fomit-frame-pointer -fPIC -marm -c -o /tmp/ffconf.I2B2AXfH.o
/tmp/ffconf.VCjQQAHQ.c
/tmp/ffconf.VCjQQAHQ.c:1:28: error: alsa/asoundlib.h: No such file or directory
/tmp/ffconf.VCjQQAHQ.c: In function 'check_snd_pcm_htimestamp':
/tmp/ffconf.VCjQQAHQ.c:2: error: 'snd_pcm_htimestamp' undeclared (first use in this function)
/tmp/ffconf.VCjQQAHQ.c:2: error: (Each undeclared identifier is reported only once
/tmp/ffconf.VCjQQAHQ.c:2: error: for each function it appears in.)

This is for the Ubuntu x86PC ffmpeg
jasongipsyblues@android-master:~/ffmpeg$ cat config.log|grep alsa
alsa_indev
alsa_outdev
alsa_asoundlib_h
INDEV_LIST='alsa_indev
OUTDEV_LIST='alsa_outdev
alsa_indev='yes'
alsa_indev_deps='alsa_asoundlib_h snd_pcm_htimestamp'
alsa_outdev='yes'
alsa_outdev_deps='alsa_asoundlib_h'
indevs_if_any='alsa_indev
outdevs_if_any='alsa_outdev
check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound
check_func_headers alsa/asoundlib.h snd_pcm_htimestamp -lasound
1 #include
There is no error here and alsa is successfully included in the ffmpeg build

最佳答案

https://github.com/guardianproject/android-ffmpeg

https://github.com/guardianproject/android-ffmpeg/commit/f08db49e613a7ea4423effb22973e3f1afefb819

查看链接。他只是做了一个提交,包括'freetype2'子模块,以解决 pkg-config 问题。

关于android - 用于 Android 工具链的 FFMPEG : arm-linux-armeabi-eabi-pkg-config - is there any toolchain in existence containing the pkg-config tool,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12136078/

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