Skip to content

Building under macOS

Jarle Aase edited this page May 22, 2017 · 10 revisions

The library compiles and runs all tests under macOS Sierra (OS X).

Tested with boost 1.60.

You may need to set the BOOT_ROOT cmake option to the root-path of your local boost build.

# Check out the source code and prepare git sub-modules
git clone https://github.com/jgaa/restc-cpp.git
cd restc-cpp/
git submodule update --init --recursive

# Build the restc-cpp library with default options
mkdir build
cd build
cmake ..
make
cd ..

example

On one of my Mac's, I have boost compiled in hy home directory, but no openssl development libraries. To build the system, I will enter:

cd restc-cpp
rm -rf dbuild
mkdir dbuild
cd dbuild
cmake -DCMAKE_PREFIX_PATH=/Users/jgaa/src/boost_1_60_0/ -DRESTC_CPP_WITH_TLS=OFF  ..
make -j4
cd ..
Clone this wiki locally