Ask Your Question
0

OpenCV 3.0.0 with Python 2.7

asked 2015-02-14 14:48:56 -0600

I am trying to compile OpenCV 3.0.0 from source with Python. I followed this tutorial. Python 2.7 is installed on my machine along with Numpy. I am compiling with VC12 on Windows 8 platform. When I compile from VC12, OpenCV is built, but not the Python package cv2.pyd.

All default settings are left in CMake apart from the paths to Python which I manually set to my Python installation. I have tested compiling with bosth x86 and x64, debug/release. Didn't find any useful information about the issue on internet.

Any suggestions?

edit retag flag offensive close merge delete

Comments

1

please append the cmake output. to your question

berak gravatar imageberak ( 2015-02-14 14:51:35 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-14 23:57:46 -0600

updated 2015-02-15 00:17:40 -0600

I have regenerated VC12 project in cmake-gui. This time, I noticed that "BUILD_opencv_python2" item was present. I suspect this item wasn't there in my previous attempts. Compilation using VC12 generated cv2.pyd as expected.

I still don't know what was going wrong before. But it seems that 'turn-off-on' strategy + regeneration of the project solved that issue for me.

edit flag offensive delete link more

Comments

Can you accept your solution as answer, so that future users can use this information to solve the same problem if it happens to them?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-02-16 08:41:07 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-14 14:46:16 -0600

Seen: 525 times

Last updated: Feb 14 '15