我试图使用roman10 tutorial
为Android构建ffmpeg库我可以运行build_android.sh脚本..但它没有在我的source / ffmpeg文件夹中创建'android'文件夹!!
在我的情况下,我在Ubuntu 14.04中尝试ffmpeg 3.0.1; 64位。
在命令行中
./ build_android.sh:第17行:--prefix = / home / Admin / Documents / android-ndk-r9b / sources / ffmpeg-3.0.1 / android / arm:没有这样的文件或目录
./ 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:25行: - disable-ffmpeg:找不到命令
./ build_android.sh:第27行: - disable-ffplay:command not found
./ build_android.sh:第29行: - disable-ffprobe:找不到命令
./ build_android.sh:line 31: - disable-ffserver:command not found
./ build_android.sh:line 33: - disable-avdevice:command not found
./ build_android.sh:35行: - disable-doc:command not found
./ build_android.sh:第37行: - disable-symver:找不到命令
./ build_android.sh: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: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:第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文件夹没有创建,
请有人指导我这样做。谢谢您的时间。
答案 0 :(得分:1)
你可能有带尾随空格的build_android.sh文件,或者在其许多行的末尾丢失了\
个字符。
为了便于阅读,这个shell脚本被分成许多行,但从逻辑上讲,这几乎是一个非常长的行