Open zazeje opened 2 years ago
cmake 3.21.2 libprotoc 3.17.3 ubuntu 16.04 32-bit [ 83%] Building CXX object tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o /home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp: In member function ‘bool TEngine::CaffeSingle::LoadBinaryFile(const char*, te_caffe::NetParameter&)’: /home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp:169:57: error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)’ coded_input.SetTotalBytesLimit(1024 << 20, 512 << 20); ^ In file included from /home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp:30:0: /usr/local/include/google/protobuf/io/coded_stream.h:402:8: note: candidate: void google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int) void SetTotalBytesLimit(int total_bytes_limit); ^ /usr/local/include/google/protobuf/io/coded_stream.h:402:8: note: candidate expects 1 argument, 2 provided At global scope: cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’ cc1plus: warning: unrecognized command line option ‘-Wno-unused-command-line-argument’ tools/CMakeFiles/convert_tool.dir/build.make:131: recipe for target 'tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o' failed make[2]: [tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o] Error 1 CMakeFiles/Makefile2:181: recipe for target 'tools/CMakeFiles/convert_tool.dir/all' failed make[1]: [tools/CMakeFiles/convert_tool.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2
... how to fix this bug?
I meet same error, di you fix this bug?
Same here.
cmake 3.21.2 libprotoc 3.17.3 ubuntu 16.04 32-bit [ 83%] Building CXX object tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o /home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp: In member function ‘bool TEngine::CaffeSingle::LoadBinaryFile(const char*, te_caffe::NetParameter&)’: /home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp:169:57: error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)’ coded_input.SetTotalBytesLimit(1024 << 20, 512 << 20); ^ In file included from /home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp:30:0: /usr/local/include/google/protobuf/io/coded_stream.h:402:8: note: candidate: void google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int) void SetTotalBytesLimit(int total_bytes_limit); ^ /usr/local/include/google/protobuf/io/coded_stream.h:402:8: note: candidate expects 1 argument, 2 provided At global scope: cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’ cc1plus: warning: unrecognized command line option ‘-Wno-unused-command-line-argument’ tools/CMakeFiles/convert_tool.dir/build.make:131: recipe for target 'tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o' failed make[2]: [tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o] Error 1 CMakeFiles/Makefile2:181: recipe for target 'tools/CMakeFiles/convert_tool.dir/all' failed make[1]: [tools/CMakeFiles/convert_tool.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2
... how to fix this bug?