Jump to content
Android Forum - A Community For Android Users and Enthusiasts

Preshared library loading error


Sensejus
 Share

Recommended Posts

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:

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:

static {
        System.loadLibrary("screenshot");
    }

If anyone has had similar problems or have any ideas what might be wrong, I am happy to hear it.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...