How to build and link Boost.Serialization on MacOS

I'm building a client-server application in C++ using Boost, a colleague of mine is coding the server in Ubuntu and he's using Boost.Serialization but I'm unable to run it because it doesn't find that library, besides I also need the library for the client. To build and link it to the project he's only created a CMAKE file like this:

cmake_minimum_required(VERSION 3.16)
project(RemoteBackup_Server)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-pthread" )

add_executable(RemoteBackup_Server User.cpp main.cpp server.cpp server.h connection_handler.cpp connection_handler.h)


find_package(Boost REQUIRED COMPONENTS serialization filesystem)
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(RemoteBackup_Server ${Boost_LIBRARIES})

Which compiles and links the library with no efforts. I'm using MacOS, I've installed Boost using Homebrew and I've tried to follow the guide in the Boost official site: https://www.boost.org/doc/libs/1_74_0/more/getting_started/unix-variants.html#prepare-to-use-a-boost-library-binary but I don't have bootstrap.sh and b2 (commands mentioned in the guide) to build the libraries and I've searched everywhere on the internet and still got no clue on how to proceed. Any help?



from Recent Questions - Stack Overflow https://ift.tt/3fRNdMD
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations