Hello unity-community,
i got some trouble with native Plugins.
I compiled the pointCloudLib (PCL) into a static and dynamic lib.
Both of them can't be found when calling them like your Dokumentation descripes. (https://docs.unity3d.com/Manual/NativePlugins.html)
Tryed import with:
[DllImport("libnative.so")]
private static extern float add(float x, float y);
[DllImport("native")]
private static extern float add(float x, float y);
With both i get same result:
System DllNotFoundException: libnative.so / native
at (wrapper managed-to-native) CallNativeCode: add(single,single)
at CallNativeCode._callAdd (Single x, Single y) [0x00000] in :0
at Thesis.Scripts.AppController.Update () [0x00000] in :0
Even your sample AndroidNativePlugin-file doesn't work for me.
(https://docs.unity3d.com/Manual/AndroidNativePlugins.html)
Maybe I'm doing something wrong.
I tryed with followed Unity-versions:
- 2018.3.0f2
- 2018.2.15f
- 2017.4.17f1
Thanks in edvance for helping me
Yours sincerely
Stefan
↧