Android build errors with updated SDK.

ArkedGames
edited October 29 in Native

Hey there, I have a UE4 project that is currently running on the 4. series of sdks, and currently works just fine and compiles and is buildable on all platforms no problem. My issue comes with trying to upgrade the SDK to the 5. series, I keep running into issues packaging the UE4 project for android.

After updating all the directories containing the headers I need (Photon-cpp, Common-cpp, Loadbalancing-cpp) and the associated libraries, I end up with the following build errors.

UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_ERR_print_errors_fp
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:99 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:99)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::handleErrors()) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_sha256
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:394 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:394)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::hmac(ExitGames::Common::JVector<unsigned char> const&) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_HMAC
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:394 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:394)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::hmac(ExitGames::Common::JVector<unsigned char> const&) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_CIPHER_CTX_new
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:183 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:183)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:125 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:125)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:327 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:327)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:282 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:282)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_aes_256_gcm
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:187 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:187)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
PackagingResults: Error: undefined symbol: eg_ERR_print_errors_fp
PackagingResults: Error: undefined symbol: eg_EVP_sha256
PackagingResults: Error: undefined symbol: eg_HMAC
PackagingResults: Error: undefined symbol: eg_EVP_CIPHER_CTX_new
PackagingResults: Error: undefined symbol: eg_EVP_aes_256_gcm
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:331 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:331)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_EncryptInit_ex
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:187 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:187)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:197 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:197)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:135 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:135)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_CIPHER_CTX_ctrl
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:193 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:193)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:225 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:225)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:335 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:335)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:358 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:358)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_EncryptUpdate
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:204 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:204)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:211 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:211)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:142 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:142)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_EncryptFinal_ex
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:219 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:219)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:150 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:150)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_CIPHER_CTX_free
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:229 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:229)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:155 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:155)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:369 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:369)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:312 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:312)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_aes_256_cbc
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:135 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:135)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::encrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:292 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:292)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_RAND_bytes
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:38 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:38)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Encryptor::Encryptor(ExitGames::Common::Logger const&, ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char, int)) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libph
oton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_CIPHER_CTX_init
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:257 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:257)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_DecryptInit_ex
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:331 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:331)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:339 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:339)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:292 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:292)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_DecryptUpdate
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:346 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:346)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:353 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:353)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:299 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:299)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: eg_EVP_DecryptFinal_ex
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:365 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:365)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by EncryptorOpenSSL.cpp:307 (jni/../src/Internal/Encryption\EncryptorOpenSSL.cpp:307)
UATHelper: Packaging (Android (ASTC)):     >>>               EncryptorOpenSSL.o:(ExitGames::Photon::Internal::Encryption::Impl::decrypt(ExitGames::Common::JVector<unsigned char> const&, ExitGames::Common::JVector<unsigned char> const&, unsigned char) const) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8
a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: lws_cancel_service
UATHelper: Packaging (Android (ASTC)):     >>> referenced by WebSocketLib.cpp:78 (jni/../src/Internal\WebSocketLib.cpp:78)
UATHelper: Packaging (Android (ASTC)):     >>>               WebSocketLib.o:(ExitGames::Photon::Internal::WebSocketConnect::cleanup()) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: lws_context_destroy
UATHelper: Packaging (Android (ASTC)):     >>> referenced by WebSocketLib.cpp:79 (jni/../src/Internal\WebSocketLib.cpp:79)
UATHelper: Packaging (Android (ASTC)):     >>>               WebSocketLib.o:(ExitGames::Photon::Internal::WebSocketConnect::cleanup()) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: lws_callback_on_writable
UATHelper: Packaging (Android (ASTC)):     >>> referenced by WebSocketLib.cpp:385 (jni/../src/Internal\WebSocketLib.cpp:385)
UATHelper: Packaging (Android (ASTC)):     >>>               WebSocketLib.o:(ExitGames::Photon::Internal::WebSocketConnect::sendPackage(unsigned char const*, int)) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by WebSocketLib.cpp:187 (jni/../src/Internal\WebSocketLib.cpp:187)
UATHelper: Packaging (Android (ASTC)):     >>>               WebSocketLib.o:(ExitGames::Photon::Internal::WebSocketConnect::callback_http(void*, int, void*, void*, unsigned long)) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by WebSocketLib.cpp:147 (jni/../src/Internal\WebSocketLib.cpp:147)
UATHelper: Packaging (Android (ASTC)):     >>>               WebSocketLib.o:(ExitGames::Photon::Internal::WebSocketConnect::callback_http(void*, int, void*, void*, unsigned long)) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: undefined symbol: lws_service
UATHelper: Packaging (Android (ASTC)):     >>> referenced by WebSocketLib.cpp:89 (jni/../src/Internal\WebSocketLib.cpp:89)
UATHelper: Packaging (Android (ASTC)):     >>>               WebSocketLib.o:(ExitGames::Photon::Internal::WebSocketConnect::service()) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> referenced by WebSocketLib.cpp:327 (jni/../src/Internal\WebSocketLib.cpp:327)
UATHelper: Packaging (Android (ASTC)):     >>>               WebSocketLib.o:(ExitGames::Photon::Internal::WebSocketConnect::lwsServiceThread()) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libphoton-cpp-static_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):     ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
UATHelper: Packaging (Android (ASTC)):     clang++: error: linker command failed with exit code 1 (use -v to see invocation)
UATHelper: Packaging (Android (ASTC)): Took 6.9806749s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool failed. See log for more details. (C:\Users\carno\AppData\Roaming\Unreal Engine\AutomationTool\Logs\F+unrealGames+UE_4.27\UBT-PROJECT-Android-Development.txt)
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: undefined symbol: eg_EVP_EncryptInit_ex
PackagingResults: Error: undefined symbol: eg_EVP_CIPHER_CTX_ctrl
PackagingResults: Error: undefined symbol: eg_EVP_EncryptUpdate
PackagingResults: Error: undefined symbol: eg_EVP_EncryptFinal_ex
PackagingResults: Error: undefined symbol: eg_EVP_CIPHER_CTX_free
PackagingResults: Error: undefined symbol: eg_EVP_aes_256_cbc
PackagingResults: Error: undefined symbol: eg_RAND_bytes
PackagingResults: Error: undefined symbol: eg_EVP_CIPHER_CTX_init
PackagingResults: Error: undefined symbol: eg_EVP_DecryptInit_ex
PackagingResults: Error: undefined symbol: eg_EVP_DecryptUpdate
PackagingResults: Error: undefined symbol: eg_EVP_DecryptFinal_ex
PackagingResults: Error: undefined symbol: lws_cancel_service
PackagingResults: Error: undefined symbol: lws_context_destroy
PackagingResults: Error: undefined symbol: lws_callback_on_writable
PackagingResults: Error: undefined symbol: lws_service


After which I noticed there was a new folder in the android SDK for thirdparty, that contained SSL, Crypto, and Websockets, I grabbed those libraries and linked them, after which my compile error became the following:


UATHelper: Packaging (Android (ASTC)):     ld.lld: error: duplicate symbol: vpaes_cbc_encrypt
UATHelper: Packaging (Android (ASTC)):     >>> defined at vpaes-armv8.S:1064 (crypto/fipsmodule\vpaes-armv8.S:1064)
UATHelper: Packaging (Android (ASTC)):     >>>            vpaes-armv8.S.o:(vpaes_cbc_encrypt) in archive D:/PROJECT DUPE .27/PROJECT/Source/Photon/lib/Android\libcrypto_release_android_arm64-v8a_libc++_no-rtti.a
UATHelper: Packaging (Android (ASTC)):     >>> defined at vpaes-armv8.o:(.text+0xC60) in archive F:/unrealGames/UE_4.27/Engine/Source/ThirdParty/OpenSSL/1.1.1k/lib/Android/ARM64\libcrypto.a
UATHelper: Packaging (Android (ASTC)):     clang++: error: linker command failed with exit code 1 (use -v to see invocation)
PackagingResults: Error: duplicate symbol: vpaes_cbc_encrypt


I am currently stumped and not sure how to proceed, also not sure if it is even worth upgrading the SDK at this point. Any help will be appreciated.

Comments

  • Hi @ArkedGames.


    After which I noticed there was a new folder in the android SDK for thirdparty, that contained SSL, Crypto, and Websockets, I grabbed those libraries and linked them

    That's indeed the correct solution to the undefined symbols issue.

    Photon-cpp in Client SDK v5 uses those thirdparty libs internally for the new features websocket support and UDP datagram encryption, which are not available in v4.


    error: duplicate symbol: vpaes_cbc_encrypt

    [...]

    I am currently stumped and not sure how to proceed

    This error is caused by a known bug in the 5.0.0.3 release, that has been fixed in 5.0.1.0.

    Simply update to the latest version to fix it.

    also not sure if it is even worth upgrading the SDK at this point

    Don't worry. At this point you are nearly there. That's likely the last issue as any other potential issues would most likely have shown up already.

  • @Kaiserludi Hey there!

    Thank you very much for the swift response, I downloaded the new 5.0.1.0 sdk and it managed to package now! For my own sanity's sake, when did that new sdk version go live, I coulda swore I didn't see it yesterday when I downloaded the SDK.

  • Hi @ArkedGames.


    It went online yesterday evening around 9:30pm CET, so about 24 hours and 30 minutes ago.

  • @Kaiserludi Ah ok makes sense then haha. Thank you very much for the assistance!