I'm having trouble finding why this library (matio) isn't working for me. In my Makefile I have this:
LIBS += -L/home/brian/.../matio-1.5.6/src/.libs/ -lmatio
When I attempt to run my code (links fine) I get this error:
error while loading shared libraries: libmatio.so.4: cannot open shared object file: No such file or directory
libmatio.so.4 exists in the directory specified by the -L flag.
I built the library and it seems to go through make check with only a handful writing errors (which is fine as I only need it for reading).
Things I've tried:
- Specifying the name (i.e.
-l:libmatio.so.4.0.2) - Adding the path to
LD_LIBRARY_PATH - Adding the path as a line in
/etc/ld.so.confand runsudo ldconfig - Adding a new file in
/etc/ld.so.conf.dwith the path and runsudo ldconfig
(When I run ldconfig -p | grep matio nothing returns. Am I doing something wrong with ldconfig?)