Considerations for using Caffe as your own library under Ubuntu

Source: Internet
Author: User

Caffe An example of an issue that does not find the header file:

/usr/local/include/caffe/blob.hpp:9:34:fatal error:caffe/proto/caffe.pb.h:no such file or directory
#include "Caffe/proto/caffe.pb.h"

Caffe cannot find the problem instance for the library file (the keyword has no member):

Error: ' Class caffe::memorydatalayer<float> ' has no member named ' Addmatvector '

The key point is that you can use the CD build and then CMake after you finish the make all in the official step. , then make install, or install it directly with the Cmake-make-make install trilogy

Make install before you can put the library files in the Caffe in the Ubuntu system, and then use Find_package to find

Cmake_minimum_required (VERSION 2.8.8) find_package (Caffe) include_directories (${caffe_include_dirs}) add_ Definitions (${caffe_definitions}) # Ex.-dcpu_only add_executable (caffeinated_application main.cpp) target_link_ Libraries (Caffeinated_application ${caffe_libraries})

Considerations for using Caffe as your own library under Ubuntu

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.