简单介绍Ubuntu gstreamer开发环境测试

系统 Linux
Ubuntu下构建Ubuntu gstreamer开发环境 。Ubuntu已经安装了Ubuntu gstreamer库,因此只需要再安装几个开发库即可

特别值得一提的是gstreamer有很多值得学习的地方,这里我们主要介绍Ubuntu gstreamer,包括介绍Ubuntu gstreamer编译运行等方面。

Ubuntu下构建Ubuntu gstreamer开发环境 。

Ubuntu已经安装了Ubuntu gstreamer库,因此只需要再安装几个开发库即可

libstreamer0.10-0libstreamer0.10-dev
libstreamer0.10-0-dbg
在新立得里选中应用即可

测试Ubuntu gstreamer开发库

#include <gst/gst.h>
int main (int   argc,char *argv[])
{const gchar *nano_str;
guint major, minor, micro, nano;
gst_init (&argc, &argv);
gst_version (&major, &minor, &micro, &nano);
if (nano == 1)
nano_str = "(CVS)";
else if (nano == 2)
nano_str = "(Prerelease)";
else
nano_str = "";
printf ("This program is linked against GStreamer %d.%d.%d %s\n",
major, minor, micro, nano_str);
return 0;}

Ubuntu gstreamer编译运行

gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) hello.c -o hello
./hello

Ubuntu gstreamer运行结果

This program is linked against GStreamer 0.10.22

【编辑推荐】

  1. 常用Ubuntu安装网络配置系统
  2. Ubuntu DNS服务器启动配置
  3. 编辑Ubuntu DNS服务器配置
  4. Java开发环境下安装Ubuntu JDK
  5. Ubuntu Samba安装与创建目录
责任编辑:佚名 来源: CSDN
相关推荐

2010-02-06 16:01:26

Ubuntu gstr

2010-03-16 18:32:58

ubuntuLinux

2011-06-28 10:20:19

Ubuntu Qt Designer

2009-12-30 14:54:55

Ubuntu Smar

2013-01-25 13:49:26

S40Series 40

2010-03-16 11:08:34

Ubuntu版本

2009-07-03 16:21:43

2009-06-11 11:09:02

Linux嵌入式开发环境

2009-12-29 08:54:09

Ubuntu Linu

2011-07-06 17:34:47

iPhone

2010-03-18 11:10:04

Ubuntu常用软件

2010-03-11 15:32:48

2009-12-30 17:25:34

Linux Ubunt

2009-12-30 17:38:53

2010-01-04 18:22:03

Ubuntu flex

2010-03-11 10:52:49

Ubuntu Linu

2010-03-18 11:02:59

2010-03-10 16:34:41

2009-07-16 17:25:44

ubuntu8jdk详细安装Java开发环境

2010-03-16 10:28:44

Ubuntu 8.04
点赞
收藏

51CTO技术栈公众号