ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.73k stars 1.99k forks source link

macOS Sierra: "Library not found for -lcrypto" #413

Open noodlecollie opened 7 years ago

noodlecollie commented 7 years ago

Building the single-player code with XCode 8.2.1 on Sierra results in the error "Library not found for -lcrypto", along with a warning that the sp/src/lib/common/osx32 directory cannot be found. Copying the sp/src/lib/common/linux32 directory (which contains libcrypto.a) and renaming it to osx32 seems to work around the issue.

Is this a misconfiguration issue on my part, or have there been changes to the toolchain in macOS that now require this new folder? I don't often compile on Mac so have virtually no experience with it all.

tpan496 commented 7 years ago

same problem here. it doesn't work with mp either.

GamerDude27 commented 6 years ago

The issue seems to lie with OpenSSL and I've managed to fix this issue by doing this: Get OpenSSL by opening the Terminal and typing brew install openssl. When that's done, head to it's install directory (in my case it's /usr/local/opt/openssl/lib/). Then copy libcrypto.a and paste it into /sp/src/lib/common/osx32 (create the osx32 folder if it doesn’t exist), now try compiling. This is what fixed it for me.