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

libstreamer0.10-0

libstreamer0.10-dev

libstreamer0.10-0-dbg

在新立得里选中应用即可

2:测试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
;
}

3,编译运行

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

运行结果:

This program is linked against GStreamer 0.10.22

转自:http://hi.baidu.com/a%CC%C7%B3%B4%C0%F5%D7%D3a/blog/item/3a082b2f71f66724359bf724.html

相关文章:

  • 2021-09-23
  • 2022-01-21
  • 2021-09-04
  • 2021-11-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-01-28
  • 2022-12-23
  • 2021-12-08
  • 2021-11-05
  • 2022-02-08
  • 2021-07-29
相关资源
相似解决方案