Ubuntu 下构建gstreamer开发环境

小编辑 发布于 2010/01/26 03:13
阅读 2K+
收藏 3

解读下一代网络:算力网络正从理想照进现实!>>>

Ubuntu 下构建gstreamer开发环境

1,Ubuntu已经安装了gstreamer库,因此只需要再安装几个开发库即可,是
libstreamer0.10-0
libstreamer0.10-dev
libstreamer0.10-0-dbg

在新立得里选中应用即可

2,测试gstreamer开发库
#include
int main (int   argc,char *argv[])
{
    const gchar *nano_str;
    guint major, minor, micro, nano;
    gst_init (&argc, &argv);
    gst_version (&major, &minor, µ, &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

加载中
0
老李_beijing
老李_beijing
请问怎么开发加密的视频解码器啊
返回顶部
顶部