Ubuntu下构建gstreamer开发环境

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

<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--> libstreamer0. 10 - 0
libstreamer0.
10 - dev
libstreamer0.
10 - 0 - dbg

在新立得里选中应用即可

2,测试gstreamer开发库

<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--> #include < gst / gst.h >
int main( int argc, char * argv[])
{
const gchar * nano_str;
guintmajor,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(
" ThisprogramislinkedagainstGStreamer%d.%d.%d%s/n " ,
major,minor,micro,nano_str);
return 0 ;
}

3,编译运行

<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--> gcc - Wall$(pkg - config -- cflags -- libsgstreamer - 0.10 )hello.c - ohello
.
/ hello

运行结果:

<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--> Thisprogram is linkedagainstGStreamer 0.10 . 22

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值