尝试做GStreamer SDK for Android的 Tutorial5 。
当我进入 Cygwin 1.7 终端上的项目目录并执行
ndk-build
我明白了
make: -n: Command not found
GStreamer : [GEN] => gst-build/gstreamer_android.c
/bin/sh: i: command not found
/cygdrive/c/gstreamer-sdk-android-arm-debug-2012.10/share/gst-android/ndk-build/gstreamer.mk:151: recipe for target `genstatic' failed
make: [genstatic] Error 127 (ignored)
/bin/sh: i: command not found
/cygdrive/c/gstreamer-sdk-android-arm-debug-2012.10/share/gst-android/ndk-build/gstreamer.mk:151: recipe for target `genstatic' failed
make: [genstatic] Error 127 (ignored)
/bin/sh: i: command not found
/cygdrive/c/gstreamer-sdk-android-arm-debug-2012.10/share/gst-android/ndk-build/gstreamer.mk:151: recipe for target `genstatic' failed
make: [genstatic] Error 127 (ignored)
/bin/sh: i: command not found
/cygdrive/c/gstreamer-sdk-android-arm-debug-2012.10/share/gst-android/ndk-build/gstreamer.mk:151: recipe for target `genstatic' failed
make: [genstatic] Error 127 (ignored)
GStreamer : [COMPILE] => gst-build/gstreamer_android.c
gst-build/gstreamer_android.c:1:17: fatal error: jni.h: No such file or directory
compilation terminated.
/cygdrive/c/gstreamer-sdk-android-arm-debug-2012.10/share/gst-android/ndk-build/gstreamer.mk:161: recipe for target `gst-build/gstreamer_android.o' failed
make: *** [gst-build/gstreamer_android.o] Error 1
有人知道出了什么问题吗?我检查了,我做了(版本 3.82.90)
gstreamer.mk:151
是第二行
# Generates a source file that declares and registers all the required plugins
genstatic:
@$(HOST_ECHO) "GStreamer : [GEN] => $(GSTREAMER_ANDROID_C)"
@$(call host-mkdir,$(GSTREAMER_BUILD_DIR))
@$(call host-cp,$(GSTREAMER_ANDROID_C_IN),$(GSTREAMER_ANDROID_C))
@$(HOST_SED) -i "s/@PLUGINS_DECLARATION@/$(GSTREAMER_PLUGINS_DECLARE)/g" $(GSTREAMER_ANDROID_C)
@$(HOST_SED) -i "s/@PLUGINS_REGISTRATION@/$(GSTREAMER_PLUGINS_REGISTER)/g" $(GSTREAMER_ANDROID_C)
@$(HOST_SED) -i "s/@G_IO_MODULES_LOAD@/$(G_IO_MODULES_LOAD)/g" $(GSTREAMER_ANDROID_C)
@$(HOST_SED) -i "s/@G_IO_MODULES_DECLARE@/$(G_IO_MODULES_DECLARE)/g" $(GSTREAMER_ANDROID_C)
问候。