Skip to content
Curt Krone edited this page Aug 16, 2017 · 2 revisions

Welcome to the socket.io-client-cpp wiki!

Building on macOS

I'm choosing to make a build directory for cmake output, rather than create the makefiles right in the root directory as the readme suggests. We need to tell the build where to find Boost and OpenSSL. So we can build the library with something like:

mcd build
cmake -DBOOST_INCLUDEDIR=/usr/local/include/boost -DBOOST_LIBRARYDIR=/usr/local/lib -DBOOST_VER:STRING=1.63.0 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ ..

And the tests with:

mcd test
cmake -DBOOST_INCLUDEDIR=/usr/local/include/boost -DBOOST_LIBRARYDIR=/usr/local/lib -DBOOST_VER:STRING=1.63.0 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ ../../test

Building on CentOS 7

On CentOS, we can get away with:

mcd build
cmake ..

and:

mcd test
cmake ../../test
Clone this wiki locally