-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot find #include "caffe/proto/caffe.pb.h" #1761
Comments
Here's the exact output I get, ajay@ajay-h8-1170uk: and the cmake_minimum_required (VERSION 2.6) option(CPU_ONLY "Use CPU only for Caffe" ON) #include_directories(/usr/local/caffe/include) include_directories(/home/ajay/bin/caffe/include) if(USE_CUDNN) add_executable(dqn dqn_main.cpp dqn.cpp) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3 -march=native") target_link_libraries(dqn caffe) It definitely seems like its a problem with how I'm installing |
SOLVED BY MUUPAN!! You need to generate caffe.pb.h manually using protoc as follows. In the directory you installed Caffe to protoc src/caffe/proto/caffe.proto --cpp_out=. |
I still get this issue and need to refer back to the above fix. I'm on ubuntu 15.10 if that matters. Seems like this should be fixed since it's an old problem and easy to run into. Kinda makes the system seem flakey in my view. |
Fix Segmaentation fault on GPU Add Back-ends Improve preprocessing efficiency Fix issu with #include "caffe/proto/caffe.pb.h" in caffe, BVLC/caffe#1761
For anyone who still encounters this issue: Building with cmake, only use the files in the |
Thank you @AjayTalati 👍 |
@AjayTalati When I tried to generate this file, I got an error "Expected field name". How can I save this problem? Should I upgrade protobuf? |
Wow, good job! Save my time. |
I don't understand how to create this file from google proto buffers? I've tried three time to reinstall caffe? From reading other threads it seems that it should be built when I compile
caffe
?I'm trying to compile a project with a
CMakeLists.txt
, and I keep getting this error. I just don't get it?The text was updated successfully, but these errors were encountered: