首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >致命错误: gst/gst.h:没有这样的文件或目录

致命错误: gst/gst.h:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2015-02-07 14:58:19
回答 1查看 4.5K关注 0票数 2

我正在尝试为android应用程序导入gstreamer项目。(http://docs.gstreamer.com/display/GstSDK/Android+tutorials)。但是,被这些问题困住了。

错误消息:

代码语言:javascript
复制
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  

控制台输出:

代码语言:javascript
复制
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

I在windows 8.1.上使用ndk-9d和eclipse露娜。

我根据建议(http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development)安装了所需的软件

我尝试将pkg_config_path指向gstreamer-0.10库所在的文件夹。但解决不了问题。

我试图在android 1.0.2上导入相同的项目。我也犯了同样的错误。

我不知道如何解决这些问题。我试过NDK-10d(最新版本),但不起作用。

这是我的Android.mk

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2015-02-14 06:13:57

我找到了eclipse不能引用gstreamer包的原因。gstreamer文件夹包括非英语语言。Eclipse没有正确地读取路径。

您最好查看源文件"org.eclipse.cdt.core.prefs“中的.setting。然后,看看这条路是否正确。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28383605

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档