After the MATLAB path in the Makefile.config file is changed to the path of its own installation, using the command make Matcaffe always unsuccessful, rage sudo make cleam, the result of the cleanup solution succeeded. Details are as follows:
My GCC version is 4.8.7,matlab version 2013b, just started with Matcaffe times wrong GCC version is too high, must use 4.4.x version, helpless, the Internet to find solutions:
$sudo apt-get Install gcc-4.4 $sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.4 40 (here "40" is the priority, the greater the value the higher the priority The higher the level) $sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.6 60 (the native is set to a higher priority with 60)
Select the system default GCC $sudo update-alternatives --config gcc selection path priority status------------------ ------------------------------------------* 0 /usr/bin/gcc-4.6 60 auto mode 1 /usr/bin/gcc-4.4 40 manual mode 2 / usr/bin/gcc-4.6 60 manual mode default system with the highest priority, here we choose 1 to be able to g++ Install ditto, just to change gcc for g++ only. At this point, make the Matcaffe must be sudo before, or the error. The remaining process is as follows: sudo make clean; The results of the make ' make test ' make runtest make Matcaffe make Pycaffe are shown as follows: whz@whz-pc:~/downloads/caffe-master$ make Matcaffe
MEX Matlab/caffe/matcaffe.cpp
whz@whz-pc:~/downloads/caffe-master$ make Pycaffe
Cxx/ld-o python/caffe/_caffe.so Python/caffe/_caffe.cpp
Touch python/caffe/proto/__init__.py
Protoc (python) Src/caffe/proto/caffe.proto