OPENCV mingw的-32错误在CMD(openCV mingw-32 error i

2019-09-28 18:48发布

我有一个错误。 其中OpenCV的是,当我用命令的mingw32-提出的是发生在CMD目录中的错误。 我的操作系统是赢得7 64位。 我按照这个指南: http://www.ti.com/lit/ug/dlpu042/dlpu042.pdf

任何帮助表示赞赏这里是在cmd中的错误!

    C:\OpenCV>mingw32-make
[  0%] Built target gen-pkgconfig
[  2%] Built target zlib
[  5%] Built target libjpeg-turbo
[  8%] Built target libtiff
[ 16%] Built target libwebp
[ 19%] Built target libjasper
[ 20%] Built target libpng
[ 25%] Built target IlmImf
[ 25%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/goog
le/protobuf/stubs/io_win32.cc.obj
C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
    \stubs\io_win32.cc:94:3: warning: identifier 'nullptr' is a keyword in C++11 [-W
    c++0x-compat]
       return s == nullptr || *s == 0;
       ^

    C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
    \stubs\io_win32.cc: In function 'bool google::protobuf::internal::win32::{anonym
    ous}::null_or_empty(const char_type*)':
    C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
    \stubs\io_win32.cc:94:15: error: 'nullptr' was not declared in this scope
       return s == nullptr || *s == 0;
                   ^
    C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
    \stubs\io_win32.cc: In function 'bool google::protobuf::internal::win32::{anonym
    ous}::null_or_empty(const char_type*) [with char_type = char]':
    C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
    \stubs\io_win32.cc:95:1: error: control reaches end of non-void function [-Werro
    r=return-type]
     }
     ^
    C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
    \stubs\io_win32.cc: In function 'bool google::protobuf::internal::win32::{anonym
    ous}::null_or_empty(const char_type*) [with char_type = wchar_t]':
    C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
    \stubs\io_win32.cc:95:1: error: control reaches end of non-void function [-Werro
    r=return-type]
     }
     ^
    cc1plus.exe: some warnings being treated as errors
    3rdparty\protobuf\CMakeFiles\libprotobuf.dir\build.make:258: recipe for target '
    3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.
    cc.obj' failed
    mingw32-make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/pr
    otobuf/stubs/io_win32.cc.obj] Error 1
    CMakeFiles\Makefile2:715: recipe for target '3rdparty/protobuf/CMakeFiles/libpro
    tobuf.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
文章来源: openCV mingw-32 error in cmd