ivanmejiarocha / micro-service

sample micro-service in C++
MIT License
263 stars 129 forks source link

Build failure #20

Open lucasvsl opened 5 years ago

lucasvsl commented 5 years ago

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.

brunoccc commented 4 years ago

Thank you @lucasvsl, that solved my problem! 👍

ubhargavtej commented 4 years ago

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: