opencv python build error

asked 2015-12-09 15:39:21 -0600

carl82 gravatar image

Hello,

I'm trying to build opencv 3 from source(I'm using VS 2013 and compiling for 32bit) so that I can play with feature detection stuff in OPENCV_EXTRA_MODULES with python. My python version is 2.7.5. Everything builds fine except pyopencv_generated. Here's the error log from visual studio. I'm getting vector_Rect2d and boundingBox undeclared identifier errors. VS reports 23 errors in total. All of them can be seen in the screenshot.

image description

Here's the relevant CMAKE screenshot.

image description

Everything else seems to be working OK except this and this is the part that I need unfortunately. Any suggestions? What should I do?

edit retag flag offensive close merge delete

Comments

Hi, I have no solution for you just more questions. For python extensions like cv2.pyd aren't you supposed to use the same compiler as the python executable? Since your is python27 it would be VS2008. (The python interpreter would says so at startup). you should build using VS2008 then I would think. This is a question I raised here but nobody answered - http://answers.opencv.org/question/80...

Terry gravatar imageTerry ( 2015-12-26 09:06:01 -0600 )edit