Centos7 gstreamer-1.0安装
1. 安装gstreamer-1.0.0
yum install libgstreamer*
yum install gstreamer*
source ~/.bashrc
如果不行可以通过代码安装
wget https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.0.0.tar.xz
xz -d gstreamer-1.0.0.tar.xz
tar xvf gstreamer-1.0.0.tar
./configure
make -j2 && make install
报错
grammar.tab.c: In function 'priv_gst_parse_yyparse':
grammar.tab.c:1830:7: error: too few arguments to function 'priv_gst_parse_yylex'
if (yychar == YYEMPTY)
如果因为bison版本过高有接口问题, 可以
查找
rpm -qa |grep bison
卸载
rpm -e bison-3.0.4-2.el7.x86_64
wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
重新安装
[[email protected]_0_5_centos gstreamer-send]# go build main.go
# github.com/pion/example-webrtc-applications/internal/gstreamer-src
/tmp/go-build000020236/b033/_x003.o: In function `gstreamer_send_new_sample_handler':
../internal/gstreamer-src/gst.c:53: undefined reference to `gst_buffer_extract_dup'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libgstapp-1.0.so: undefined reference to `gst_element_class_add_static_pad_template'
collect2: error: ld returned 1 exit status
因为多个库冲突
去掉/usr/local/lib/pkgconfig 修改如下
source ~/.bashrc