Closed dhruvkakadiya closed 5 years ago
Have you added libssl.a
and libcrypto.a
to link libraries?
Thank you. Looks like linking of OpenSSL and Crypto is not enough for Mac so needed to link few other libraries(related to Apple specific secure sockets) to get it compiled fine.
find_package(OpenSSL REQUIRED)
target_link_libraries(nakama-cmake-client-example PUBLIC OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries(nakama-cmake-client-example PUBLIC "-framework foundation" "-framework security")
So probably better to link OpenSSL and Crypto libraries inside CMakeLists.txt
along with if OS is Apple then link "-framework foundation" "-framework security"
as well.
Fixed in master branch
Trying nakama-cpp client SDK for Mac and it's failing to build.