Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Preshared library loading error

OP Sensejus

8th August 2014, 04:46 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Aug 2014
Hi all,
i am kinda new here, so this might not be the best section to post such topic, so if there is more appropriate section would be good if moderators would move it there.

Now lets go to the problem:
I have downloades master revision of AOSP from git. Compiled all OS source in linux. After that compiled native/cmds/screenshot source with mmm command, just before compiling changed so that it would produce me shared library with .so extension instead of executable.

This way I got predefined shared library which I attached to hello-jni sample app from android-ndk-r10.

Everything compiled and built in eclipse without any errors, and I install that app on physical device (tried on samsung galaxy s2 with android 4.1.2 and samsung galaxy s5 with android version 4.4) Everything here is still ok, but if i try opening that app i am getting such error:

Code:
08-08 15:32:33.832: E/AndroidRuntime(12001): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]:  1694 cannot locate '__strrchr_chk'...
and this happens when i try loading that screenshot library with such code:

Code:
static {
	System.loadLibrary("screenshot");
	}
If anyone has had similar problems or have any ideas what might be wrong, I am happy to hear it.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes