I figure this question comes up often, but here goes: I have a testMyFoo binary that
- Is installed on the phone's
/data/local/tmp/
path - has appropriate execute permissions
- requires a series of shared-object libraries (one of them being libc++_shared.so)
- set the LD_LIBRARY_PATH variable with the required search paths
- is built with the correct toolchain+sysroot for the phone (arm64-v8a/android33)
So when I try to execute ./testMyFoo
:
- It seems to execute
- It finds my dependent shared-object libs
- It fails to load libc++_shared.so
I get this error:
CANNOT LINK EXECUTABLE "./testMyFoo": couldn't map "/storage/emulated/0/MLZ/mlz-libs/libc/libc++_shared.so" segment 1: Permission denied
From what I've read online, it seems I have to run this through an Android studio project. I would like to avoid that (for now), and just run my program directly. Any suggestions?
Thanks, Charles.