First time here? Check out the FAQ!

Ask Your Question
0

Building VS 2010 and cv2.pyd

asked Jul 5 '13

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jul 6 '13

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
Preview: (hide)

Question Tools

Stats

Asked: Jul 5 '13

Seen: 959 times

Last updated: Jul 06 '13