树莓派zero w安装SRS

首先下载源码,选择最快的途径

下载后编译

./configure –pi
编译后需要进行替换,先进入objs目录下,删除st-1.9目录,然后输入以下命令并回车:

git clone https://github.com/ossrs/state-threads.git st-1.9 && pushd st-1.9 && git checkout -b srs origin/srs && make linux-debug EXTRA_CFLAGS=”-DMD_HAVE_EPOLL” && popd。

这样就把state-threads库替换成可以正常使用的版本了。

然后按照https://github.com/ossrs/srs/issues/1282#issuecomment-445539513的办法更新补丁,使用1.st.arm.patch.txt 替换trunk/3rdparty/patches/1.st.arm.patch 。

编译打包

cd srs/trunk

./scripts/package.sh –pi

生成的包位于trunk/objs/下,使用unzip解包,进入解包文件夹后安装

sudo bash INSTALL

启动服务器

sudo /etc/init.d/srs start

Leave a Reply

您的电子邮箱地址不会被公开。 必填项已用 * 标注

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>