android - SDL build system - When I link against `gnustl_shared` I get "Error: Cannot load library: ..." at runtime -
i'm trying compile c++ application android. use project android ndk comes sdl library.
when use app_stl := gnustl_static
compiles , runs fine, need gnustl_shared
because project uses multiple .so
files. app_stl := gnustl_shared
gives me following runtime error @ emulator:
i followed advice similar post , added
static {system.loadlibrary("gnustl_shared");}
to end of sdlactivity.java : class sdlmain
, had no visible effect.
if matters, libgnustl_shared.so
in libs/*/
directories.
what need fix gnustl_shared?
yeah, solved.
protected string[] getlibraries() { return new string[] { "gnustl_shared", // i've added line "sdl2", "main" }; }
Comments
Post a Comment