我想为android应用程序导入gstreamer项目。 (http://docs.gstreamer.com/display/GstSDK/Android+tutorials)。但是,坚持这些问题。致命错误:gst/gst.h:没有这样的文件或目录
错误消息:
fatal error: gst/gst.h: No such file or directory
GStreamer cannot be resolved Tutorial1.java
make.exe: *** [gst-build/gstreamer_android.o] Error 1
The import com.gstreamer cannot be resolved Tutorial1.java
的控制台输出:
23:40:21 **** Incremental Build of configuration Default for project Tutorial1 ****
"C:\\android-ndk-r9d-windows-x86_64\\android-ndk-r9d\\ndk-build.cmd" NDK_DEBUG=1 all
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
Package gstreamer-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-0.10' found
Package gstreamer-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-0.10' found
Package gstreamer-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-0.10' found
[armeabi] Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
GStreamer : [GEN] => gst-build/gstreamer_android.c
GStreamer : [COMPILE] => gst-build/gstreamer_android.c
gst-build/gstreamer_android.c:2:21: fatal error: gst/gst.h: No such file or directory
compilation terminated.
make.exe: *** [gst-build/gstreamer_android.o] Error 1
我使用NDK-9d和蚀的窗口上8.1 luna的。
我安装上的建议(http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development)
我试着指着PKG_CONFIG_PATH到的GStreamer-0.10库所在的文件夹所需要的软件。但没有解决。
我试图在android studio 1.0.2上导入相同的项目。我也有同样的错误。
我不知道如何解决问题。我试过ndk-10d(最新版本),但不起作用。
这是我的Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := tutorial-1
LOCAL_SRC_FILES := tutorial-1.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
ifndef GSTREAMER_SDK_ROOT
ifndef GSTREAMER_SDK_ROOT_ANDROID
$(error GSTREAMER_SDK_ROOT_ANDROID is not defined!)
endif
GSTREAMER_SDK_ROOT := $(GSTREAMER_SDK_ROOT_ANDROID)
endif
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_SDK_ROOT)/share/gst-android/ndk-build/
GSTREAMER_PLUGINS := coreelements
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk
我还没有安装cygwin或mingw并使用它们。 – dongseop 2015-02-08 02:16:26
显示你的'Android.mk'文件。 – jww 2015-02-08 12:06:12
抱歉,我迟早回复了android.mk代码。 – dongseop 2015-02-13 12:37:49