dfleury2 / beauty

A Simple C++ Http server/client above Boost.Beast
MIT License
188 stars 23 forks source link

build error #14

Closed ronytesler closed 1 year ago

ronytesler commented 1 year ago

after running cmake --build . -j4 I get: `fatal error: boost/json.hpp: No such file or directory #include <boost/json.hpp>

dfleury2 commented 1 year ago

Hi, which version of boost are you using ? Beauty is now using the Boost.json library available in Boost 1.75 or earlier.

ronytesler commented 1 year ago

1.71.0.0ubunbu2

dfleury2 commented 1 year ago

Not a good one.

If you can not update to newer version, you can remove the json usage in the code directly (related to Swagger)

ronytesler commented 1 year ago

Why? It's earlier than 1.75.

dfleury2 commented 1 year ago

Sorry, my bad english, I probably mean "later", or 1.74+ (1.75, 76, ... 1.81)

ronytesler commented 1 year ago

It says I have the newest version (1.71.0.0ubuntu2) after running apt-get update and apt-get install libboost-all-dev

ronytesler commented 1 year ago

I downloaded and installed version 1.81 of boost. Now I get this error when I run cmake --build . -j4: 'class boost::core::basic_string_view<char>'} has no member named 'to_string' src/CMakeFiles/beauty.div/build.make:154: src/CMakeFiles/beauty.dir/server.cpp.o

ronytesler commented 1 year ago

I installed version 1.79 and it worked

dfleury2 commented 1 year ago

I have fix the issue with boost 1.81. Now, it may compile fine using boost 1.78+