Open lucasvsl opened 5 years ago
Thank you @lucasvsl, that solved my problem! 👍
To fix the build errors related to CMake error in finding openssl on MAC and problems concerning boost, follow the below steps in order before Step 3 detailed in "How to build" notes in readme.md:
CMake Error in finding OpenSSL on MAC: Execute the below command
export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
And changing the required version in the ´CMakeList.txt´ (line 18) from ´1.0.2p´ to ´1.0.2s´.
Problems Concerning to Boost: This issue is due to older websocketpp being incompatible with the latest version of boost. Instead of uninstalling and trying to install older version of boost library (boost 1.60 is dibbled on Homebrew), one can update the websocketpp library in cpprestsdk by making the following change the line #18 in "build_dependencies.sh" as below
(cd $restsdkDir && git submodule update --init && git checkout tags/$RESTSDK_VERSION -b $RESTSDK_VERSION)
While building, I faced two problems.
First, the linking of the openssl library failed.
I could solve this by changing the required version in the ´CMakeList.txt´ (line 18) from ´1.0.2p´ to ´1.0.2s´.
The second problem concerns boost. It is also referenced in https://github.com/Microsoft/cpprestsdk/issues/1054 and https://github.com/zaphoyd/websocketpp/issues/794
for the case at hand it can be circumvented by installing boost 1.60 ´brew uninstall boost´ ´brew install boost@1.60´
additionally the boost path needs to be set: ´export BOOST_ROOT="/usr/local/opt/boost@1.60"´
In order for CMake to find it.