I know there are a lot of posts about the topic, this might be a duplicate, but I don\'t think so. My config is: Matlab R2014b, clang 3.4, Ubuntu 14.04, armadillo-4.600.4.
So I found out how to run it. Now it's segfaulting :/ And I'm fairly confident it's not the code itself, because I can compile and run the exact same code outside Matlab. I'll try to find out what's wrong, and if it's relevant, I'll post my adventures here later on.
For the running problem; it seems that Matlab uses the variable LD_RUN_PATH
for loading shared libraries at runtime. Appending my path ... /.local/arma/lib
to LD_RUN_PATH
using setenv
did the trick in my case. Cheers for your comments/answers!
Update: I finally solved this, the problem was due to an expected word-size mismatch (32/64 bits, ie int32_t
vs. int64_t
) between Matlab's BLAS/LAPACK libraries and Armadillo's calls. There are two solutions that I posted here.