chux0519 / pegasocks

A lightweight proxy client written in C, intends to support multiple protocols(trojan etc.)
BSD 3-Clause "New" or "Revised" License
116 stars 35 forks source link

OSX build error #1

Closed chux0519 closed 3 years ago

chux0519 commented 3 years ago

failed to link openssl 1.1( macos will link to libressl instead which is not right).

chux0519 commented 3 years ago

Setting openssl related flags manually

set(OPENSSL_INCLUDE_DIR /usr/local/Cellar/openssl@1.1/1.1.1g/include)
set(OPENSSL_LIBRARIES /usr/local/Cellar/openssl@1.1/1.1.1g/lib/libcrypto.dylib /usr/local/Cellar/openssl@1.1/1.1.1g/lib/libssl.dylib)

or do some force links to /usr/lib

sudo ln -s /usr/local/opt/openssl@1.1/lib/libcrypto.dylib /usr/lib/libcrypto.dylib

sudo ln -s /usr/local/opt/openssl@1.1/lib/libssl.dylib /usr/lib/libssl.dylib

libevent from homebrew may also cause problem, try to build it from source