Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not load library "libstlport_shared.so" needed by "libJniBitmapOperationsLib.so"; caused by load_library(linker.cpp:769): too small to be an ELF executable: libstlport_shared.so #26

Closed
SZn007 opened this issue Dec 7, 2015 · 4 comments

Comments

@SZn007
Copy link

SZn007 commented Dec 7, 2015

load_library(linker.cpp:769): too small to be an ELF executable: libstlport_shared.so
E/linker: soinfo_link_image(linker.cpp:1647): could not load library "libstlport_shared.so" needed by "libJniBitmapOperationsLib.so"; caused by load_library(linker.cpp:769): too small to be an ELF executable: libstlport_shared.so
E/dalvikvm: dlopen("/data/app-lib/com.example.jnibitmapoperationstest-2/libJniBitmapOperationsLib.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1647): could not load library "libstlport_shared.so" needed by "libJniBitmapOperationsLib.so"; caused by load_library(linker.cpp:769): too small to be an ELF executable: libstlport_shared.so
E/AndroidRuntime: FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1647): could not load library "libstlport_shared.so" needed by "libJniBitmapOperationsLib.so"; caused by load_library(linker.cpp:769): too small to be an ELF executable: libstlport_shared.so
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:514)
at com.jni.bitmap_operations.JniBitmapHolder.(JniBitmapHolder.java:13)
at com.example.jnibitmapoperationstest.MainActivity.(MainActivity.java:25)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
at android.app.ActivityThread.access$600(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5371)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
12-07 10:59:26.527 529-547/? E/AppErrorDialog: Failed to get ILowStorageHandle instance
12-07 10:59:27.005 529-13755/? E/AEE/LIBAEE: shell: cant create socket with aed: Connection refused

@SZn007
Copy link
Author

SZn007 commented Dec 7, 2015

static {
System.loadLibrary("stlport_shared");
System.loadLibrary("JniBitmapOperationsLibrary");
}

@SZn007
Copy link
Author

SZn007 commented Dec 7, 2015

the apk crash on huawei Y511-T00 and with the code above the crash disappear

@AndroidDeveloperLB
Copy link
Owner

Sadly I've failed (multiple times) to import my own project, to Eclipse and to Android Studio.
What I suggest is to try out RenderScript for the same operations. Maybe it can help to perform the same things.

@AndroidDeveloperLB
Copy link
Owner

I've finally succeeded importing, and the project works fine. no idea why it won't work on some devices. can't confirm.
i close this because i have no way to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants