make mattest 报错

xiaoxiao2021-02-28  92

MEX-file '/home/zhangjiqing/caffe/matlab/+caffe/private/caffe_.mexa64' 无效: /home/zhangjiqing/caffe/matlab/+caffe/private/caffe_.mexa64: undefined symbol: _ZN2cv8imencodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_11_InputArrayERSt6vectorIhSaIhEERKSB_IiSaIiEE。 出错 caffe.set_mode_cpu (line 5) caffe_('set_mode_cpu'); 出错 caffe.run_tests (line 6) caffe.set_mode_cpu();

make mattest 报出以上错误。

简单粗暴的解决方法就是将 usr/local/MATLAB/R2016b/bin/glnxa64 中 以下三个文件删除。(建议删除前进行备份)

libopencv_core.so .2 .4 libopencv_highgui.so .2 .4 libopencv_imgproc.so .2 .4 删除后make mattest 正常通过。

转载请注明原文地址: https://www.6miu.com/read-65662.html

最新回复(0)