我收到很多错误,例如
/usr/local/include/opencv2/legacy/legacy.hpp:2994:12: error: 'CvSubdiv2DEdge' does not name a type
/usr/local/include/opencv2/legacy/legacy.hpp:3002:12: error: 'CvSubdiv2DPoint' does not name a type
/usr/local/include/opencv2/legacy/legacy.hpp:1757:36: error: 'cv::EM' has not been declared
使用 OpenCV 2.4.13 它编译得很好。看起来他们实际上忘记在 legacy.hpp 中添加一些必要的包含。这是怎么回事?