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

How can I regenerate the proto files in caffe? #27

Open
aysegulucar2016 opened this issue Apr 29, 2017 · 9 comments
Open

How can I regenerate the proto files in caffe? #27

aysegulucar2016 opened this issue Apr 29, 2017 · 9 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 Apr 29, 2017

i think you can use caffe/scripts/GeneratePG.bat to generate those.

@aysegulucar2016
Copy link
Author

There is no
external/caffe/scripts/GeneratePG.bat.

Where is it?

@xbpeng
Copy link
Owner

xbpeng commented Apr 29, 2017

sorry it should be GeneratePG.bat. I think you can get it from here:
https://initialneil.wordpress.com/2015/01/11/build-caffe-in-windows-with-visual-studio-2013-cuda-6-5-opencv-2-4-9/
This might only be for windows though. What OS are you building this on?

@aysegulucar2016
Copy link
Author

aysegulucar2016 commented Apr 29, 2017

I am usıng ubuntu 16.04.

@Neo-X
Copy link
Collaborator

Neo-X commented May 5, 2017

You can protobuf in the cafe folder with the protobuf files to regenerate the header files. If you are on Linux you already installed it.

@agataf
Copy link

agataf commented Jul 12, 2017

What do you mean by "protobuf in the cafe folder"? What command would you use to generate the file?

@StrugglingXu
Copy link

Hello,I am using ubuntu16.04 to build the source code for caffe that came in the external directory ,The following error occurs after executing the 'make' command.How do i solve this problem?

In file included from src/caffe/solvers/sgd_solver.cpp:5:0:
./include/caffe/util/hdf5.hpp:6:18: fatal error: hdf5.h: 没有那个文件或目录
#include "hdf5.h"
^
compilation terminated.
Makefile:572: recipe for target '.build_release/src/caffe/solvers/sgd_solver.o' failed
make: *** [.build_release/src/caffe/solvers/sgd_solver.o] Error 1

@Neo-X
Copy link
Collaborator

Neo-X commented Jun 7, 2018

@xyk1994 Have you installed the hdf5 library via apt-get?

@jaskiewiczm
Copy link

I saw another thread with this. It didn't work but I'm adding it here anyway in case someone can make it work.
protoc src/caffe/proto/caffe.proto --cpp_out=.

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

6 participants