• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling in MACOX Failling... openssl

Stellow

C++/C#/PHP/LUA
Joined
Oct 23, 2008
Messages
1,106
Reaction score
214
Location
Germany
GitHub
eubrunomiguel
Any solution to compile on the latest version of mac?

Code:
/.../otclient/src/framework/util/crypt.cpp:35:10: fatal error: 

      'openssl/rsa.h' file not found

Openssl is installed already by brew.

And brew linking, as an option I have seen on internet, seems not to work.

Code:
Refusing to link: openssl101
Linking keg-only openssl101 means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl101.
Instead, pass the full include/library paths to your compiler e.g.:
  -I/usr/local/opt/openssl101/include -L/usr/local/opt/openssl101/lib

I did not tried to do this "pass the full include" to my compiler, because I do not understand how the cmake works and how to put it into.

Edit

Seems that adding those lines to Cmakelist.xml works:

Code:
include_directories(/usr/local/opt/openssl/include)
link_directories(/usr/local/opt/openssl/lib)


 
Last edited:
Back
Top