I am trying to compile mex files that use the Paralution library in a Linux (Ubuntu14.04) system.
I compiled the given example in ‘paralution/src/plug-ins/MATLAB’ but when I run it in Matlab I get:
Invalid MEX-file ‘/paralution-1.1.0/src/plug-ins/MATLAB/paralution_pcg.mexa64′:
libparalution.so: cannot open shared object file: No such file or directory
My guess is that the Paralution library is not properly linked. I used the make file provided to compile and also did it manually from within Matlab, but got the same error in both cases.
Also I have added the Paralution library path to the system’s libraries (I can verify it because the non-matlab examples are running fine).