Kurento- Kurento Java Tutorial - kurento-magic-mirror Could not Run Successfully, Why?

本文详细记录了在Ubuntu18.04环境下从源代码构建KMS(Kurento Media Server)的过程,包括环境配置、依赖库安装、源代码下载与编译等步骤。同时,对比了在Ubuntu16.04上通过包管理器安装KMS后的差异,探讨了运行Kurento Java Tutorial遇到的问题及可能的原因。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、kms-omni-build Build

1、my operating system operating environment

root@gmt-NF8480M5:/home/sandra/kms/kms-omni-build# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

2、test my ice server, it is running ok!

在这里插入图片描述

2、build kms-omni-build

1、install tools
sudo apt-get update && sudo apt-get install --no-install-recommends --yes \
    build-essential \
    ca-certificates \
    cmake \
    git \
    gnupg

2、add Kurento repository

1、 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83

root@gmt-NF8480M5:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83

Executing: /tmp/apt-key-gpghome.4ElJxshZWJ/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83
Bgpg: key FC8A16625AFA7A83: public key "Openvidu - Kurento TEAM <openvidu@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

2、 DISTRO=“bionic” # KMS for Ubuntu 18.04 (Bionic)

root@gmt-NF8480M5:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

#KMS for Ubuntu 18.04 (Bionic)

export DISTRO="bionic" 
sudo tee "/etc/apt/sources.list.d/kurento.list" >/dev/null <<EOF
# Kurento Media Server - Nightly packages
deb [arch=amd64] http://ubuntu.openvidu.io/dev $DISTRO kms6
EOF
3、download source code

1、create kms directory

root@gmt-NF8480M5:/home/sandra# mkdir kms
root@gmt-NF8480M5:/home/sandra# cd kms/

2、down load code

git clone https://github.com/Kurento/kms-omni-build.git
cd kms-omni-build
git submodule update --init --recursive
git submodule update --remote

4、intall dependent libs
sudo apt-get update && sudo apt-get install --no-install-recommends --yes \
    kurento-media-server-dev

7、config the turn server ip
root@gmt-NF8480M5:/home/sandra/kms#vim ./kms-omni-build/build-Debug/config/kurento/WebRtcEndpoint.conf.ini

stunServerAddress=210.22.129.139
stunServerPort=3478

6、build and run

export MAKEFLAGS="-j$(nproc)"
./bin/kms-build-run.sh

2、Run Kurento Java Tutorial - kurento-hello-world ,OK!

1、build project

在这里插入图片描述

2、Set start app arguments

在这里插入图片描述

3、Running is OK!

在这里插入图片描述

3 、Run Kurento Java Tutorial - kurento-magic-mirror , But It is Failed!

在这里插入图片描述

Error message from server: Unexpected error while processing method: /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/core/src/persistence.cpp:6628: error: (-2) The node does not represent a user object (unknown type?) in function cvRead
 (Code:-32603, Type:null, Data: null)
4、kurento-magic-mirror console output info,it’s not found exception;

在这里插入图片描述

3、So , I Tried to Use KMS Intalled Ubuntu 16.04 of My an Another VM PC Again,Then I Run The Same Kurento Java Tutorial - kurento-magic-mirror, It’s Run Succeed;

在这里插入图片描述
So, I want to Know What Differrent the KMS I Build from source code on Ubuntu 18.04 and The KMS I installed at Ubuntu16.04 by running command:

sudo apt-get update && sudo apt-get install --yes kurento-media-server

Why it failed running Kurento Java Tutorial - kurento-magic-mirror on my Ubuntu18.04 and my build kms from source code, can some one give me a answer?

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值