无法建立的GStreamer为Android Tutoritals [英] Unable to build GStreamer for Android Tutoritals
问题描述
我遇到了一些试图打造的Android的GStreamer教程的问题。
I'm running into a number of issues attempting to build the GStreamer Android tutorials.
我的环境是:
- Mac OS X的7
- Android的SDK版本17
- 的Android NDK 8D
我能够构建和运行无论在Eclipse和命令行的NDK样本。
I am able to build and run the NDK samples both in Eclipse and from the command line.
我已经下载<一个href=\"http://cdn.gstreamer.com/android/arm/gstreamer-sdk-android-arm-debug-2012.11.tar.bz2\">http://cdn.gstreamer.com/android/arm/gstreamer-sdk-android-arm-debug-2012.11.tar.bz2并增加了GSTREAMER_SDK_ROOT_ANDROID环境变量,以我的.bash_profile文件。
I have downloaded http://cdn.gstreamer.com/android/arm/gstreamer-sdk-android-arm-debug-2012.11.tar.bz2 and added the GSTREAMER_SDK_ROOT_ANDROID environment variable to my .bash_profile.
当我尝试构建Android教程-1通过Eclipse我收到以下错误:
When I try to build android-tutorial-1 via Eclipse I get the following error:
12:12:05 **** Incremental Build of configuration Default for project Tutorial1 ****
/apps/tools/android-ndk-r8d/ndk-build all
jni/Android.mk:13: *** GSTREAMER_SDK_ROOT_ANDROID is not defined!. Stop.
12:12:05 Build Finished (took 104ms)
我曾尝试加入GSTREAMER_SDK_ROOT_ANDROID到C ++构建Eclispe的变量,但它没有什么区别。
I have tried adding GSTREAMER_SDK_ROOT_ANDROID to the C++ build variables in Eclispe but it makes no difference.
当我尝试通过命令行我收到以下错误建:
When I try to build via the command line I get the following error:
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
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: *** [gst-build/gstreamer_android.o] Error 1
我无法弄清楚什么是GST / gst.h不能得到解决?
What I can't figure out is gst/gst.h can not be resolved?
推荐答案
我张贴的GStreamer的Android的邮件列表上面的问题,得到了以下回应:
I posted the above question on the GStreamer Android mailing list and got the following response:
不幸的是,我们忘了,包括 pkg配置
在此版本的Mac OS X.
你可以从这里下载:
http://macpkg.sourceforge.net/
Hi, Unfortunately we forgot to include
pkg-config
in this release for Mac OS X. You can download it from here: http://macpkg.sourceforge.net/
我用自制安装 pkg配置
,并能使用通过命令行来构建所有的Android教程 NDK的构建
。
I used homebrew to install pkg-config
and was able to build all of the Android Tutorials via the command line using ndk-build
.
我仍然在Eclipse中的一些问题:
I still have a number of issues in Eclipse:
- 的 * 的
GSTREAMER_SDK_ROOT_ANDROID
没有定义! - 我不能让Eclipse来收拾这个变量 - 如果我硬code中的变量到make文件然后我得到
/ bin / sh的:pkg配置:命令未找到
- pkg配置安装并通过CLI工作
- *
GSTREAMER_SDK_ROOT_ANDROID
is not defined! - I can not get Eclipse to pick up this variable - If I hard code the variable into the make file I then get
/bin/sh: pkg-config: command not found
- pkg-config is installed and working via the CLI
我相信有些问题涉及到Android 问题33788 以及我试图用CDT 8.0.2,而不是CDT 8.10来解决这些问题,但它并没有解决任何一个上面的问题。
I believe some of the issues are related to Android Issue 33788 and I have attempted to resolve them using CDT 8.0.2 instead of CDT 8.10 but it did not solve either of the above issues.
我身边有现在的问题通过执行以下工作:
I have worked around the problem for now by doing the following:
- 禁用CDT建设为我的项目
- 使用CLI NDK的构建构建NDK code
- 构建和部署应用到我的设备通过Eclipse为正常
这篇关于无法建立的GStreamer为Android Tutoritals的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!