feichtenhofer / gpu_flow

GPU based optical flow extraction in OpenCV
427 stars 109 forks source link

CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/compute_flow.dir/all' failed #17

Open Chelgan opened 4 years ago

Chelgan commented 4 years ago

System information (version) OpenCV = :2.4.9.1 Python = :2.7.12 Operating System / Platform => :ubuntu 16.04 Compiler => : Detailed description I am following the steps from README.txt to build gpu_flow on my ubuntu.But when I enter the code "make",it reports an error. Error details: $ make Scanning dependencies of target compute_flow_automoc [ 25%] Automatic moc for target compute_flow [ 25%] Built target compute_flow_automoc Scanning dependencies of target compute_flow [ 50%] Building CXX object CMakeFiles/compute_flow.dir/compute_flow.o In file included from /usr/local/include/opencv4/opencv2/core.hpp:52:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/cvdef.h:656:4: error: #error "OpenCV 4.x+ requires enabled C++11 support"

error "OpenCV 4.x+ requires enabled C++11 support"

^

In file included from /usr/include/c++/5/array:35:0, from /usr/local/include/opencv4/opencv2/core/cvdef.h:661, from /usr/local/include/opencv4/opencv2/core.hpp:52, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support \

^ In file included from /usr/local/include/opencv4/opencv2/core/cvstd.hpp:81:0, from /usr/local/include/opencv4/opencv2/core/base.hpp:58, from /usr/local/include/opencv4/opencv2/core.hpp:54, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:16:12: error: ‘std::nullptr_t’ has not been declared using std::nullptr_t; ^ In file included from /usr/local/include/opencv4/opencv2/core/cvstd.hpp:81:0, from /usr/local/include/opencv4/opencv2/core/base.hpp:58, from /usr/local/include/opencv4/opencv2/core.hpp:54, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:45:30: error: ‘true_type’ in namespace ‘std’ does not name a type static CV_CONSTEXPR std::true_type check(typename std::is_same<typename std ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:47:49: error: ‘false_type’ in namespace ‘std’ does not name a type template static CV_CONSTEXPR std::false_type check(...); ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:49:22: error: ‘check’ has not been declared typedef decltype(check(0)) type; ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:49:27: error: expected ‘,’ or ‘...’ before ‘<’ token typedef decltype(check(0)) type; ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:49:33: error: expected ‘;’ at end of member declaration typedef decltype(check(0)) type; ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:49:35: error: ‘type’ does not name a type typedef decltype(check(0)) type; ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:52:38: error: ‘type’ has not been declared static CV_CONSTEXPR bool value = type::value; ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:58:34: error: expected class-name before ‘{’ token : public std::false_type {}; ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:61:43: error: ‘enable_if’ in namespace ‘std’ does not name a template type struct has_custom_delete<T, typename std::enable_if< sfinae::has_parenthesis_op ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:61:52: error: expected template-argument before ‘<’ token struct has_custom_delete<T, typename std::enable_if< sfinae::has_parenthesis_op ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:61:52: error: expected ‘>’ before ‘<’ token /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:61:131: error: template argument 2 is invalid sfinae::has_parenthesis_operator<DefaultDeleter, void, T*>::value >::type > ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:62:9: error: expected ‘::’ before ‘:’ token : public std::true_type {}; ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:62:9: error: expected identifier before ‘:’ token /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:62:9: error: qualified name does not name a class before ‘:’ token /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:62:9: error: expected ‘{’ before ‘:’ token /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:62:9: error: expected unqualified-id before ‘:’ token /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:66:36: error: expected template-name before ‘<’ token struct Ptr : public std::shared_ptr ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:66:36: error: expected ‘{’ before ‘<’ token /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:66:36: error: expected unqualified-id before ‘<’ token /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp: In function ‘cv::Ptr<_Tp> cv::makePtr(const A1& ...)’: /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:139:22: error: ‘make_shared’ is not a member of ‘std’ return (Ptr<_Tp>)std::make_shared<_Tp>(a1...); ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:139:42: error: expected primary-expression before ‘>’ token return (Ptr<_Tp>)std::make_shared<_Tp>(a1...); ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:139:46: error: expected ‘)’ before ‘...’ token return (Ptr<_Tp>)std::make_shared<_Tp>(a1...); ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:139:49: error: parameter packs not expanded with ‘...’: return (Ptr<_Tp>)std::make_shared<_Tp>(a1...); ^ /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:139:49: note: ‘a1’ In file included from /usr/local/include/opencv4/opencv2/core.hpp:57:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/matx.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/matx.hpp:143:31: error: expected ‘)’ before ‘<’ token Matx(std::initializer_list<_Tp>); //!< initialize from an initializer list ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:57:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/matx.hpp:361:30: error: expected ‘)’ before ‘<’ token Vec(std::initializer_list<_Tp>); ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:664:28: error: ‘cv::Matx<_Tp, m, n>::Matx’ declared as an ‘inline’ variable Matx<_Tp, m, n>::Matx(std::initializer_list<_Tp> list) ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:664:28: error: ‘int cv::Matx<_Tp, m, n>::Matx’ is not a static data member of ‘class cv::Matx<_Tp, m, n>’ /usr/local/include/opencv4/opencv2/core/matx.hpp:664:28: error: template definition of non-template ‘int cv::Matx<_Tp, m, n>::Matx’ /usr/local/include/opencv4/opencv2/core/matx.hpp:664:23: error: ‘initializer_list’ is not a member of ‘std’ Matx<_Tp, m, n>::Matx(std::initializer_list<_Tp> list) ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:664:48: error: expected primary-expression before ‘>’ token Matx<_Tp, m, n>::Matx(std::initializer_list<_Tp> list) ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:664:50: error: ‘list’ was not declared in this scope Matx<_Tp, m, n>::Matx(std::initializer_list<_Tp> list) ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:664:50: note: suggested alternatives: In file included from /usr/include/c++/5/list:63:0, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:39, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qfiledevice.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qfile.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdir.h:38, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdiriterator.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDirIterator:1, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:29: /usr/include/c++/5/bits/stl_list.h:507:11: note: ‘std::cxx11::list’ class list : protected _List_base<_Tp, _Alloc> ^ /usr/include/c++/5/bits/stl_list.h:507:11: note: ‘std::__cxx11::list’ In file included from /usr/local/include/opencv4/opencv2/core.hpp:57:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/matx.hpp:1016:24: error: ‘cv::Vec<_Tp, cn>::Vec’ declared as an ‘inline’ variable Vec<_Tp, cn>::Vec(std::initializer_list<_Tp> list) ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:1016:24: error: ‘int cv::Vec<_Tp, cn>::Vec’ is not a static data member of ‘class cv::Vec<_Tp, cn>’ /usr/local/include/opencv4/opencv2/core/matx.hpp:1016:24: error: template definition of non-template ‘int cv::Vec<_Tp, cn>::Vec’ /usr/local/include/opencv4/opencv2/core/matx.hpp:1016:19: error: ‘initializer_list’ is not a member of ‘std’ Vec<_Tp, cn>::Vec(std::initializer_list<_Tp> list) ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:1016:44: error: expected primary-expression before ‘>’ token Vec<_Tp, cn>::Vec(std::initializer_list<_Tp> list) ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:1016:46: error: ‘list’ was not declared in this scope Vec<_Tp, cn>::Vec(std::initializer_list<_Tp> list) ^ /usr/local/include/opencv4/opencv2/core/matx.hpp:1016:46: note: suggested alternatives: In file included from /usr/include/c++/5/list:63:0, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:39, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qfiledevice.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qfile.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdir.h:38, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdiriterator.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDirIterator:1, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:29: /usr/include/c++/5/bits/stl_list.h:507:11: note: ‘std::cxx11::list’ class list : protected _List_base<_Tp, _Alloc> ^ /usr/include/c++/5/bits/stl_list.h:507:11: note: ‘std::__cxx11::list’ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:166:18: error: expected ‘,’ or ‘...’ before ‘&&’ token Point(Point_&& pt) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:166:23: error: invalid constructor; you probably meant ‘cv::Point<_Tp> (const cv::Point_<_Tp>&)’ Point(Point&& pt) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:171:31: error: expected ‘,’ or ‘...’ before ‘&&’ token Point& operator = (Point_&& pt) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:248:20: error: expected ‘,’ or ‘...’ before ‘&&’ token Point3(Point3_&& pt) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:248:25: error: invalid constructor; you probably meant ‘cv::Point3<_Tp> (const cv::Point3_<_Tp>&)’ Point3(Point3&& pt) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:253:33: error: expected ‘,’ or ‘...’ before ‘&&’ token Point3& operator = (Point3_&& pt) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:324:16: error: expected ‘,’ or ‘...’ before ‘&&’ token Size(Size_&& sz) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:324:21: error: invalid constructor; you probably meant ‘cv::Size<_Tp> (const cv::Size_<_Tp>&)’ Size(Size&& sz) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:328:29: error: expected ‘,’ or ‘...’ before ‘&&’ token Size& operator = (Size_&& sz) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:429:16: error: expected ‘,’ or ‘...’ before ‘&&’ token Rect(Rect_&& r) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:429:20: error: invalid constructor; you probably meant ‘cv::Rect<_Tp> (const cv::Rect_<_Tp>&)’ Rect(Rect&& r) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:434:30: error: expected ‘,’ or ‘...’ before ‘&&’ token Rect& operator = ( Rect_&& r ) CV_NOEXCEPT; ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:645:20: error: expected ‘,’ or ‘...’ before ‘&&’ token Scalar(Scalar_&& s) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:645:24: error: invalid constructor; you probably meant ‘cv::Scalar<_Tp> (const cv::Scalar_<_Tp>&)’ Scalar(Scalar&& s) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:648:31: error: expected ‘,’ or ‘...’ before ‘&&’ token Scalar& operator=(Scalar_&& s) CVNOEXCEPT; ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1172:27: error: expected ‘,’ or ‘...’ before ‘&&’ token Point<_Tp>::Point(Point&& pt) CVNOEXCEPT ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1172:1: error: prototype for ‘cv::Point<_Tp>::Point(cv::Point<_Tp>)’ does not match any in class ‘cv::Point_<_Tp>’ Point_<_Tp>::Point(Point&& pt) CV_NOEXCEPT ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:168:5: error: candidates are: cv::Point<_Tp>::Point_(const cv::Vec<Tp, 2>&) Point(const Vec<Tp, 2>& v); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:167:5: error: cv::Point<_Tp>::Point(const cv::Size<_Tp>&) Point(const Size<_Tp>& sz); ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:1168:1: error: cv::Point<_Tp>::Point(const cv::Point<_Tp>&) Point_<_Tp>::Point(const Point& pt) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1164:1: error: cv::Point_<_Tp>::Point_(_Tp, Tp) Point<_Tp>::Point_(_Tp _x, _Tp y) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1160:1: error: cv::Point<_Tp>::Point() Point<_Tp>::Point() ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1191:45: error: expected ‘,’ or ‘...’ before ‘&&’ token Point<_Tp>& Point_<_Tp>::operator = (Point_&& pt) CVNOEXCEPT ^ /usr/local/include/opencv4/opencv2/core/types.hpp: In member function ‘cv::Point<_Tp>& cv::Point_<_Tp>::operator=(cv::Point_<_Tp>)’: /usr/local/include/opencv4/opencv2/core/types.hpp:1193:9: error: ‘move’ is not a member of ‘std’ x = std::move(pt.x); y = std::move(pt.y); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1193:19: error: ‘pt’ was not declared in this scope x = std::move(pt.x); y = std::move(pt.y); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1193:30: error: ‘move’ is not a member of ‘std’ x = std::move(pt.x); y = std::move(pt.y); ^ /usr/local/include/opencv4/opencv2/core/types.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/types.hpp:1439:30: error: expected ‘,’ or ‘...’ before ‘&&’ token Point3_<_Tp>::Point3(Point3&& pt) CVNOEXCEPT ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1439:1: error: prototype for ‘cv::Point3<_Tp>::Point3(cv::Point3<_Tp>)’ does not match any in class ‘cv::Point3_<_Tp>’ Point3_<_Tp>::Point3(Point3&& pt) CV_NOEXCEPT ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:250:5: error: candidates are: cv::Point3<_Tp>::Point3(const cv::Vec<T2, 3>&) Point3(const Vec<Tp, 3>& v); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:249:14: error: cv::Point3<_Tp>::Point3(const cv::Point<_Tp>&) explicit Point3(const Point<_Tp>& pt); ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:1435:1: error: cv::Point3<_Tp>::Point3(const cv::Point3<_Tp>&) Point3_<_Tp>::Point3(const Point3& pt) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1431:1: error: cv::Point3_<_Tp>::Point3_(_Tp, _Tp, Tp) Point3<_Tp>::Point3_(_Tp _x, _Tp _y, _Tp z) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1427:1: error: cv::Point3<_Tp>::Point3() Point3<_Tp>::Point3() ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1470:48: error: expected ‘,’ or ‘...’ before ‘&&’ token Point3<_Tp>& Point3_<_Tp>::operator = (Point3_&& pt) CVNOEXCEPT ^ /usr/local/include/opencv4/opencv2/core/types.hpp: In member function ‘cv::Point3<_Tp>& cv::Point3_<_Tp>::operator=(cv::Point3_<_Tp>)’: /usr/local/include/opencv4/opencv2/core/types.hpp:1472:9: error: ‘move’ is not a member of ‘std’ x = std::move(pt.x); y = std::move(pt.y); z = std::move(pt.z); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1472:19: error: ‘pt’ was not declared in this scope x = std::move(pt.x); y = std::move(pt.y); z = std::move(pt.z); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1472:30: error: ‘move’ is not a member of ‘std’ x = std::move(pt.x); y = std::move(pt.y); z = std::move(pt.z); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1472:51: error: ‘move’ is not a member of ‘std’ x = std::move(pt.x); y = std::move(pt.y); z = std::move(pt.z); ^ /usr/local/include/opencv4/opencv2/core/types.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/types.hpp:1693:24: error: expected ‘,’ or ‘...’ before ‘&&’ token Size_<_Tp>::Size(Size&& sz) CVNOEXCEPT ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1693:1: error: prototype for ‘cv::Size<_Tp>::Size(cv::Size<_Tp>)’ does not match any in class ‘cv::Size_<_Tp>’ Size_<_Tp>::Size(Size&& sz) CV_NOEXCEPT ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:325:5: error: candidates are: cv::Size<_Tp>::Size(const cv::Point<_Tp>&) Size(const Point<_Tp>& pt); ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:1689:1: error: cv::Size<_Tp>::Size(const cv::Size<_Tp>&) Size_<_Tp>::Size(const Size& sz) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1685:1: error: cv::Size_<_Tp>::Size_(_Tp, Tp) Size<_Tp>::Size_(_Tp _width, _Tp height) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1681:1: error: cv::Size<_Tp>::Size() Size<_Tp>::Size() ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1714:47: error: expected ‘,’ or ‘...’ before ‘&&’ token Size<_Tp>& Size_<_Tp>::operator = (Size_<_Tp>&& sz) CVNOEXCEPT ^ /usr/local/include/opencv4/opencv2/core/types.hpp: In member function ‘cv::Size<_Tp>& cv::Size_<_Tp>::operator=(cv::Size_<_Tp>)’: /usr/local/include/opencv4/opencv2/core/types.hpp:1716:13: error: ‘move’ is not a member of ‘std’ width = std::move(sz.width); height = std::move(sz.height); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1716:23: error: ‘sz’ was not declared in this scope width = std::move(sz.width); height = std::move(sz.height); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1716:43: error: ‘move’ is not a member of ‘std’ width = std::move(sz.width); height = std::move(sz.height); ^ /usr/local/include/opencv4/opencv2/core/types.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/types.hpp:1835:29: error: expected ‘,’ or ‘...’ before ‘&&’ token Rect_<_Tp>::Rect(Rect<_Tp>&& r) CVNOEXCEPT ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1835:1: error: prototype for ‘cv::Rect<_Tp>::Rect(cv::Rect<_Tp>)’ does not match any in class ‘cv::Rect_<_Tp>’ Rect_<_Tp>::Rect(Rect<_Tp>&& r) CV_NOEXCEPT ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:431:5: error: candidates are: cv::Rect<_Tp>::Rect(const cv::Point<_Tp>&, const cv::Point_<_Tp>&) Rect(const Point<_Tp>& pt1, const Point_<_Tp>& pt2); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:430:5: error: cv::Rect_<_Tp>::Rect(const cv::Point<_Tp>&, const cv::Size_<_Tp>&) Rect(const Point<_Tp>& org, const Size_<_Tp>& sz); ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:1831:1: error: cv::Rect<_Tp>::Rect(const cv::Rect<_Tp>&) Rect_<_Tp>::Rect(const Rect<_Tp>& r) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1827:1: error: cv::Rect_<_Tp>::Rect_(_Tp, _Tp, _Tp, Tp) Rect<_Tp>::Rect_(_Tp _x, _Tp _y, _Tp _width, _Tp height) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1823:1: error: cv::Rect<_Tp>::Rect() Rect<_Tp>::Rect() ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1862:48: error: expected ‘,’ or ‘...’ before ‘&&’ token Rect<_Tp>& Rect_<_Tp>::operator = ( Rect_<_Tp>&& r ) CVNOEXCEPT ^ /usr/local/include/opencv4/opencv2/core/types.hpp: In member function ‘cv::Rect<_Tp>& cv::Rect_<_Tp>::operator=(cv::Rect_<_Tp>)’: /usr/local/include/opencv4/opencv2/core/types.hpp:1864:9: error: ‘move’ is not a member of ‘std’ x = std::move(r.x); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1864:19: error: ‘r’ was not declared in this scope x = std::move(r.x); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1865:9: error: ‘move’ is not a member of ‘std’ y = std::move(r.y); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1866:13: error: ‘move’ is not a member of ‘std’ width = std::move(r.width); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1867:14: error: ‘move’ is not a member of ‘std’ height = std::move(r.height); ^ /usr/local/include/opencv4/opencv2/core/types.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/types.hpp:2171:35: error: expected ‘,’ or ‘...’ before ‘&&’ token Scalar_<_Tp>::Scalar(Scalar<_Tp>&& s) CVNOEXCEPT { ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2171:1: error: prototype for ‘cv::Scalar<_Tp>::Scalar(cv::Scalar<_Tp>)’ does not match any in class ‘cv::Scalar_<_Tp>’ Scalar_<_Tp>::Scalar(Scalar<_Tp>&& s) CV_NOEXCEPT { ^ /usr/local/include/opencv4/opencv2/core/types.hpp:651:5: error: candidates are: template template<class Tp2, int cn> cv::Scalar<_Tp>::Scalar_(const cv::Vec<Tp2, cn>&) Scalar(const Vec<Tp2, cn>& v); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2167:1: error: cv::Scalar<_Tp>::Scalar(const cv::Scalar<_Tp>&) Scalar_<_Tp>::Scalar(const Scalar<_Tp>& s) : Vec<Tp, 4>(s) { ^ /usr/local/include/opencv4/opencv2/core/types.hpp:642:5: error: cv::Scalar<_Tp>::Scalar_(Tp) Scalar(Tp v0); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2158:1: error: cv::Scalar<_Tp>::Scalar_(_Tp, _Tp, _Tp, Tp) Scalar<_Tp>::Scalar_(_Tp v0, _Tp v1, _Tp v2, Tp v3) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2152:1: error: cv::Scalar<_Tp>::Scalar() Scalar<_Tp>::Scalar() ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2188:51: error: expected ‘,’ or ‘...’ before ‘&&’ token Scalar<_Tp>& Scalar_<_Tp>::operator=(Scalar_<_Tp>&& s) CVNOEXCEPT { ^ /usr/local/include/opencv4/opencv2/core/types.hpp: In member function ‘cv::Scalar<_Tp>& cv::Scalar_<_Tp>::operator=(cv::Scalar_<_Tp>)’: /usr/local/include/opencv4/opencv2/core/types.hpp:2189:20: error: ‘move’ is not a member of ‘std’ this->val[0] = std::move(s.val[0]); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2189:30: error: ‘s’ was not declared in this scope this->val[0] = std::move(s.val[0]); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2190:20: error: ‘move’ is not a member of ‘std’ this->val[1] = std::move(s.val[1]); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2191:20: error: ‘move’ is not a member of ‘std’ this->val[2] = std::move(s.val[2]); ^ /usr/local/include/opencv4/opencv2/core/types.hpp:2192:20: error: ‘move’ is not a member of ‘std’ this->val[3] = std::move(s.val[3]); ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:52:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘bool cv::operator!(const cv::AccessFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::AccessFlag cv::operator~(const cv::AccessFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::AccessFlag cv::operator|(const cv::AccessFlag&, const cv::AccessFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::AccessFlag cv::operator&(const cv::AccessFlag&, const cv::AccessFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::AccessFlag cv::operator^(const cv::AccessFlag&, const cv::AccessFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:66:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::AccessFlag cv::operator&(const int&, const cv::AccessFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:67:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS_BITWISE_AND(AccessFlag, int, AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:67:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS_BITWISE_AND(AccessFlag, int, AccessFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:67:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS_BITWISE_AND(AccessFlag, int, AccessFlag) ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:59:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/mat.hpp:207:68: error: ‘array’ in namespace ‘std’ does not name a template type template<typename _Tp, std::size_t _Nm> _InputArray(const std::array<Tp, ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:207:73: error: expected ‘,’ or ‘...’ before ‘<’ token template<typename _Tp, std::size_t _Nm> _InputArray(const std::array<_Tp, _Nm>& ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:208:54: error: ‘array’ in namespace ‘std’ does not name a template type template _InputArray(const std::array<Mat, _Nm>& arr); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:208:59: error: expected ‘,’ or ‘...’ before ‘<’ token template _InputArray(const std::array<Mat, _Nm>& arr); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:211:81: error: ‘array’ in namespace ‘std’ does not name a template type <typename _Tp, std::size_t _Nm> static _InputArray rawIn(const std::array<_Tp, ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:211:86: error: expected ‘,’ or ‘...’ before ‘<’ token name _Tp, std::size_t _Nm> static _InputArray rawIn(const std::array<_Tp, _Nm>& ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:52:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘bool cv::operator!(const cv::_InputArray::KindFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::_InputArray::KindFlag cv::operator~(const cv::_InputArray::KindFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::_InputArray::KindFlag cv::operator|(const cv::_InputArray::KindFlag&, const cv::_InputArray::KindFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::_InputArray::KindFlag cv::operator&(const cv::_InputArray::KindFlag&, const cv::_InputArray::KindFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::_InputArray::KindFlag cv::operator^(const cv::_InputArray::KindFlag&, const cv::_InputArray::KindFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:262:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(_InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::_InputArray::KindFlag cv::operator&(const int&, const cv::_InputArray::KindFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:263:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS_BITWISE_AND(_InputArray::KindFlag, int, _InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:263:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS_BITWISE_AND(_InputArray::KindFlag, int, _InputArray::KindFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:263:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS_BITWISE_AND(_InputArray::KindFlag, int, _InputArray::KindFlag) ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:59:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/mat.hpp:345:68: error: expected ‘)’ before ‘<’ token template<typename _Tp, std::size_t _Nm> _OutputArray(std::array<_Tp, _Nm>& ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:346:69: error: ‘array’ in namespace ‘std’ does not name a template type template<typename _Tp, std::size_t _Nm> _OutputArray(const std::array<_Tp, ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:346:74: error: expected ‘,’ or ‘...’ before ‘<’ token emplate<typename _Tp, std::size_t _Nm> _OutputArray(const std::array<_Tp, _Nm>& ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:347:54: error: expected ‘)’ before ‘<’ token template _OutputArray(std::array<Mat, _Nm>& arr); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:348:55: error: ‘array’ in namespace ‘std’ does not name a template type template _OutputArray(const std::array<Mat, _Nm>& arr); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:348:60: error: expected ‘,’ or ‘...’ before ‘<’ token template _OutputArray(const std::array<Mat, _Nm>& arr); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:351:77: error: ‘std::array’ has not been declared late<typename _Tp, std::size_t _Nm> static _OutputArray rawOut(std::array<_Tp, ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:351:82: error: expected ‘,’ or ‘...’ before ‘<’ token typename _Tp, std::size_t _Nm> static _OutputArray rawOut(std::array<_Tp, _Nm>& ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:59:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.hpp:415:73: error: expected ‘)’ before ‘<’ token template<typename _Tp, std::size_t _Nm> _InputOutputArray(std::array<_Tp, _Nm>& ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:416:74: error: ‘array’ in namespace ‘std’ does not name a template type emplate<typename _Tp, std::size_t _Nm> _InputOutputArray(const std::array<_Tp, ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:416:79: error: expected ‘,’ or ‘...’ before ‘<’ token te<typename _Tp, std::size_t _Nm> _InputOutputArray(const std::array<_Tp, _Nm>& ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:417:59: error: expected ‘)’ before ‘<’ token template _InputOutputArray(std::array<Mat, _Nm>& arr); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:418:60: error: ‘array’ in namespace ‘std’ does not name a template type template _InputOutputArray(const std::array<Mat, _Nm>& arr ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:418:65: error: expected ‘,’ or ‘...’ before ‘<’ token template _InputOutputArray(const std::array<Mat, _Nm>& arr ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:421:77: error: ‘std::array’ has not been declared late<typename _Tp, std::size_t _Nm> _InputOutputArray rawInOut(std::array<_Tp, ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:421:82: error: expected ‘,’ or ‘...’ before ‘<’ token typename _Tp, std::size_t _Nm> _InputOutputArray rawInOut(std::array<_Tp, _Nm>& ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:52:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘bool cv::operator!(const cv::UMatData::MemoryFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::UMatData::MemoryFlag cv::operator~(const cv::UMatData::MemoryFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::UMatData::MemoryFlag cv::operator|(const cv::UMatData::MemoryFlag&, const cv::UMatData::MemoryFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::UMatData::MemoryFlag cv::operator&(const cv::UMatData::MemoryFlag&, const cv::UMatData::MemoryFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp: In function ‘cv::UMatData::MemoryFlag cv::operator^(const cv::UMatData::MemoryFlag&, const cv::UMatData::MemoryFlag&)’: /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘underlying_type’ in namespace ‘std’ does not name a template type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:566:1: error: ‘UnderlyingType’ does not name a type CV_ENUM_FLAGS(UMatData::MemoryFlag) ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:59:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/mat.hpp:1006:53: error: ‘enable_if’ in namespace ‘std’ does not name a template type template<typename _Tp, typename = typename std::enable_if<std::is_arithmeti ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1006:62: error: expected ‘>’ before ‘<’ token template<typename _Tp, typename = typename std::enable_if<std::is_arithmeti ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1007:29: error: ‘initializer_list’ in namespace ‘std’ does not name a template type explicit Mat(const std::initializer_list<_Tp> list); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1007:45: error: expected ‘,’ or ‘...’ before ‘<’ token explicit Mat(const std::initializer_list<_Tp> list); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1007:55: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 explicit Mat(const std::initializer_list<_Tp> list); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1011:52: error: ‘initializer_list’ in namespace ‘std’ does not name a template type template explicit Mat(const std::initializer_list sizes, ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1011:68: error: expected ‘,’ or ‘...’ before ‘<’ token template explicit Mat(const std::initializer_list sizes, ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1015:64: error: ‘array’ in namespace ‘std’ does not name a template type template<typename _Tp, size_t _Nm> explicit Mat(const std::array<_Tp, _Nm>& ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1015:69: error: expected ‘,’ or ‘...’ before ‘<’ token template<typename _Tp, size_t _Nm> explicit Mat(const std::array<_Tp, _Nm>& ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:1643:59: error: ‘array’ in namespace ‘std’ does not name a template type template<typename _Tp, std::size_t _Nm> operator std::array<_Tp, Nm>() con ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2067:12: error: expected ‘,’ or ‘...’ before ‘&&’ token Mat(Mat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2067:16: error: invalid constructor; you probably meant ‘cv::Mat (const cv::Mat&)’ Mat(Mat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2068:25: error: expected ‘,’ or ‘...’ before ‘&&’ token Mat& operator = (Mat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2222:31: error: expected ‘)’ before ‘<’ token Mat(std::initializer_list<_Tp> values); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2223:30: error: ‘initializerlist’ in namespace ‘std’ does not name a template type explicit Mat(const std::initializerlist sizes, const std::initialize ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2223:46: error: expected ‘,’ or ‘...’ before ‘<’ token explicit Mat(const std::initializer_list sizes, const std::initialize ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2225:57: error: ‘array’ in namespace ‘std’ does not name a template type template explicit Mat_(const std::array<_Tp, _Nm>& arr, b ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2225:62: error: expected ‘,’ or ‘...’ before ‘<’ token template explicit Mat_(const std::array<_Tp, _Nm>& arr, b ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2324:45: error: ‘array’ in namespace ‘std’ does not name a template type template operator std::array<_Tp, Nm>() const; ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2331:14: error: expected ‘,’ or ‘...’ before ‘&&’ token Mat(Mat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2331:18: error: invalid constructor; you probably meant ‘cv::Mat<_Tp> (const cv::Mat_<_Tp>&)’ Mat(Mat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2332:27: error: expected ‘,’ or ‘...’ before ‘&&’ token Mat& operator = (Mat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2334:13: error: expected ‘,’ or ‘...’ before ‘&&’ token Mat(Mat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2335:26: error: expected ‘,’ or ‘...’ before ‘&&’ token Mat& operator = (Mat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2337:17: error: expected ‘,’ or ‘...’ before ‘&&’ token Mat_(MatExpr&& e); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2534:14: error: expected ‘,’ or ‘...’ before ‘&&’ token UMat(UMat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2534:18: error: invalid constructor; you probably meant ‘cv::UMat (const cv::UMat&)’ UMat(UMat&& m); ^ /usr/local/include/opencv4/opencv2/core/mat.hpp:2535:27: error: expected ‘,’ or ‘...’ before ‘&&’ token UMat& operator = (UMat&& m); ^ In file included from /usr/local/include/opencv4/opencv2/core/mat.hpp:3661:0, from /usr/local/include/opencv4/opencv2/core.hpp:59, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp: In member function ‘void cv::InputArray::init(int, const void*, cv::Size)’: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp:80:41: error: ambiguous overload for ‘operator=’ (operand types are ‘cv::Size {aka cv::Size}’ and ‘cv::Size {aka cv::Size_}’) { flags = _flags; obj = (void*)_obj; sz = _sz; } ^ In file included from /usr/local/include/opencv4/opencv2/core.hpp:58:0, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/computeflow.cpp:33: /usr/local/include/opencv4/opencv2/core/types.hpp:1707:13: note: candidate: cv::Size<_Tp>& cv::Size_<_Tp>::operator=(const cv::Size_<_Tp>&) [with Tp = int] Size<_Tp>& Size_<_Tp>::operator = (const Size_<_Tp>& sz) ^ /usr/local/include/opencv4/opencv2/core/types.hpp:1714:13: note: candidate: cv::Size_<_Tp>& cv::Size_<_Tp>::operator=(cv::Size_<_Tp>) [with Tp = int] Size<_Tp>& Size_<_Tp>::operator = (Size_<_Tp>&& sz) CV_NOEXCEPT ^ In file included from /usr/local/include/opencv4/opencv2/core/mat.hpp:3661:0, from /usr/local/include/opencv4/opencv2/core.hpp:59, from /usr/local/include/opencv4/opencv2/core/core.hpp:48, from /home/huihui/桌面/行为检测项目/gpu_flow-master/compute_flow.cpp:33: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp: At global scope: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp:98:37: error: ‘array’ in namespace ‘std’ does not name a template type _InputArray::_InputArray(const std::array<_Tp, _Nm>& arr) ^ /usr/local/include/opencv4/opencv2/core/mat.inl.hpp:98:42: error: expected ‘,’ or ‘...’ before ‘<’ token _InputArray::_InputArray(const std::array<_Tp, _Nm>& arr) ^ /usr/local/include/opencv4/opencv2/core/mat.inl.hpp: In constructor ‘cv::_InputArray::_InputArray(int)’: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp:99:86: error: ‘arr’ was not declared in this scope

I really spent a lot of time on it and I need to finish installing it ASAP, so please help me out! I really appreciate you guys help!!!

Etang21 commented 4 years ago

I'm also having installation errors, but my errors are more similar to those in #16 .

In your error logs, it looks like your version of OpenCV 2 is installed as a subdirectory in an installation of OpenCV 4, which could be causing the errors. In #16 and in my error logs, I have no references to OpenCV 4. It could help to try a clean install of OpenCV 2 without Open CV 4. I used Conda to install OpenCV 2 with $ conda install -c conda-forge opencv=2.4.

Then again, I'm still having errors, so I may not be the best person to help 🐙