Skip to content

dnn module fails to compile #819

@berak

Description

@berak
System information (version)
  • OpenCV => 3.1 (today's pull for both)
  • Operating System / Platform => Windows 64 Bit
  • Compiler => mingw64
Detailed description
cc1plus.exe: warning: C:/p/opencv/build/modules/photo/precomp.hpp.gch/opencv_photo_Debug.gch: not used because `__NO_INLINE__' not defined [-Winvalid-pch]
In file included from C:\p\opencv_contrib\modules\dnn\src\init.cpp:51:0:
C:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:60:13: error: 'PriorBoxParameter_CodeType' in namespace 'caffe' does not name a type
     typedef caffe::PriorBoxParameter_CodeType CodeType;
             ^
C:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:61:5: error: 'CodeType' does not name a type
     CodeType _codeType;
     ^
C:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:95:39: error: 'NormalizedBBox' is not a member of 'caffe'
     typedef std::map<int, std::vector<caffe::NormalizedBBox> > LabelBBox;
                                       ^
C:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:95:39: error: 'NormalizedBBox' is not a member of 'caffe'
C:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:95:60: error: template argument 1 is invalid
     typedef std::map<int, std::vector<caffe::NormalizedBBox> > LabelBBox;
                                                            ^
C:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:95:60: error: template argument 2 is invalid
C:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:95:62: error: template argument 2 is invalid
     typedef std::map<int, std::vector<caffe::NormalizedBBox> > LabelBBox;
                                                              ^
[ 50%] C:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:95:62: error: template argument 4 is invalid
Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/seamless_cloning_impl.cpp.objC:\p\opencv_contrib\modules\dnn\src\layers/detection_output_layer.hpp:98:
25: error: 'NormalizedBBox' in namespace 'caffe' does not name a type
     void ClipBBox(const caffe::NormalizedBBox& bbox, caffe::NormalizedBBox* clip_bbox);
                         ^
... and a ton more NormalizedBBox related errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions