Matcaffe - Matlab R2016b - Ubuntu 16.04

1,451 views
Skip to first unread message

kirt...@gmail.com

unread,
Nov 9, 2016, 7:39:17 AM11/9/16
to Caffe Users
I have been trying to compile matcaffe in Ubuntu 16.04. Caffe compiles successfully with gcc 5. However, MATLAB R2016b is compatible with gcc 4.9, I got following warning during compilation (using make matcaffe):
MEX matlab/+caffe/private/caffe_.cpp Building with 'g++'. Warning: You are using gcc version '5.4.0'. The version of gcc is not supported. The version currently supported with MEX is '4.9.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release. MEX completed successfully.

Even though the MEX file is created, I can not use it from MATLAB because it gives an error like

Invalid MEX-file 'blablabla/caffe/matlab/+caffe/private/caffe_.mexa64':
 
/blablabla/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found

I have tried many things, including
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
and
sudo rm /blablabla/sys/os/glnxa64/libstdc++.so.6
sudo ln
-s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /blablabla/sys/os/glnxa64/libstdc++.so.6

but no success.
Anybody faced with this problem and have an idea?

Amir Abdi

unread,
Dec 3, 2016, 5:18:51 PM12/3/16
to Caffe Users
same problem here. Did you solve this?

Muhammad Usman Shahid

unread,
Apr 11, 2017, 2:56:47 PM4/11/17
to Caffe Users
I am having exactly the same problem. Is there a fix?

Amir Abdi

unread,
Apr 11, 2017, 4:33:14 PM4/11/17
to Muhammad Usman Shahid, Caffe Users
I don't clearly recall how I solved it, but as far as I remember, I enforced it to build with the older version of gcc. I believe it had something to do with the makefile.config. 

Kindly,
Amir
--
You received this message because you are subscribed to a topic in the Google Groups "Caffe Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/caffe-users/-eFEdJCGgzc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/a69b3ed9-a243-482d-8273-0d6f10ed888f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages