Kurento源码安装(Ubuntu 14.04和 Ubuntu 16.04)

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

1. 进入Home目录

cd ~

2. 添加镜像源 

 ubuntu 14.04

echo "deb http://ubuntu.kurento.org trusty-dev kms6" | sudo tee /etc/apt/sources.list.d/kurento-dev.list

ubuntu 16.04

echo "deb http://ubuntu.kurento.org xenial-dev kms6" | sudo tee /etc/apt/sources.list.d/kurento-dev.list

3. 下载kurento.gpg.key

wget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add -

4. 更新

sudo apt-get update

5. 安装git (已安装跳过)

sudo apt-get install git

6. 安装 build-essential

sudo apt-get install build-essential

7. 下载 KMS

git clone https://github.com/Kurento/kurento-media-server.git

8. 进入 KMS 目录

cd kurento-media-server

9. 安装 KMS 依赖

sudo apt-get install $(cat debian/control | sed -e "s/$/\!\!/g" | tr -d '\n' | sed "s/\!\! / /g" | sed "s/\!\!/\n/g" | grep "Build-Depends" | sed "s/Build-Depends: //g" | sed "s/([^)]*)//g" | sed "s/, */ /g")

10. 新建 build 目录

mkdir -p build

11. 进入 build 目录

cd build

12. 生成 makefile

cmake ..

13. 编译KMS

make -j4

14. git submodule

cd ..

git submodule update --recursive --init

15. deb打包

dpkg-buildpackage -us -uc

16. 安装KMS

sudo dpkg -i ../kurento__.deb

17. 启动KMS

sudo service kurento-media-server start

18. 停止KMS

sudo service kurento-media-server stop

 

转载于:https://my.oschina.net/997155658/blog/839224

你可能感兴趣的:(Kurento源码安装(Ubuntu 14.04和 Ubuntu 16.04))