Answer the question
In order to leave comments, you need to log in
How to resolve an error when compiling OpenCV in GO?
I install according to this manual . But in the end, this error occurs during compilation.
C:\opencv\opencv-
3.4.3\3rdparty\protobuf\src\google\protobuf\text_format.cc:1309:1: error:
prototype for 'google::protobuf::TextFormat::Parser::Parser(bool)'
doesnot
match any in class 'google::protobuf::TextFormat::Parser'
TextFormat::Parser::Parser(bool allow_unknown_field)
^
In file included from C:\opencv\opencv-
3.4.3\3rdparty\protobuf\src\google\protobuf\text_format.cc:43:0:
C:/ProgramData/Anaconda3/Library/include/google/protobuf/text_format.h:458:
28:error: candidates are: constexpr
google::protobuf::TextFormat::Parser::Parser(const
google::protobuf::TextFormat::Parser&)
class LIBPROTOBUF_EXPORT Parser {
^
C:/ProgramData/Anaconda3/Library/include/google/protobuf/
text_format.h:460:
5: error: google::protobuf::TextFormat::Parser::Parser()
Parser();
^
3rdparty\protobuf\CMakeFiles\libprotobuf.dir\build.make:762: recipe for
target
'3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/
text_format.cc.obj' failed mingw32-make[2]: ***
[3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/
text_format.cc.obj] Error 1
CMakeFiles\Makefile2:650: recipe for target
'3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed
mingw32-make[1]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all]
Error
2
Makefile:161: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question