为webrtc实现janus网关

为webrtc实现janus网关,webrtc,janus-gateway,Webrtc,Janus Gateway,我遵循janus文档来构建视频mcu系统。我根据readme文件安装了它的所有依赖项 http://janus.conf.meetecho.com/docs/ 之后,当我使用sh install.sh运行脚本时,我得到以下错误 In file included from test.c:1:0: ../websock/src/websock.h:55:26: fatal error: event2/event.h: No such file or directory #include <e

我遵循janus文档来构建视频mcu系统。我根据readme文件安装了它的所有依赖项<代码> http://janus.conf.meetecho.com/docs/

之后,当我使用
sh install.sh运行脚本时,我得到以下错误

In file included from test.c:1:0:
../websock/src/websock.h:55:26: fatal error: event2/event.h: No such file or directory
 #include <event2/event.h>
                          ^
compilation terminated.
make[1]: *** [test.o] Error 1
make[1]: Leaving directory `/home/gayan/MyDetails/MyApplications/virtualClassRoomTest/janus-gateway/wstest'
make: *** [wstest] Error 2

The installer couldn't find the libwebsock lib, which is needed for WebSockets
You can install version 1.0.4 (required!) with the following steps:
    wget http://paydensutherland.com/libwebsock-1.0.4.tar.gz
    tar xfv libwebsock-1.0.4.tar.gz
    cd libwebsock-1.0.4
    ./configure --prefix=/usr && make && sudo make install

    [Note: you may need to pass --libdir=/usr/lib64 to the configure script if you're installing on a x86_64 distribution]

If you're not interested in WebSockets support, you can disable them passing nowebsockets to the install script:
    ./install.sh nowebsockets
test.c:1:0中包含的文件中的
:
../websock/src/websock.h:55:26:致命错误:event2/event.h:没有这样的文件或目录
#包括
^
编译终止。
生成[1]:***[test.o]错误1
make[1]:离开目录“/home/gayan/MyDetails/MyApplications/virtualClassRoomTest/janus gateway/wstest”
make:**[wstest]错误2
安装程序找不到WebSocket所需的libwebsock库
您可以通过以下步骤安装版本1.0.4(必需!):
wgethttp://paydensutherland.com/libwebsock-1.0.4.tar.gz
tar xfv libwebsock-1.0.4.tar.gz
cd-libwebsock-1.0.4
./configure--prefix=/usr&&make&&sudo make安装
[注意:如果要在x86_64发行版上安装,可能需要将--libdir=/usr/lib64传递给配置脚本]
如果您对WebSockets支持不感兴趣,可以禁用它们,将nowebsockets传递到安装脚本:
./install.sh noweb插座
我还按照上述步骤安装了libwebsock,但仍然显示错误。event2目录不在janus网关代码中。下面是所有源代码的github链接

任何形式的帮助都将不胜感激。

我遇到了这个问题,并在事后解决了它

sudo apt get安装libevent dev


我的系统是ubuntu 14.04 64位

让WebSocket正常工作(ubuntu 14)的完整安装步骤如下:

如果使用wss,请确保复制证书,chrome对这些东西非常挑剔。如果使用自签名证书,您必须在chrome中信任它们(非常直观的过程:))


我猜libwebsocket不在你的道路上…还有,你清理并重新制作了吗?谢谢你的评论。按照文档指示,libwebsocket位于janus网关文件夹中。我也做了一次又一次的清洁。但结果是一样的。正如我前面提到的,event2文件夹和event.h文件也不在源代码中。而且您没有64位操作系统?我所做的正是您所做的,它在Debian Jessie x86上运行良好。另外,LibWebsocket不在janusgateway文件夹中……它将安装并位于您的路径中。最有可能的是
/usr/lib/
中的lib文件和
/usr/include/
@BenjaminTrent中的include文件。如果您能看一下,我们将非常感谢您的帮助。
mkdir -p ~/build

sudo apt-get install libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libini-config-dev libcollection-dev libwebsockets-dev pkg-config gengetopt automake libtool doxygen graphviz git cmake

sudo apt-get install libavformat-dev

echo "Start installing libwebsockets"
cd ~/build
git clone git://git.libwebsockets.org/libwebsockets
cd libwebsockets
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr  -DLWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT=ON ..
make && sudo make install

echo "Start installing Janus"
cd ~/build
git clone git://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --disable-data-channels --disable-rabbitmq --disable-docs --prefix=/opt/janus LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" CFLAGS="-I/usr/local/include"

make && sudo make install
sudo make configs
sudo cp mycert.pem /opt/janus/share/janus/certs/
sudo cp mycert.key /opt/janus/share/janus/certs/