我正在按照 janus 文档构建视频 mcu 系统。我根据自述文件安装了它的所有依赖项。
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
我也按照上述步骤安装了libwebsock,但仍然显示错误。event2 目录不在 janus-gateway 代码中。这是所有源代码的 github 链接。https://github.com/meeetecho/janus-gateway.git
任何形式的帮助将不胜感激。