mingw error with python bindings

asked 2015-10-17 06:11:19 -0500

ali_69426 gravatar image

updated 2015-10-17 07:34:15 -0500

Hi there, How can I solve this error while making OpenCV3? build/x86/mingw/modules/python2/pyopencv_generated_ns_reg.h:1429: error too many initializers for 'ConstDef'

build/x86/mingw/modules/python2/pyopencv_generated_ns_reg.h:1429: error too many initializers for 'ConstDef'

edit retag flag offensive close merge delete

Comments

can you paste (a few lines around) that erroneous line in pyopencv_generated_ns_reg.h ?

also which mingw is it exactly ? (gcc --version)

berak gravatar imageberak ( 2015-10-17 06:23:52 -0500 )edit

mingw32 a few lines around the erroneous line

static ConstDef consts_cv[] = {
    {"ACCESS_FAST", cv::ACCESS_FAST},
    {"ACCESS_MASK", cv::ACCESS_MASK},
    {"ACCESS_READ", cv::ACCESS_READ},
    {"ACCESS_RW", cv::ACCESS_RW},
....
ali_69426 gravatar imageali_69426 ( 2015-10-17 08:51:36 -0500 )edit