我正在尝试制作一个rtsp服务器,它可以从onvif摄像机捕获rtsp提要,然后将此流重新分发给连接到我的服务器的每个人。
我在VMware工作站上使用iso:https://www.ubuntu.com/download/desktop/thank-you?version=18.04.1&architecture=amd64创建了一个新的Ubuntu 64位vm。
然后我安装了ubuntu桌面:
$ sudo apt-get update
$ sudo apt-get install ubuntu-desktop
$ reboot我将gst服务器从其github存储库克隆到桌面上的一个文件夹中:
$ cd Desktop
$ mkdir camSrv
$ cd camSrv
$ git clone https://github.com/GStreamer/gst-rtsp-server.git然后,我安装了这 post引用的依赖项:
$ sudo apt-get install autoconf -y
$ sudo apt-get install automake -y
$ sudo apt-get install autopoint -y
$ sudo apt-get install libtool -y但当我试图构建gst服务器项目时,我总是会发现错误.
我安装了一堆其他依赖项,但现在我陷入了错误:
configure: No package 'gstreamer-1.0' found
configure: error: no gstreamer-1.0 >= 1.15.0.1 (GSTreamer) found我找不到我错过的..。我只想让这个职位中提到的例子对我有用.
发布于 2018-11-24 09:17:52
看来我们不需要自己编纂任何东西。我们可以简单地从gst-rtsp-server1.0源包安装所需的开发包:
sudo apt-get install libgstrtspserver-1.0-dev gstreamer1.0-rtsp然后你就可以按计划使用了。
下面是手动编译方法,如果您确定要这样做的话。
安装开发工具:
sudo apt-get install git build-essential autoconf automake autopoint libtool pkg-config -y
sudo apt-get install gtk-doc-tools libglib2.0-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev -y
sudo apt-get install checkinstall(注:libgstreamer1.0-dev )。
克隆存储库:
git clone https://github.com/GStreamer/gst-rtsp-server.git
cd gst-rtsp-server/但是Ubuntu18.04LTS有旧版本的GStreamer库(1.14.0),所以我们需要签出以前的版本,然后编译:
git checkout 1.13.91
./autogen.sh
./configure
make
sudo checkinstall make install # enter 3 and fill *Version* field with 1.13.91注意:您可以在最后阶段使用sudo make install,但是checkinstall更安全,因为它将创建带有编译应用程序的deb包(因此它由APT控制,并可能被sudo dpkg -r gst-rtsp删除)。
https://askubuntu.com/questions/1095521
复制相似问题