zaphoyd / websocketpp

C++ websocket client/server library
http://www.zaphoyd.com/websocketpp
Other
6.9k stars 1.95k forks source link

Wrong referencies to Boost Asio #772

Open alexiicon opened 5 years ago

alexiicon commented 5 years ago

Hi, All

I'm trying to include simple version of websocketspp server. And it looks like it refers to wrong place.

Here is make output:

Profile: g++ -Wall -std=c++11 -fPIC -g -I/home/alex/cex/Utils/rapidjson/include -I/home/alex/cex/Utils/cppkafka/include -I/home/alex/cex/Utils/plog/include -I/home/alex/cex/Utils/gmp-6.1.2 -I./src/le -I/home/alex/include -o build/dev/objects/src/webSockets.o -c src/webSockets.cpp In file included from /usr/local/include/websocketpp/transport/asio/base.hpp:31:0, from /usr/local/include/websocketpp/transport/asio/connection.hpp:31, from /usr/local/include/websocketpp/transport/asio/endpoint.hpp:32, from /usr/local/include/websocketpp/config/asio_no_tls.hpp:32, from src/webSockets.cpp:11: /usr/local/include/websocketpp/common/asio.hpp:46:14: fatal error: asio/version.hpp: No such file or directory

include <asio/version.hpp>

          ^~~~~~~~~~~~~~~~~~

Boost lib by default installed into /usr/include/boost, so from my point of view it should be #include <boost/asio/version.hpp>

bradfordcp commented 3 years ago

I just hit this issue as well with Fedora 33.

bradfordcp commented 3 years ago

If anyone else hits this issue make sure you clone the repo with the --recursive flag set. Skipping this argument will not download the dependency libraries. If you already have a local checkout run the following commands in the root of the repo to pull down the appropriate dependencies.

git submodule init
git submodule update --recursive
innerNULL commented 3 years ago

If anyone else hits this issue make sure you clone the repo with the --recursive flag set. Skipping this argument will not download the dependency libraries. If you already have a local checkout run the following commands in the root of the repo to pull down the appropriate dependencies.

git submodule init
git submodule update --recursive

@bradfordcp Hi, I met this problem, but the question is, it seems there are not any submodule in this respository?