[FIXED] Error compiling airdcpp-webclient 2.0b

If you got some trouble or need help configuring AirDC++, we're here to help

[FIXED] Error compiling airdcpp-webclient 2.0b

Postby GeoffreySXB » 12 Mar 2017, 13:16

Hi, I got the following error during compile of airdcpp-webclient 2.0b on Debian 8.7 (armv71 + gcc 4.9)

/root/airdcpp-webclient-develop/airdcpp-webapi/web-server/WebServerManager.cpp: In instantiation of 'boost::optional<boost::asio::ip::tcp> webserver::isListening(EndpointType&) [with EndpointType = websocketpp::server<websocketpp::config::asio>]':
/root/airdcpp-webclient-develop/airdcpp-webapi/web-server/WebServerManager.cpp:218:36: required from here
/root/airdcpp-webclient-develop/airdcpp-webapi/web-server/WebServerManager.cpp:209:55: error: 'class websocketpp::server<websocketpp::config::asio>' has no member named 'get_local_endpoint'
auto localEndpoint = aEndpoint.get_local_endpoint(ec);
^
/root/airdcpp-webclient-develop/airdcpp-webapi/web-server/WebServerManager.cpp: In instantiation of 'boost::optional<boost::asio::ip::tcp> webserver::isListening(EndpointType&) [with EndpointType = websocketpp::server<websocketpp::config::asio_tls>]':
/root/airdcpp-webclient-develop/airdcpp-webapi/web-server/WebServerManager.cpp:222:34: required from here
/root/airdcpp-webclient-develop/airdcpp-webapi/web-server/WebServerManager.cpp:209:55: error: 'class websocketpp::server<websocketpp::config::asio_tls>' has no member named 'get_local_endpoint'
airdcpp-webapi/CMakeFiles/airdcpp-webapi.dir/build.make:1273: recipe for target 'airdcpp-webapi/CMakeFiles/airdcpp-webapi.dir/web-server/WebServerManager.cpp.o' failed
make[2]: *** [airdcpp-webapi/CMakeFiles/airdcpp-webapi.dir/web-server/WebServerManager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:156: recipe for target 'airdcpp-webapi/CMakeFiles/airdcpp-webapi.dir/all' failed
make[1]: *** [airdcpp-webapi/CMakeFiles/airdcpp-webapi.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

I tried to install libasio-dev and libboost-all-dev but didn't help

thx for help
GeoffreySXB
 
Posts: 5
Joined: 01 Sep 2014, 20:51

Re: Error compiling airdcpp-webclient 2.0b

Postby maksis » 12 Mar 2017, 17:34

Ah right, get_local_endpoint is available only in websocketpp 0.7.0. You can currently avoid the issue by installing websocketpp manually (https://airdcpp-web.github.io/docs/inst ... ncies.html) or from the upcoming Debian version. I'll probably make a workaround for it in any case.
User avatar
maksis
Site Admin
 
Posts: 774
Joined: 23 Nov 2010, 18:56


Return to The Help Desk

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron