Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Invalid MEX-file on Ubuntu 10.10 #63

Closed
peugas opened this issue Mar 18, 2013 · 2 comments
Closed

Invalid MEX-file on Ubuntu 10.10 #63

peugas opened this issue Mar 18, 2013 · 2 comments

Comments

@peugas
Copy link

peugas commented Mar 18, 2013

I'm getting:

Invalid MEX-file '/home/tiago/Documents/MATLAB/mexopencv/+cv/findChessboardCorners.mexa64': libopencv_calib3d.so.2.4: cannot open shared object file: No such file or directory.

even with:

LD_PRELOAD=/usr/lib/libstdc++.so.6 matlab

any idea of what's wrong?
I'm on Ubuntu 10.10, Matlab R2010b and opencv 2.4.3

@kyamagu
Copy link
Owner

kyamagu commented Mar 18, 2013

Required shared object varies. Check you installed opencv in the standard path, such as /usr/local/, and you can load any shared objects in matlab. After that, use ldd to locate which library is failing. See #62

@peugas
Copy link
Author

peugas commented Mar 18, 2013

I found what was wrong!
I seems that I accidentally skipped one step at the end of OpenCV installation:

$ export LD_LIBRARY_PATH=/usr/local/lib

After this, everything went smooth

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants