Ask Your Question

Revision history [back]

Make Opencv 3.0 get error

Dear all, When run command "make" Opencv version 3.0 on Centos 6.5, I got these errors:

[100%] Built target opencv_perf_stitching
Traceback (most recent call last):
  File "/home/setup/opencv_source/opencv/modules/python/python2/..//src2/gen2.py", line 4,
    import hdr_parser, sys, re, os
  File "/home/setup/opencv_source/opencv/modules/python/src2/hdr_parser.py", line 855
    has_mat = len(list(filter(lambda x: x[0] in {"Mat", "vector_Mat"}, args))) > 0
                                                      ^
SyntaxError: invalid syntax
make[2]: *** [modules/python2/pyopencv_generated_include.h] Error 1
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
make: *** [all] Error 2

Please help me to fix this problem. Thank you.