报错:caffe-master/matlab/+caffe/private/caffe_.mexa64: undefined symbol:

用matlab执行.m文件时报错:

Invalid MEX-file '/home/dorothy/environment/caffe-master/matlab/+caffe/private
/caffe_.mexa64': /home/dorothy/environment/caffe-master/matlab/+caffe/private
/caffe_.mexa64: undefined symbol: 
_ZN2cv8imencodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaI

解决办法:

将usr/local/MATLAB/R2015b/bin/glnxa64中,以下三个文件删掉,最好备份一下以防万一:

libopencv_core.so.2.4
libopencv_highgui.so.2.4
libopencv_imgproc.so.2.4

 

你可能感兴趣的:(报错记录)