I don't have much experience with Linux OS.
I managed to use ctypes in Python to access a function in Digital Persona SDK DLL file using this code:
import ctypes
dpfjDll = ctypes.CDLL("dpfj.dll")
.....
Testing of calling the function worked perfectly on my windows machine, but when I deployed the app to our linux server, I got the following error:
OSError: dpfj.dll: cannot open shared object file: No such file or directory
Any idea what is going on?
Update: I tried for testing to set the absolute path temporarily for the file, and now I am getting this error message:
OSError: /home/......./main/helper/dpfj.dll: invalid ELF header
I fixed the problem by installing Digital Persona SDK on our Linux server and used the following code for loading the library:
import ctypes
dpfjDll = ctypes.CDLL("libdpfj.so.3.1.0")