I'm writing an android plugin for Unity, libSolidCapture.so. This plugin is using a shared library, named liblo.so, an OSC library When I'm trying to launch the application on an android device, I get the following error :
Unable to load library '/libSolidCapture.so', native render plugin
support disabled: java.lang.UnsatisfiedLinkError: dlopen failed:
library "liblo.so.7" not found
then :
DllNotFoundException: SolidCapture
When i build liblo for android, liblo.so.7 is created, but when I try to drag and drop it in Unity, it seems to be considered as a folder, and not a library !
When I build an apk, Unity includes liblo.so, but not liblo.so.7
Do you have any idea of what I'm doing wrong ?
Related
I have cross-compiled a gstreamer plugin for android. The .so file is installed in the same place as the other gstreamer plugins. I then build an android app having added the cross-compiled plugin name to my Android.mk file (the plugin name is passed to a seperate gstreamer-1.0.mk file to create the libgstandroid.so which is installed alongside the app on the phone).
I'm not yet using the plugin in my application source code, I am just attempting to build/include it in my app as a first step. When the app loads it has a FATAL EXCEPTION:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libgstplugin.so" not found
I'm not sure how to debug; it seems the plugin isn't being linked correctly into the libgstandroid.so?
I was able to solve this problem by building a static plugin library (and deleting the existing shared library as the gstreamer make process seems to choose the .so by default)
I've been working on an Ubertesters ANE for Android/iOS, starting with Android, and I've managed to get it to package the Ubertesters sdk as a depedency however when I build my game I get this as a result.
aapt tool failed:C:\Users**\AppData\Local\Temp\4cefa32a-ef1e-4f66-ba1c-06c2b 6a3289c\res\values\colors.xml: error: Duplicate file. C:\Users**\AppData\Local\Temp\3c65dec5-4ebe-4b94-b90c-c3164cdefb12 \captive_runtime_res\values\colors.xml: Original is here.
Suggestions/Thoughts?
When I try to load native library into Android project I receive exception with following message:
Cannot load library: reloc_library[1286]: 1830 cannot locate '__gnu_thumb1_case_uqi'...
Library was built for Android, with using 4.6 toolchain.
What might be the reason of it? Thanks in advance!
I want to make a pdf viewer program in android phone. So, I purchased the mupdf library.
I built the mupdf c++ classes and have 'libmibookreader.so' file.
And I also compiled the native function classes.
Then, I tried to run the application , but I have some errors.
Tag Message
AndroidRuntime java.lang.UnsatisfiedLinkError: open
i think you had not load library properly or may be you had not given the name properly in System.load("libname");
What is your android version?
on 2.1 and before, the lib libjnigraphics.so is missing and the mupdflib need it
I am trying to make a project to read pdf in android phone.
So, I created the normal Android Project and installed the android-ndk-r6-windows.
And I built the 'libmibookreader.so' and set the native functions in my java class.
But after compiling my project I have a serious Error.
Caused by: java.lang.UnsatisfiedLinkError: Library mibookreader not found
Why this error caused?
I really don't know. I referenced the address of "http://flytgr.thoth.kr/blog/697421".
I followed down as the reference document described.
This is because your library was not loaded by the kernel. Are you sure that you placed your library inside the libs/armeabi/ folder of your project?
Check the logcat when you deploy your application, you should see some messages there that your library was loaded.
If you don't you could also try to use System.loadLibrary(libPath); to manually load your library.