caffe icon indicating copy to clipboard operation
caffe copied to clipboard

After all the compilation as suggesteed at the website, I got following error?

Open erogol opened this issue 12 years ago • 2 comments

I followed all the instruction as written at the website but as I try to run matcaffe_demo I got ;

Invalid MEX-file '/media/retina18/Elements/Research/MyLibraries/machine_learning/caffe/matlab/caffe/caffe.mexa64': /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0: undefined symbol: FT_Face_GetCharVariantIndex

Is this a bug or do you have any solution or suggestion ?

erogol avatar Jul 09 '14 13:07 erogol

This is because matlab has its own versions of libraries inside, which conflict with system libraries. To look what libraries are conflicting you should compare !ldd caffe.mexa64 in matlab and ldd caffe.mexa64 in bash shell and provide them calling matlab with LD_PRELOAD, for example:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libfreetype.so.6 matlab

This particular line should solve your problem.

szagoruyko avatar Jul 11 '14 06:07 szagoruyko

@szagoruyko - Thanks a ton. The tip helped me too. I think the issue can be closed now.

dasabir avatar Jul 18 '14 02:07 dasabir