janus install error

277 views
Skip to first unread message

김태종

unread,
Feb 18, 2021, 7:19:24 AM2/18/21
to meetecho-janus
config 
 - os : ubuntu 18.04
 - make error 

  CC       transports/transports_libjanus_websockets_la-janus_websockets.lo
transports/janus_websockets.c: In function ‘janus_websockets_common_callback’:
transports/janus_websockets.c:1316:37: warning: variable ‘methods’ set but not used [-Wunused-but-set-variable]
     char origin[256], headers[256], methods[256];
                                     ^~~~~~~
transports/janus_websockets.c:1485:17: error: implicit declaration of function ‘lws_write_ws_flags’; did you mean ‘BN_with_flags’? [-Werror=implicit-function-declaration]
     int flags = lws_write_ws_flags(LWS_WRITE_TEXT, ws_client->bufoffset == LWS_PRE, ws_client->bufpending <= (size_t)amount);
                 ^~~~~~~~~~~~~~~~~~
                 BN_with_flags
transports/janus_websockets.c:1485:17: warning: nested extern declaration of ‘lws_write_ws_flags’ [-Wnested-externs]
cc1: some warnings being treated as errors
Makefile:2266: recipe for target 'transports/transports_libjanus_websockets_la-janus_websockets.lo' failed
make[2]: *** [transports/transports_libjanus_websockets_la-janus_websockets.lo] Error 1
make[2]: Leaving directory '/root/data/janus-gateway'
Makefile:3293: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/data/janus-gateway'
Makefile:1468: recipe for target 'all' failed
make: *** [all] Error 2

Daebak Cafe

unread,
Feb 18, 2021, 7:58:03 AM2/18/21
to meetecho-janus
안녕하세요!

Taejong, did you install libwebsockets from their repo or it's the system one? If you use the system libs you want to install the libs from official repo. Try to follow these steps and then try to compile janus again:

git clone https://libwebsockets.org/repo/libwebsockets
cd libwebsockets
git checkout v3.2.0
mkdir build
cd build
cmake -DLWS_MAX_SMP=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..
make && sudo make install


Hope it helps you.
Reply all
Reply to author
Forward
0 new messages