Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid MEX-file '/home/hp/caffe/matlab/+caffe/private/caffe_.mexa64': /usr/lib/libgdal.so.1: undefined symbol: _ZN11xercesc_3_111InputSource11setEncodingEPKt #5984

Open
binialias opened this issue Oct 16, 2017 · 7 comments

Comments

@binialias
Copy link

I am getting the below error when i issue the make mattest command

I am using the following version of softwares
ubuntu : 16.04
Matlab 2016a
gcc and g++ 4.9
OpenCV 3.2

Invalid MEX-file '/home/hp/caffe/matlab/+caffe/private/caffe_.mexa64':
/usr/lib/libgdal.so.1: undefined symbol:
_ZN11xercesc_3_111InputSource11setEncodingEPKt

Error in caffe.set_mode_cpu (line 5)
caffe_('set_mode_cpu');

Error in caffe.run_tests (line 6)
caffe.set_mode_cpu();

How to solve this issue?

@variantf
Copy link

#3934 (comment)

@tony-ch
Copy link

tony-ch commented Jan 20, 2018

@binialias Have you found a solution?

@13293824182
Copy link

@tony-ch Have you found a solution?

@tony-ch
Copy link

tony-ch commented Mar 15, 2018

@13293824182 I got the error when I used ubuntu 17.10 and matlab 2016a, now I use 16.04 and matlab 2015b, the error is gone.

@13293824182
Copy link

@tony-ch The problem didn't appear after the change? But I use 16.04 and matlab 2015b and i don't solve this problem?

@tony-ch
Copy link

tony-ch commented Mar 15, 2018

@13293824182 Yes, the problem didn't appear after the change. Does the package "matlab-support" matter? I installed that package and there were no other changes.

@kjohew
Copy link

kjohew commented Jun 12, 2018

I have solved this problem by replace the OpenCV3.2 by OpenCV2.4. The reason is that opencv3.X call the libgdal.so and libgdal.so call system's libxercesc.so, which is conflict with the matlab's libxercesc.so, but opencv2.x doesn't need libgdal.so and will not lead this error.

My software version is:
ubuntu : 17.10
Matlab 2016b
gcc and g++ 6.4
OpenCV2.4.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants