文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Ubuntu gstreamer编译运行测试开发库

Ubuntu gstreamer编译运行测试开发库

时间:2010-10-05  来源:mydear

Ubuntu gstreamer对于电脑使用的玩家的常用软件,然后我就学习及深入的研究Ubuntu gstreamer,在这里和大家一起探讨Ubuntu gstreamer的使用方法,希望对大家有用。Ubuntu下构建Ubuntu gstreamer开发环境。

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

  1. libstreamer0.10-0
  2. libstreamer0.10-dev
  3. libstreamer0.10-0-dbg

在新立得里选中应用即可

2,测试Ubuntu gstreamer开发库

  1. #include <gst/gst.h>
  2. int main (int argc,char *argv[])
  3. {
  4. const gchar *nano_str;
  5. guint major, minor, micro, nano;
  6. gst_init (&argc, &argv);
  7. gst_version (&major, &minor, &micro, &nano);
  8. if (nano == 1)
  9. nano_str = "(CVS)";
  10. else if (nano == 2)
  11. nano_str = "(Prerelease)";
  12. else
  13. nano_str = "";
  14. printf ("This program is linked against GStreamer %d.%d.%d %sn",
  15. major, minor, micro, nano_str);
  16. return 0;
  17. }

3,Ubuntu gstreamer编译运行

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

运行结果:This program is linked against GStreamer 0.10.22


相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载