Building Debug Version of OpenCV

I am recreating this topic because it appears that my previous post disappeared for some reason.

I am interested in knowing how to build a debug version of OpenCV without the debug version of Python. When I tried to build the debug version an error was generated because I don’t have python39_d.lib. Is this simply a matter of not including Python in CMake?

I know that someone replied to my previous post with some helpful information. However, I can’t seem to find it.

Thanks in advance for any help.

that’s ok, not your fault,
we got some trouble with an over-eager spam filter here.

indeed it’s not shipped with a standard python install

yes :wink: just disable the python bindings in cmake:

BUILD_opencv_python3=OFF
BUILD_opencv_python_bindings_generator=OFF

Thank you for these pointers!

1 Like