hszhao / PSPNet

Pyramid Scene Parsing Network, CVPR2017.
https://hszhao.github.io/projects/pspnet
Other
1.59k stars 545 forks source link

"Invalid MEX-file" error during run.sh #49

Closed gopi77 closed 7 years ago

gopi77 commented 7 years ago

error during run.sh: Invalid MEX-file '/home/gopi/PSPNet/matlab/+caffe/private/caffe_.mexa64': Missing symbol '_ZN6google8protobuf11MessageLite15ParseFromStringERKNSt7cxx1112basic_stringIcSt11chartraitsIcESaIcEEE' required by '/home/gopi/PSPNet/matlab/+caffe/private/caffe.mexa64' Missing symbol '_ZN6google8protobuf14MessageFactory29InternalRegisterGeneratedFileEPKcPFvRKNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE' .....


Note: The output of ldd -d /home/gopi/PSPNet/matlab/+caffe/private/caffe_.mexa64 below.

libmx.so => not found
libmex.so => not found

Anyone faced this issue?

gopi77 commented 7 years ago

Found the solution here, https://github.com/vlfeat/matconvnet/issues/937 changes:

  1. open terminal window (Ctrl + Alt + t ) & gedit .bashrc
  2. add this line: export LD_PRELOAD=$LD_PRELOAD:/usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libprotobuf.so.9
  3. close, reopen terminal & Run the evaluation script ./run.sh