opencv:imread error
이전 댓글 표시
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
Walter Roberson
2018년 2월 3일
cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)
is the expanded name for that routine. Possibly the executable is not linked against libcv or libcv is not on LD_LIBRARY_PATH
AA
2018년 2월 5일
Walter Roberson
2018년 2월 5일
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
2018년 2월 5일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 OpenCV Support에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!