http://blog.csdn.net/weixin_40416637/article/details/78783791

$ protoc src/caffe/proto/caffe.proto --cpp_out=.

$ sudo mkdir include/caffe/proto

$ sudo mv src/caffe/proto/caffe.pb.h include/caffe/proto