相关疑难解决方法(0)

编译FFmpeg lib并将其添加到Windows8上的NDK源

我已经看过一些关于如何编译和使用FFmpeg for Android的文章.

这是一个很好的例子 - example1example2

不幸的是,没有他们,或我发现的其他人帮助我.在这两个示例中,创建了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)

ffmpeg android-ndk

7
推荐指数
1
解决办法
9844
查看次数

从文件运行时,命令行中相同的bash脚本不起作用

我试图从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)

这对我来说似乎很奇怪.我想知道如何在命令行中运行相同的脚本,但不是从文件中运行.

谢谢,德里克

bash cygwin

1
推荐指数
1
解决办法
3337
查看次数

标签 统计

android-ndk ×1

bash ×1

cygwin ×1

ffmpeg ×1