Error infomation is shown following: [ 96%] Linking CXX executable ../../bin/opencv_interactive-calibration [ 97%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o [ 98%] Built target opencv_version [ 98%] Built target opencv_annotation [ 98%] Built target opencv_visualisation In file included from /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/modules/python/src2/cv2.cpp:1498: /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:1148:50: error: no member named 'FlannBasedMatcher' in namespace 'cv' template<> PyObject* pyopencv_from(const Ptr<cv::flannbasedmatcher>& r) ~~~~^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:1156:52: error: no member named 'FlannBasedMatcher' in namespace 'cv' template<> bool pyopencv_to(PyObject* src, Ptr<cv::flannbasedmatcher>& dst, const char* name) ~~~~^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:1165:67: error: no member named 'FlannBasedMatcher' in namespace 'cv' dst = ((pyopencv_FlannBasedMatcher_t)src)->v.dynamicCast<cv::flannbasedmatcher>(); ~~~~^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:1165:85: error: expected unqualified-id dst = ((pyopencv_FlannBasedMatcher_t)src)->v.dynamicCast<cv::flannbasedmatcher>(); ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13528:9: error: use of undeclared identifier 'flann' Ptr<flann::indexparams> indexParams=makePtr<flann::kdtreeindexparams>(); ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13530:9: error: use of undeclared identifier 'flann' Ptr<flann::searchparams> searchParams=makePtr<flann::searchparams>(); ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13534:40: error: use of undeclared identifier 'indexParams' pyopencv_to(pyobj_indexParams, indexParams, ArgInfo("indexParams", 0)) && ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13535:41: error: use of undeclared identifier 'searchParams' pyopencv_to(pyobj_searchParams, searchParams, ArgInfo("searchParams", 0)) ) ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13537:34: error: no member named 'FlannBasedMatcher' in namespace 'cv' new (&(self->v)) Ptr<cv::flannbasedmatcher>(); // init Ptr with placement new ~~~~^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13538:49: error: no type named 'FlannBasedMatcher' in namespace 'cv' if(self) ERRWRAP2(self->v.reset(new cv::FlannBasedMatcher(indexParams, searchParams))); ~~~~^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/modules/python/src2/cv2.cpp:77:5: note: expanded from macro 'ERRWRAP2' expr; \ ^~~~ In file included from /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/modules/python/src2/cv2.cpp:1498: /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13549:9: error: use of undeclared identifier 'FlannBasedMatcher' Ptr<flannbasedmatcher> retval; ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13553:18: error: use of undeclared identifier 'retval' ERRWRAP2(retval = cv::FlannBasedMatcher::create()); ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13553:31: error: no member named 'FlannBasedMatcher' in namespace 'cv' ERRWRAP2(retval = cv::FlannBasedMatcher::create()); ~~~~^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/modules/python/src2/cv2.cpp:77:5: note: expanded from macro 'ERRWRAP2' expr; \ ^~~~ In file included from /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/modules/python/src2/cv2.cpp:1498: /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_types.h:13554:30: error: use of undeclared identifier 'retval' return pyopencv_from(retval); ^ In file included from /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/modules/python/src2/cv2.cpp:1499: /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_funcs.h:443:9: error: use of undeclared identifier 'FlannBasedMatcher' Ptr<flannbasedmatcher> retval; ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_funcs.h:447:18: error: use of undeclared identifier 'retval' ERRWRAP2(retval = cv::FlannBasedMatcher::create()); ^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_funcs.h:447:31: error: no member named 'FlannBasedMatcher' in namespace 'cv' ERRWRAP2(retval = cv::FlannBasedMatcher::create()); ~~~~^ /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/modules/python/src2/cv2.cpp:77:5: note: expanded from macro 'ERRWRAP2' expr; \ ^~~~ In file included from /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/modules/python/src2/cv2.cpp:1499: /Users/zhuangjiankai/Desktop/libycnn2_linux/3rdparty/opencv331/build_opencv_static/modules/python2/pyopencv_generated_funcs.h:448:30: error: use of undeclared identifier 'retval' return pyopencv_from(retval); ^ [100%] Built target opencv_interactive-calibration 18 errors generated. make[2]: * [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 1 make[1]: [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2 make: ** [all] Error 2 ~/Desktop/libycnn2_linux