首页 文章

Ffmpeg android build

提问于
浏览
3

我正在尝试使用roman10 tutorial为android构建ffmpeg库

我能够运行build_android.sh脚本..但它没有在我的source / ffmpeg文件夹中创建'android'文件夹!

在我的情况下,我在Ubuntu 14.04中尝试ffmpeg 3.0.1; 64位 .

在命令行中

./build_android.sh:line 17: - prefix = / home / Admin / Documents / android-ndk-r9b / sources / ffmpeg-3.0.1 / android / arm:没有这样的文件或目录./build_android.sh:第19行: - enable-shared:找不到命令./build_android.sh:line 21: - disable-static:command not found ./build_android.sh:line 23: - disable-doc:command not found ./ build_android.sh:第25行: - disable-ffmpeg:找不到命令./build_android.sh:第27行: - disable-ffplay:command not found ./build_android.sh:line 29: - disable-ffprobe:command找不到./build_android.sh:line 31: - disable-ffserver:command not found ./build_android.sh:line 33: - disable-avdevice:command not found ./build_android.sh:line 35: - disable -doc:找不到命令./build_android.sh:line 37: - disable-symver:command not found ./build_android.sh:line 39:--cross-prefix = / home / Admin / Documents / android-ndk- r9b / toolchains / arm-linux-androideabi-4.8 / prebuilt / linux-x86 / bin / arm-linux-androideabi-:没有这样的文件或目录./build_android.sh:li ne 41: - target-os = linux:command not found ./build_android.sh:line 43: - arch = arm:command not found ./build_android.sh:line 45: - enable-cross-compile:command找不到./build_android.sh:第47行: - sysroot = / home / Admin / Documents / android-ndk-r9b / platforms / android-9 / arch-arm /:没有这样的文件或目录./build_android.sh:第49行: - extra-cflags = -Os -fpic -marm:找不到命令./build_android.sh:第51行:--extra-ldflags =:找不到命令

为什么android文件夹没有创建,

请有人可以指导我这样做 .

谢谢你的时间 .

1 回答

  • 1

    您可能有带尾随空格的build_android.sh文件,或者在其许多行的末尾丢失了 \ 字符 .

    这个shell脚本被分成许多行以便于阅读,但从逻辑上讲,这几乎是一个非常长的行

相关问题