Ubuntu under Caffe configuration Matlab interface __caffe

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.