We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3393 - Cannot locate symbol "Java_org_libsdl_app_SDLActivity_onNativeDropFile"
Summary: Cannot locate symbol "Java_org_libsdl_app_SDLActivity_onNativeDropFile"
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.4
Hardware: ARM Android (All)
: P2 minor
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-16 22:40 UTC by Andrii Hontarenko
Modified: 2016-07-17 20:06 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrii Hontarenko 2016-07-16 22:40:23 UTC
I had ported my own application based on SDL2 to android.
And I found the issue when my android application loading:
W/System.err(29585): dlopen failed: cannot locate symbol "Java_org_libsdl_app_SDLActivity_onNativeDropFile" referenced by "libMyLib.so"...
In this case a have found the way to fix this issue by using psevdo patch before launch SDL2 build:
sed -i 's|void Java_org_libsdl_app_SDLActivity_onNativeDropFile|JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeDropFile|g' ./src/core/android/SDL_android.c
Hope, it can be usefull.
Comment 1 Philipp Wiesemann 2016-07-17 20:06:12 UTC
This patch is now https://hg.libsdl.org/SDL/rev/6ab154366a9b, thanks!