我已经看过一些关于如何编译和使用FFmpeg for Android的文章.
不幸的是,没有他们,或我发现的其他人帮助我.在这两个示例中,创建了build_android.sh并配置FFmpeg的配置文件并调用make.每当我运行脚本时,我都会收到以下错误:
c:\android\development\android-ndk-r9\sources\ffmpeg>sh build_android.sh
c:/android/development/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebu
ilt/windows-x86_64/arm-linux-androideabi/bin/bin/arm-linux-androideabi-gcc is un
able to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
Makefile:2: config.mak: No such file …Run Code Online (Sandbox Code Playgroud) 我试图从cygwin中倾斜Bash脚本.当我在命令提示符下手动键入以下行时,一切正常,我看到屏幕上打印的数字从1到10.
for i in {1..10}; do
echo $i;
done
Run Code Online (Sandbox Code Playgroud)
但是,如果我将脚本保存到文件(test.sh)并运行"./test.sh",我会看到以下错误
./test.sh: line 1: syntax error near unexpected token `$'do\r''
'/test.sh: line 1: `for i in {1..10}; do
Run Code Online (Sandbox Code Playgroud)
这对我来说似乎很奇怪.我想知道如何在命令行中运行相同的脚本,但不是从文件中运行.
谢谢,德里克