I am able to build and deploy the app, but when I run it the shared object library fails to load.
In SDLActivity.SDLMain:
Log.v("SDL", "Running main function " + function + " from library " + library);
SDLActivity.nativeRunMain(library, function, arguments);
Log.v("SDL", "Finished main function");
nativeRunMain calls dlopen, which returns a null handle and I get this error:
03-23 15:54:20.564 12504 12530 E SDL : nativeRunMain(): Couldn't load library libSimpleExample.so
I checked the library name being passed in to dlopen. It definitely exists in the correct arch in the APK. I'm wondering if this is an issue with my NDK version. I'm using the latest stable (19.2.5345600) though I got the same behavior with 19.1.5304403.
Here's a gist with the readelf dump: https://gist.github.com/tbrosman/73d0118f8c5c5f4ea4df9b73b62fbd2a
Any pointers on how to debug this would be greatly appreciated!
I am able to build and deploy the app, but when I run it the shared object library fails to load.
In SDLActivity.SDLMain:
nativeRunMain calls dlopen, which returns a null handle and I get this error:
I checked the library name being passed in to dlopen. It definitely exists in the correct arch in the APK. I'm wondering if this is an issue with my NDK version. I'm using the latest stable (19.2.5345600) though I got the same behavior with 19.1.5304403.
Here's a gist with the readelf dump: https://gist.github.com/tbrosman/73d0118f8c5c5f4ea4df9b73b62fbd2a
Any pointers on how to debug this would be greatly appreciated!