Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile-ffmpeg.sh 这个文件报 unknown architecture armv5 #49

Closed
h2oiswater opened this issue Jul 17, 2014 · 4 comments
Closed

compile-ffmpeg.sh 这个文件报 unknown architecture armv5 #49

h2oiswater opened this issue Jul 17, 2014 · 4 comments

Comments

@h2oiswater
Copy link

您好:
希望有人能帮到我。

我按照Build Android去做

./init-android.sh

cd android
./compile-ffmpeg.sh
执行到这里提醒要输入参数

于是我就执行 ./compile-ffmpeg.sh all

输出这个:
(我的环境是uBuntu 14.04 ndkR9c sdk18)

====================

[*] check archs

FF_ALL_ARCHS = armv5 armv7a x86

[*] check env armv5

NDKr9c detected
tools/do-compile-ffmpeg.sh: 67: [: armv5: unexpected operator
tools/do-compile-ffmpeg.sh: 84: [: armv5: unexpected operator
tools/do-compile-ffmpeg.sh: 99: [: armv5: unexpected operator
unknown architecture armv5

@h2oiswater
Copy link
Author

My Android version is 18

FF_BUILD_ROOT=pwd
FF_ANDROID_PLATFORM=android- 9
FF_GCC_VER=4.8

Should I Download android-9?

@h2oiswater
Copy link
Author

I correct this line
elif [ "$FF_ARCH" == "armv5" ]; then
to
elif [ "$FF_ARCH"x = "armv5"x ]; then

then fix it,but I have new problem!

tools/do-compile-ffmpeg.sh: 189: tools/do-compile-ffmpeg.sh: source: not found

!!!pls help me!!!

@jgfntu
Copy link

jgfntu commented Jul 17, 2014

这是ubuntu shell解析器的原因,ubuntu14.04默认是dash,你可以改成bash就可以了。

#sudo dpkg-reconfigure dash
出现菜单问你是否要dash的时候,选no就可以了。
再次检查一下, ls /bin/sh -al 发现软链接指向/bin/bash就可以了。

@h2oiswater
Copy link
Author

非常感谢! 我已经解决了~ 我把它报错的地方都改写了一边。。。 不过 jgfntu 这位的方法才是最好的!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants