I have a Unity project with an external library (Eigen) that can be built separately as DLL. I'm trying to include the DLL building it with arm64 toolchain, but I get this error when I test the app:
Unable to load library '/data/app/com.DefaultCompany.myAPP/lib/arm64/libEigen.so', native render plugin support disabled: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.DefaultCompany.myAPP/lib/arm64/libEigen.so" has unexpected e_machine: 62
10-03 16:02:02.636 3963 3978 E Unity : Unable to find Eigen
10-03 16:02:02.652 3963 3978 E Unity : DllNotFoundException: Unable to load DLL 'Eigen': The specified module could not be found.
It looks a problem of the ELF, but I'm not an expert. Do you know how I should build an external library under linux that needs to be included in a Unity project? (I follow this for the ARM64 https://dev.to/offlinemark/how-to-set-up-an-arm64-playground-on-ubuntu-18-04-27i6)