Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. Thread Author  Thread Author    #1  

    Default Preshared library loading error

    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.

Similar Threads

  1. Error retrieving information from server [RPC:S-7:AEC-0]
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 10-27-2014, 01:41 PM
  2. QR code generation library
    By UtilityFGames in forum General Help and How To
    Replies: 1
    Last Post: 08-08-2014, 10:48 AM
  3. Error in Server socket in service
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 08-07-2014, 09:25 AM
  4. HTC android phone with 960 error
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 08-07-2014, 08:36 AM
  5. Google Calendar Sync Error Message and Duplicate Contacts
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 08-06-2014, 03:45 PM

Posting Permissions