Plugin cannot be found(dlopen error) by libkanzi.so when running on target board.
AnsweredWe want to make a plugin to achieve some custom functions by VS2019.
The source codes are built successfully, and the DLL and SO file of plugin are generated.
The DLL file can execute correctly with KanziStduio in Windows.
But plugin SO file for Android cannot be loaded correctly when running on target board.
The plugin SO file is included in APK and in the same folder with libkanzi.so, but libkanzi.so reports a dlopen error.
It looks like libkanzi.so is finding plugin so file in an unexpected folder.
I think some config files are not setup correctly, could you give us some help?
Error message(some information are changed to XXXXX):
01-01 04:43:16.943 E/AndroidRuntime( 6562): java.lang.UnsatisfiedLinkError: dlopen failed: library "../../../../../../lib/Android/Release/XXXXX/libXXXXX.so"
not found: needed by /data/app/~~hkevVn5gDGsvQyK8H8o4xQ==/com.rightware.kanzi.XXXXX-AF2PL13ec1SaLGcUt7BrXA==/base.apk!/lib/XXXXX/libkanzi.so in namespace classloader-namespace
-
The error you are seeing means that you have specified the link in Cmake, but the .so file is smissing there.
You dont need to put the plugin lib under the same path with the libkanzi.so.01-01 04:43:16.943 E/AndroidRuntime( 6562): java.lang.UnsatisfiedLinkError: dlopen failed: library "../../../../../../lib/Android/Release/XXXXX/libXXXXX.so"
You need to put the plugin .so under this path:"../../../../../../lib/Android/Release/XXXXX/libXXXXX.so"
0
Please sign in to leave a comment.
Comments
1 comment