前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Linux下WebRTC框架Janus编译过程

Linux下WebRTC框架Janus编译过程

作者头像
TSINGEYE清眸物联
发布2023-01-04 15:08:58
8800
发布2023-01-04 15:08:58
举报

说明

Janus是一个开源的WebRTC服务,由Meetecho设计和开发。该服务目前只支持Linux系统,或者MacOS,不支持Windows系统,如果要在Windows下编译和使用,需要WSL。

编译依赖

基本依赖

  • Jansson
  • libconfig
  • libnice (at least v0.1.16 suggested, master recommended)
  • OpenSSL (at least v1.0.1e)
  • libsrtp (at least v1.5 suggested)
  • usrsctp (only needed if you are interested in Data Channels)
  • libmicrohttpd (at least v0.9.59; only needed if you are interested in REST support for the Janus API)
  • libwebsockets (only needed if you are interested in WebSockets support for the Janus API)
  • cmake (only needed if you are interested in WebSockets and/or BoringSSL support, as they make use of it)
  • rabbitmq-c (only needed if you are interested in RabbitMQ support for the Janus API or events)
  • paho.mqtt.c (only needed if you are interested in MQTT support for the Janus API or events)
  • nanomsg (only needed if you are interested in Nanomsg support for the Janus API)
  • libcurl (only needed if you are interested in the TURN REST API support)

一些插件的依赖

  • Sofia-SIP (only needed for the SIP plugin)
  • libopus (only needed for the bridge plugin)
  • libogg (needed for the voicemail plugin and/or post-processor)
  • libcurl (only needed if you are interested in RTSP support in the Streaming plugin or in the sample Event Handler plugin)
  • Lua (only needed for the Lua plugin)

此外,您还需要以下库和工具

安装依赖

CentOS
代码语言:javascript
复制
yum install libmicrohttpd-devel jansson-devel \
   openssl-devel libsrtp-devel sofia-sip-devel glib2-devel \
   opus-devel libogg-devel libcurl-devel pkgconfig gengetopt \
   libconfig-devel libtool autoconf automake
Ubuntu
代码语言:javascript
复制
使用aptitude进行安装,会自动安装相关依赖
代码语言:javascript
复制
aptitude install libmicrohttpd-dev libjansson-dev \
	libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
	libopus-dev libogg-dev libcurl4-openssl-dev liblua5.3-dev \
	libconfig-dev pkg-config gengetopt libtool automake
其他安装依赖
  • Doxygen
  • Graphviz

编译过程

代码语言:javascript
复制
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --prefix=/opt/janus
make
make install
make configs

执行完步骤后默认会在/opt/janus下生成整个工程的可执行文件及配置。 可执行文件janus在/opt/janus/bin下面。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-09-14,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 说明
  • 编译依赖
    • 基本依赖
      • 一些插件的依赖
        • 此外,您还需要以下库和工具
          • 安装依赖
            • CentOS
            • Ubuntu
            • 其他安装依赖
        • 编译过程
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档