赞
踩
在很多发行版里面都已经内置了GStreamer,可以直接使用,不过有时候为了尝试新特性可以考虑一下新版本,GStreamer再Linux发行版中安装比较方便再控制终端执行简单的安装命令即可。
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
再gcc中增加参数
pkg-config --cflags --libs gstreamer-1.0
如编demo程序中的
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0`
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。