Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: ANDROID_DL_LIBRARY points to the wrong libdl #3237

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

CMake: ANDROID_DL_LIBRARY points to the wrong libdl #3237

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments


Copy link

SDLBugzilla commented Feb 11, 2021

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

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.



On 2019-08-21 10:22:55 +0000, Sylvain wrote:

Was fixed in bug 3918

*** This bug has been marked as a duplicate of bug 3918 ***

@SDLBugzilla SDLBugzilla added bug duplicate labels Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant