@korsamc

Как устранить ошибку при компиляции OpenCV в GO?

станавливаю по данному мануалу. Но в итоге выходит данная ошибка при компиляции.
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

ОС: Windwos 10, go version go1.11.1 windows/amd64
  • Вопрос задан
  • 396 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы