在Raspberry Pi 3上使用SRT编译gst-plugins-bad

时间:2018-10-10 10:41:48

标签: raspberry-pi gstreamer raspberry-pi3 srt

我试图用SRT编译gst-plugins-bad,编译成功,但是找不到插件。我认为缺少依赖库lib srt 和正确的参数(我使用--with-srt)。 这些是我使用的命令:

git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad
cd gst-plugins-bad
git checkout 1.14.2
export LDFLAGS='-L/opt/vc/lib' \
CFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux' \
CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux'
./autogen.sh --disable-gtk-doc --disable-examples --disable-x11 --disable-glx --disable-glx --disable-opengl --with-srt
make CFLAGS+="-Wno-error -Wno-redundant-decls -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" \
CPPFLAGS+="-Wno-error -Wno-redundant-decls -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" \
CXXFLAGS+="-Wno-redundant-decls" LDFLAGS+="-L/opt/vc/lib"

使用SRT进行编译的正确方法是什么?

1 个答案:

答案 0 :(得分:0)

您需要从https://github.com/Haivision/srt下载并安装SRT库