相关疑难解决方法(0)

FFMPEG for Android工具链:arm-linux-armeabi-eabi-pkg-config - 是否存在任何包含pkg-config工具的工具链

有没有人知道包含arm-linux-androideabi-pkg-config工具的ffmpeg linux arm平台的任何工具链?Android NDK不包含它.还有没有人成功为包含alsa设备的android构建ffmpeg?请注意,我的Ubuntu x86 PC上有libasound.经过非常广泛的研究访问论坛,包括ffmpeg.org,ffmpeg - nabbles,groups.google.com,包括andro和android-ndk gropus,以及一般的互联网,我没有成功找到任何似乎知道它存在的人.充其量,我读过有人说忽略它.考虑到它需要什么,我认为这是一个天真的事情.仔细检查标准ffmpeg配置脚本会显示,对于某些输入和输出设备,需要一个描述为pkg_config_default = pkg-config的工具链.此外,HAVE_LIST上的所有项目都是系统相关的.configure脚本非常清楚地说明了每个indev或outdev项所需的依赖项.显然这个工具用于验证依赖项所需的库这是 当你尝试配置ffmpeg for android时会发生什么









jasongipsyblues @ Android的主:〜/ Android的ffmpeg的/项目/ JNI $ ./configure_ffmpeg.sh
...
...
..
....
许可证:GPL版本3或更高版本创建config.mak和config.h中.. .

config.h没有变化

config.asm不变

libavutil/avconfig.h保持不变

警告:/ 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检测可能会失败.

在使用Ubuntu的PC上,pkg-config没有问题.

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

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
= '是'
alsa_outdev_deps ='alsa_asoundlib_h'invvs_if_any
='alsa_indev
outdevs_if_any ='alsa_outdev
check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound
check_func_headers alsa/asoundlib.h …

android ffmpeg compilation static-libraries linux-toolchain

13
推荐指数
1
解决办法
8723
查看次数

arm-linux-androideabi-gcc无法创建可执行文件 - 为android armeabi设备编译ffmpeg

我正在尝试为android armeabi设备编译ffmpeg.
我正在按照roman10.net的 教程进行操作.
他给出的构建脚本为armv7-a设备构建了ffmpeg.我想为armeabi建造它.

我的最终目标是在android armeabi和armv7-a设备上运行ffmpeg命令.

所以我改变了脚本的CPU部分

#arm v7vfpv3
CPU=armv7-a
OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
PREFIX=./android/$CPU
ADDITIONAL_CONFIGURE_FLAG=
build_one 
Run Code Online (Sandbox Code Playgroud)

#arm v6
CPU=armv6
OPTIMIZE_CFLAGS="-marm -march=$CPU"
PREFIX=./android/$CPU 
ADDITIONAL_CONFIGURE_FLAG=
build_one
Run Code Online (Sandbox Code Playgroud)

(我认为将它更改为armv6将构建与armeabi设备兼容的ffmpeg.我错了吗?)

疑问1:
我是否还需要更换工具链?
即从arm-linux-androideabi-4.4.3arm-eabi-4.4.0 ?????

疑惑2:

当我尝试运行./build.sh(不更改工具链)时,它会给我以下错误:

/home/chaitanya/android/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake,.. blaah blahh blaah
Run Code Online (Sandbox Code Playgroud)

之后我收到很多警告:
'sub_id'已被弃用,许多其他功能已弃用警告.

平台:ubuntu 11.10
ffmpeg版本:0.11.2
NDK:android-ndk-r5b

这是我的构建脚本:

#!/bin/bash
######################################################
# Usage:
# put this script …
Run Code Online (Sandbox Code Playgroud)

android gcc arm ffmpeg ubuntu-11.10

13
推荐指数
2
解决办法
3万
查看次数