This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.0 Reported for operating system, platform: Android (All), All
Comments on the original bug report:
On 2019-04-12 12:45:39 +0000, Tony Wasserka wrote:
The Android NDK developers have restructured their toolchain and CMake toolchain file recently. Attempting to build SDL2 with CMake will now cause it to link against the static version of libdl, which is a stub implementation though: dlopen & co aren't actually supported in libdl.a (see android/ndk#929 (comment)). As a result, SDLActivity will fail to load any shared libraries at runtime.
The fix suggested in the NDK ticket is to use
find_library(ANDROID_DL_LIBRARY NAMES libdl.so dl)
in SDL's main CMakeLists.txt. I confirmed this properly picks up the shared library locally.
On 2019-04-12 21:16:28 +0000, Tony Wasserka wrote:
Apparently this is considered a bug in the NDK, so it might be worth waiting out if the NDK folks can come up with a fix that resolves the need for the SDL workaround mentioned above.
On 2019-05-18 18:48:54 +0000, Ryan C. Gordon wrote:
Tagging a bunch of bugs with "target-2.0.10" so we have a clear list of things to address before a 2.0.10 release.
Please note that "addressing" one of these bugs might mean deciding to defer on it until after 2.0.10, or resolving it as WONTFIX, etc. This is just here to tell us we should look at it carefully, and soon.
If you have new information or feedback on this issue, this is a good time to add it to the conversation, as we're likely to be paying attention to this specific report in the next few days/weeks.