如何用Android-NDK解决ffmpeg的这种情况

如何用Android-NDK解决ffmpeg的这种情况,android-ndk,ffmpeg,cygwin,Android Ndk,Ffmpeg,Cygwin,我使用Android NDK编译ffmpeg,当我运行config.sh时,发生了很多错误,如何解决它 Terry-L@Terry-L-HP /cygdrive/e/Android/android-ndk-r8d/samples/FFmpeg/jni/ffmpeg $ ./config.sh Unknown option "". See ./configure --help for available options. ./config.sh: line 6: --target-os=linu

我使用Android NDK编译ffmpeg,当我运行config.sh时,发生了很多错误,如何解决它

Terry-L@Terry-L-HP /cygdrive/e/Android/android-ndk-r8d/samples/FFmpeg/jni/ffmpeg
$ ./config.sh

Unknown option "".
See ./configure --help for available options.
./config.sh: line 6: --target-os=linux: command not found
./config.sh: line 7: --arch=arm: command not found
./config.sh: line 8: --enable-version3: command not found
./config.sh: line 9: --enable-gpl: command not found
./config.sh: line 10: --enable-nonfree: command not found
./config.sh: line 11: --disable-stripping: command not found
./config.sh: line 12: --disable-ffmpeg: command not found
./config.sh: line 13: --disable-ffplay: command not found
./config.sh: line 14: --disable-ffserver: command not found
./config.sh: line 15: --disable-ffprobe: command not found
./config.sh: line 16: --disable-encoders: command not found
./config.sh: line 17: --disable-muxers: command not found
./config.sh: line 18: --disable-devices: command not found
./config.sh: line 19: --disable-protocols: command not found
./config.sh: line 20: --enable-protocol=file: command not found
./config.sh: line 21: --enable-avfilter: command not found
./config.sh: line 22: --disable-network: command not found
./config.sh: line 23: --disable-mpegaudio-hp: command not found
./config.sh: line 24: --disable-avdevice: command not found
./config.sh: line 25: --enable-cross-compile: command not found
./config.sh: line 26: --cc=/cygdrive/e/Android/android-ndk-r8d/toolchains/arm-li                                                                                                                nux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-gcc: No such file                                                                                                                 or directory
./config.sh: line 27: --cross-prefix=/cygdrive/e/Android/android-ndk-r8d/toolcha                                                                                                                ins/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-: No su                                                                                                                ch file or directory
./config.sh: line 28: --nm=/cygdrive/e/Android/android-ndk-r8d/toolchains/arm-li                                                                                                                nux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-nm: No such file                                                                                                                 or directory
./config.sh: line 29: --extra-cflags=-fPIC -DANDROID: command not found
./config.sh: line 30: --disable-asm: command not found
./config.sh: line 31: --enable-neon: command not found
./config.sh: line 32: --enable-armv5te: command not found
./config.sh: line 33: --extra-ldflags=-Wl,-T,/cygdrive/e/Android/android-ndk-r8d                                                                                                            

/toolchains/arm-linux-androideabi-4.6/prebuild/windows/arm-linux-androideabi/lib/ldscripts/armelf_linux_eabi.x-Wl,-rpath link=/cygdrive/e/Android/Android-ndk-r8d/platforms/Android-14/arch-arm/usr/lib-L/cygdrive/e/Android/Android-ndk-r8d/platforms/android-14/arch-arm/usr/lib-nostlib/cygdrive/e/android/android-ndk-r 8d/toolschains/arm-linux-androideabi-4.6/prebuild/windows/lib/gcc/arm-linux-androideabi/4.6/crtbegin.o/cygdrive/e/Android/Android-ndk-r8d/toolschains/arm-linux-a ndroideabi-4.6/prebuild/windows/lib/gcc/arm-linux-androideabi/4.6/crtend.o-lc-lm-ldl:没有这样的文件或目录

您正在使用cywin构建ffmpeg,因此您将遇到许多问题。我建议您应该在linux上构建它


上述错误可能缺少配置环境。您需要将$NDK添加到$PATH。

您正在使用cywin构建ffmpeg,因此会遇到许多问题。我建议您应该在linux上构建它

上述错误可能缺少配置环境。您需要将$NDK添加到$PATH