MATLAB Answers

AA
0

opencv:imread error

Asked by AA
on 3 Feb 2018
Latest activity Commented on by AA
on 5 Feb 2018
Hello,
I am trying to run a LINUX system executable code from MATLAB's cmd window using system command. The executable is created by making a simple c++ code reading and writing an image using OpenCV, but unfortunately I get this error (./MeshStereo is the executable)-
./MeshStereo: symbol lookup error: ./MeshStereo: undefined symbol: ZN2cv6imreadERKNSt7_cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi
This error comes up on R2016a, but surprisingly not on R2017a. Can somebody please help me with resolving this error?
Thanks so much!

  4 Comments

Show 1 older comment
AA
on 5 Feb 2018
Dear Walter,
Thanks for your response. The executable works well if I run it from a bash terminal, but fails with the mentioned error when executed from matlab's command line. Do you think it removes the first suspicion?
Thanks!
You are having LD_LIBRARY_PATH (Mac) or DYLD_LIBRARY_PATH problems. Does it happen to be the case that you are using High Sierra or Sierra? Apple made some security changes to LD_LIBRARY_PATH
AA
on 5 Feb 2018
Dear Walter,
Sorry I am not that familiar with this. I am running my code on Ubuntu16.04 release. If you can guide me, I will be happy to provide you any further information. Thanks!

Sign in to comment.

0 Answers