You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I built a swift lib by using your guide, but I'm getting "dlopen failed: empty/missing DT_HASH/DT_GNU_HASH" on android just when the lib is loaded to the memory. Did you encounter smth similar by chance?
Nevermind, we had to remove all occurances of lib dispatch and lib concurrency in this SDK (along with corresponding .swiftmodule files) and it worked
We also had do build in docker ubuntu x86_64 container on an intel machine (possibly works on m1 as well), because it fails on ubuntu aarch64 on m1 macs
Hey! Thanks for doing this!
So I built a swift lib by using your guide, but I'm getting "dlopen failed: empty/missing DT_HASH/DT_GNU_HASH" on android just when the lib is loaded to the memory. Did you encounter smth similar by chance?
Build command:
/toolchain/swift-5.6-RELEASE-ubuntu20.04/usr/bin/swift build -v -c release --destination /toolchain/swift-android-sdk/android-aarch64.json -Xlinker -rpath -Xlinker /toolchain/swift-5.6-android-aarch64-24-sdk/usr/lib/swift/android
I found this question with a possible fix for c++. Maybe there's a swift compiler setting like this? Couldn't find one.
https://stackoverflow.com/questions/28638809/android-ndk-unsatisfiedlinkerror-dlopen-failed-empty-missing-dt-hash
The text was updated successfully, but these errors were encountered: