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

Error while building the custom caffe repo #150

Open
ra1995 opened this issue Nov 26, 2017 · 1 comment
Open

Error while building the custom caffe repo #150

ra1995 opened this issue Nov 26, 2017 · 1 comment

Comments

@ra1995
Copy link

ra1995 commented Nov 26, 2017

Hi,
I am trying to build caffe but get the following errors after make:

[ 2%] Built target proto
Scanning dependencies of target caffe
[ 2%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/upgrade_proto.cpp.o
/home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp: In function ‘bool caffe::UpgradeV0LayerParameter(const caffe::V1LayerParameter&, caffe::V1LayerParameter*)’:
/home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp:196:79: error: no matching function for call to ‘caffe::ConvolutionParameter::set_pad(google::protobuf::uint32)’
layer_param->mutable_convolution_param()->set_pad(v0_layer_param.pad());
^
In file included from /home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp:9:0:
/usr/local/include/caffe/proto/caffe.pb.h:16543:13: note: candidate: void caffe::ConvolutionParameter::set_pad(int, google::protobuf::uint32)
inline void ConvolutionParameter::set_pad(int index, ::google::protobuf::uint32 value) {
^
/usr/local/include/caffe/proto/caffe.pb.h:16543:13: note: candidate expects 2 arguments, 1 provided
/home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp:207:40: error: no matching function for call to ‘caffe::ConvolutionParameter::set_kernel_size(google::protobuf::uint32)’
v0_layer_param.kernelsize());
^
In file included from /home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp:9:0:
/usr/local/include/caffe/proto/caffe.pb.h:16573:13: note: candidate: void caffe::ConvolutionParameter::set_kernel_size(int, google::protobuf::uint32)
inline void ConvolutionParameter::set_kernel_size(int index, ::google::protobuf::uint32 value) {
^
/usr/local/include/caffe/proto/caffe.pb.h:16573:13: note: candidate expects 2 arguments, 1 provided
/home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp:228:36: error: no matching function for call to ‘caffe::ConvolutionParameter::set_stride(google::protobuf::uint32)’
v0_layer_param.stride());
^
In file included from /home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp:9:0:
/usr/local/include/caffe/proto/caffe.pb.h:16603:13: note: candidate: void caffe::ConvolutionParameter::set_stride(int, google::protobuf::uint32)
inline void ConvolutionParameter::set_stride(int index, ::google::protobuf::uint32 value) {
^
/usr/local/include/caffe/proto/caffe.pb.h:16603:13: note: candidate expects 2 arguments, 1 provided
/home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp: In function ‘caffe::V1LayerParameter_LayerType caffe::UpgradeV0LayerType(const string&)’:
/home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp:480:12: error: ‘V1LayerParameter_LayerType_CROP’ was not declared in this scope
return V1LayerParameter_LayerType_CROP;
^
/home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp: In function ‘const char* caffe::UpgradeV1LayerType(caffe::V1LayerParameter_LayerType)’:
/home/rishabh/Downloads/crfasrnn/caffe/src/caffe/util/upgrade_proto.cpp:858:8: error: ‘V1LayerParameter_LayerType_CROP’ was not declared in this scope
case V1LayerParameter_LayerType_CROP:
^
src/caffe/CMakeFiles/caffe.dir/build.make:20997: recipe for target 'src/caffe/CMakeFiles/caffe.dir/util/upgrade_proto.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/util/upgrade_proto.cpp.o] Error 1
CMakeFiles/Makefile2:272: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I have successfully built the BVLC caffe repo in the past without any errors.
Please help me out.

Thanks.

@Realitian
Copy link

you can check my installation shell for aws gpu instance
https://gist.github.com/realitian/576d465442e0110d39ec6bd55de0af7f

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

2 participants