Skip to content
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

protobuf error #28

Open
aysegulucar2016 opened this issue Apr 30, 2017 · 4 comments
Open

protobuf error #28

aysegulucar2016 opened this issue Apr 30, 2017 · 4 comments

Comments

@aysegulucar2016
Copy link

Can I regenerate the proto files in caffe?

I tried the commands

selman@selman-Inspiron-7559:~/DeepTerrainRL/external/caffe$ protoc src/caffe/proto/caffe.proto --cpp_out=.

selman@selman-Inspiron-7559:/DeepTerrainRL/external/caffe$ mkdir include/caffe/proto
selman@selman-Inspiron-7559:/DeepTerrainRL/external/caffe$ mv src/caffe/proto/caffe.pb.h include/caffe/proto

but I received same error
~/DeepTerrainRL/external/caffe$ make
find: ‘tools’: No such file or directory
find: ‘examples’: No such file or directory
find: ‘matlab/+caffe/private’: No such file or directory
find: ‘examples’: No such file or directory
find: ‘tools’: No such file or directory
find: ‘matlab/’: No such file or directory
find: ‘examples’: No such file or directory
find: ‘tools’: No such file or directory
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.build_release/src/caffe/proto/caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is
^
.build_release/src/caffe/proto/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update

@xbpeng
Copy link
Owner

xbpeng commented May 4, 2017

i usually build on windows, so i'm not as familiar with linux, but this might help
BVLC/caffe#1761

@Neo-X
Copy link
Collaborator

Neo-X commented May 5, 2017

I think you need to run protoc from the "src/caffe/proto/" folder.

@aysegulucar2016
Copy link
Author

aysegulucar2016 commented May 5, 2017

I regenerated them in wındows. I used them in ubuntu 16.04.

But it did not work.
Thanks for replys

@xbpeng
Copy link
Owner

xbpeng commented May 5, 2017

i'm not sure if the generated files are platform dependent. You might want to try generating them in ubuntu and using them on ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants