This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
fatal error: caffe/proto/caffe.pb.h: No such file or directory #105
Closed
Description
When I ran make all --jobs=4
I got:
In file included from ./include/caffe/util/device_alternate.hpp:40:0,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/net.hpp:10,
from src/caffe/solver.cpp:7:
./include/caffe/util/cudnn.hpp:8:34: fatal error: caffe/proto/caffe.pb.h: No such file or directory
#include "caffe/proto/caffe.pb.h"
^
compilation terminated.
$ protoc src/caffe/proto/caffe.proto --cpp_out=.
$ mkdir include/caffe/proto
$ mv src/caffe/proto/caffe.pb.h include/caffe/proto
Should those steps be in the Makefile?
Activity
lukeyeager commentedon May 14, 2015
Were you following the install instructions in the DIGITS README, or the default Caffe instructions? I've never run into that issue before (though a little googling shows that other people have). That step is definitely not necessary for everyone, so I'm not going to add it to the install instructions. Do you have any clues as to why you ran into this problem and I (and most others) didn't?
cancan101 commentedon May 14, 2015
Following the DIGITS README.
Not sure and when I built (nvidia fork of) caffe on another box, I did not observe.
Could there be some race with the parallel build?
lukeyeager commentedon May 14, 2015
I'm not sure what you mean. Were you building the multi-GPU branch of caffe? That's not going to work with DIGITS (yet).
cancan101 commentedon May 14, 2015
No, the normal fork with standard build instructions. I was just spitballing if the make has some issue in when is runs
protoc
.lukeyeager commentedon May 15, 2015
Yep, I think you're right. According to @moconnor725, this is a problem with the parallel build path in caffe. Try it without the
--jobs=4
flag and see if you still get the error.sallymmx commentedon Mar 21, 2016
Also solved my problem, thank you!
@cancan101
yhlleo commentedon May 16, 2016
I solved it by inputting the commands:
seashell9 commentedon Mar 16, 2017
@yhlleo I try your method and it works. It is beacause the first time i try to bulid caffe, i dont use 'sudo', and so I get this error. Then I add 'sudo' in front of the command. But I still get the error, beacause the wrong building is still in the caffe folder. So I need to 'make clean' before 'sudo make all'.
Po-Hsuan-Huang commentedon Mar 29, 2017
@seashell9 Your answer helped me as well. I didn't include sudo and I got the error. I am not sure why. make all -j8 is also better than make -j8. Thanks.