You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: