Meenapintu/Restweb

build in macOS failed: ld: library not found for -lcrypto

Alanscut opened this issue · 2 comments

Describe the bug
when compile it in mac with mac branch, after making the project, the making progress reached 100%, but it still report an error: ld: library not found for -lcrypto.

crypto

To Reproduce
Steps to reproduce the behavior:

  1. cmake . (in mac branch, install cpprestsdk with brew)
  2. make
  3. failed..

before I installed openssl to the /usr/local/lib, make failed when progress reached 33%, because openssl installed in another non-standard path. after I install openssl to /usr/local/lib, the make could reach 100%, but it still report the same error, this annoyed me 😢

Expected behavior
make successfully.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS 10.15
  • CMake 3.14.3
  • clang 11.0.0

Additional context
building it successfully in windows and ubuntu.

This looks a common OpenSSL issue for mac.

Hopefully these links might help you.

link : ValveSoftware/source-sdk-2013#413
link : #7

thanks! this is really not a business of restweb, I should make some configuration for openssl in my mac.