Build failed
yuppox opened this issue · comments
dfplex is failing to build on lubuntu (Ubuntu 20.04).
cmake v3.18
gcc version 9.3.0
In file included from ../plugins/dfplex/server/websocketpp/websocketpp/transport/asio/endpoint.hpp:34,
from ../plugins/dfplex/server/websocketpp/websocketpp/config/asio_no_tls.hpp:32,
from ../plugins/dfplex/server/server.cpp:13:
../plugins/dfplex/server/websocketpp/websocketpp/transport/asio/connection.hpp: In member function ‘std::error_code websocketpp::transport::asio::connection<config>::init_asio(websocketpp::transport::asio::connection<config>::io_service_ptr)’:
../plugins/dfplex/server/websocketpp/websocketpp/transport/asio/connection.hpp:421:38: error: no matching function for call to ‘make_shared<template<class Executor> class boost::asio::strand>(std::reference_wrapper<boost::asio::io_context>)’
421 | lib::ref(*io_service));
| ^
I tried the same environment with the latest dfhack and it didn't have any errors.
you can try commenting that line out. It may not be necessary. (I don't fully understand it.)
I know this is already closed, but just in case it helps anyone: This just happened to me today, and all I had to do was update the websocketpp
submodule:
cd plugins/dfplex/server/websocketpp
git checkout master
git pull