Ask Your Question

Building VS 2010 and cv2.pyd

asked 2013-07-05 16:58:43 -0500

Wnt2bsleepin gravatar image

I am compiling OpenCV using Visual Studio 2010. The program compiles with no errors, but it does not seem to generate cv2.pyd at all. Here are my make config settings

image description

Any help is appreciated

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-07-06 00:32:01 -0500

berak gravatar image
  • did you check BUILD_opencv_python in cmake-gui as well ?
  • since there comes no python_d.lib with python, it can only generate a wrapper for RELEASE build
  • please check your release-vcproj, c++ -> preprocessor defs, if you find opencv_python_EXPORTS (at the end), replace it with CVAPI_EXPORTS, or initcv2() won't get exported
  • run the INSTALL project, to get the cv2.pyd copied to your python/lib/site-packages folder
edit flag offensive delete link more

Question Tools


Asked: 2013-07-05 16:58:43 -0500

Seen: 779 times

Last updated: Jul 06 '13