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_<version>_<arch>.deb
17. 启动KMS
sudo service kurento-media-server start
18. 停止KMS
sudo service kurento-media-server stop原文链接:https://www.f2er.com/ubuntu/354577.html