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
caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc #394
Comments
You don't need to manually call protoc. Let's cmake generate files. Try again with last release tag. /cc @nyanp |
@blakeliu Do you still have the issue? |
No answer for a week, closing |
I am sorry, I meet the same problem. (Need install something before?) @Randl @bhack (I do not open a new issue)
error as follow
|
could you try with an old protobuf version ? |
I met the same problem while installing using git bash script in windows 64. OpenCV Version: 4.0.1 Error Message: "C:\lib\Build\opencv\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\lib\Build\opencv\apps\annotation\opencv_annotation.vcxproj" (default target) (14) ->
"C:\lib\Build\opencv\modules\world\opencv_world.vcxproj" (default target) (15) ->
(ClCompile target) ->
c:\lib\opencv\modules\dnn\misc\caffe\opencv-caffe.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\caffe\opencv-caffe.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\onnx\opencv-onnx.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\onnx\opencv-onnx.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\attr_value.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\tensorflow\attr_value.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\function.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\tensorflow\function.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\graph.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\tensorflow\graph.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\op_def.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\tensorflow\op_def.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\tensor_shape.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\tensorflow\tensor_shape.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\tensor.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\tensorflow\tensor.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\types.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\tensorflow\types.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\versions.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\misc\tensorflow\versions.pb.cc) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\caffe\opencv-caffe.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\src\caffe\caffe_importer.cpp) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\caffe\opencv-caffe.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\src\caffe\caffe_shrinker.cpp) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\caffe\opencv-caffe.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\src\caffe\caffe_io.cpp) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\onnx\opencv-onnx.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\src\onnx\onnx_importer.cpp) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\graph.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\graph.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\src\tensorflow\tf_importer.cpp) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
c:\lib\opencv\modules\dnn\misc\tensorflow\graph.pb.h(12): fatal error C1189: #error: This file was generated by a newer version of protoc which is (compiling source file C:\lib\opencv\modules\dnn\src\tensorflow\tf_io.cpp) [C:\lib\Build\opencv\modules\world\opencv_world.vcxproj]
80 Warning(s)
17 Error(s)
Time Elapsed 00:02:47.15 |
I met the same problem. |
met the same problem. |
wwt@wwt:~/dl/lib/tinycnn/tiny-dnn$ protoc --version
libprotoc 3.0.0
tiny_dnn/io/caffe$ protoc caffe.proto --cpp_out=./
cmake -DBUILD_EXAMPLES=ON .
make
/tinycnn/tiny-dnn/tiny_dnn/io/caffe/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
^
/home/wwt/dl/lib/tinycnn/tiny-dnn/tiny_dnn/io/caffe/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
/home/wwt/dl/lib/tinycnn/tiny-dnn/tiny_dnn/io/caffe/caffe.pb.h:14:2: error: #error your headers.
#error your headers.
^
/home/wwt/dl/lib/tinycnn/tiny-dnn/tiny_dnn/io/caffe/caffe.pb.h:22:35: fatal error: google/protobuf/arena.h
The text was updated successfully, but these errors were encountered: