android - FFmpeg 安卓构建

标签 android linux ffmpeg ubuntu-14.04 android-ffmpeg

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

我能够运行 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: No such file or directory

./build_android.sh: line 19: --enable-shared: command not found

./build_android.sh: line 21: --disable-static: command not found

./build_android.sh: line 23: --disable-doc: command not found

./build_android.sh: line 25: --disable-ffmpeg: command not found

./build_android.sh: line 27: --disable-ffplay: command not found

./build_android.sh: line 29: --disable-ffprobe: command not found

./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: command not found

./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-: No such file or directory

./build_android.sh: line 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 not found

./build_android.sh: line 47: --sysroot=/home/Admin/Documents/android-ndk-r9b/platforms/android-9/arch-arm/: No such file or directory

./build_android.sh: line 49: --extra-cflags=-Os -fpic -marm: command not found

./build_android.sh: line 51: --extra-ldflags=: command not found

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

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

谢谢你的时间。

最佳答案

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

为了便于阅读,这个 shell 脚本被分成了很多行,但从逻辑上讲它几乎是一个很长的行

关于android - FFmpeg 安卓构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36664451/

相关文章:

Android - 如果没有空间,请向下移动按钮

linux - 磁盘满后恢复已删除的文件

android - 在 Android 项目上初始化过滤器 'drawtext' 时出现 FFMpeg 错误

FFMPEG RTP MpegTS 复用率

linux - 在不解压缩的情况下获取 rar/zip 文件中的文件名

ffmpeg - 如何使用FFMPEG循环输入视频x次数?

android - 错误 : Could not get unknown property 'iosX64' for KotlinTargetPreset in Android Studio 3. 1.4?

java - 在可绘制对象中使用 ?attr/color 时出现滑动错误

android - flutter 的椭圆形

python - 如何修复 bash 中 UTF-8 字符串的使用?