Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Janus compilation configuration

Shulou Source: shulou.com Published: 2022-06-03 05:43:46 11月17日 Update

compilation

git clone https://github.com/meetecho/janus-gateway.git

sh autogen.sh

./ configure --prefix=/opt/janus --enable-websockets --enable-docs -disable-plugin-lua

make

sudo make install

make configs//Install all sample configuration templates in the/opt/janus/etc/janus folder

janus.cfg Global configuration file for janus, but excluding configuration files for other plugins

For example, janus and Android APP Demo communication, need to use WeSocket plug-in, so you need to install libwebsocket plug-in, and then related configuration

Janus default configuration is no WebSocket configuration, directly start Janus because there is no WebSocket configuration file and error. Fortunately Janus has provided us with a sample WebSocket configuration file in the configuration directory: janus.transport.websockets.cfg.sample,(if we want to connect Janus via WebSocket, we need a WebSocket configuration file) Here we can copy this sample file directly:

cp janus.transport.websockets.cfg.sample janus.transport.websockets.cfg

./ configure --prefix=/opt/janus --enable-websockets

After configuration is complete, print information

Compiler: gcc

libsrtp version: 2.x

SSL/crypto library: OpenSSL

DTLS set-timeout: not available

Mutex implementation: GMutex (native futex on Linux)

DataChannels support: no

Recordings post-processor: no

TURN REST API client: yes

Doxygen documentation: no

Transports:

REST (HTTP/HTTPS): yes

WebSockets: yes

RabbitMQ: no

MQTT: no

Unix Sockets: yes

Nanomsg: no

Plugins:

Echo Test: yes

Streaming: yes

Video Call: yes

SIP Gateway (Sofia): yes

SIP Gateway (libre): no

NoSIP (RTP Bridge): yes

Audio Bridge: yes

Video Room: yes

Voice Mail: yes

Record&Play: yes

Text Room: yes

Lua Interpreter: no

Duktape Interpreter: no

Event handlers:

Sample event handler: yes

WebSocket ev. handler: yes

RabbitMQ event handler:no

MQTT event handler: no

Nanomsg event handler: no

External loggers:

JSON file logger: no

JavaScript modules: no

If this configuration is ok for you, do a 'make' to start building Janus. A 'make install' will install Janus and its plugins to the specified prefix. Finally, a 'make configs' will install some sample configuration files too (something you'll only want to do the first time, though).

Note--enable-docs failed to load, so remove this configuration item

checking for doxygen... doxygen

checking for dot... no

configure: error: doxygen or dot not found. See README.md for installation instructions or remove --enable-docs

Tags: Configuration files plug-ins examples compilation luck success information global copy folder is in template directory communication Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Redmi NVidia Huawei MySQL