bug: no debug binaries
Hi. Was trying to build openCV using Windows.
Steps:
-
Create a folder called 'build'.
-
Run:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=D:/"Program Files"/openCV -D WITH_TBB=ON -D BUILD_PYTHON_SUPPORT=ON .. -D PYTHON2_EXECUTABLE=~\.pyenv\pyenv-win\versions\2.7.18\python.exe -D PYTHON3_EXECUTABLE=~\.pyenv\pyenv-win\versions\3.10.2\python.exe -D BUILD_opencv_java=OFF -
Then run
cmake --build .
Result:
LINK : fatal error LNK1104: cannot open file 'python27_d.lib' [D:\mfarid\Downlo ads\source_code\opencv\build3\modules\python2\opencv_python2.vcxproj]
LINK : fatal error LNK1104: cannot open file 'python310_d.lib' [D:\mfarid\Downl oads\source_code\opencv\build3\modules\python3\opencv_python3.vcxproj]
Inside my build folder, in path opencv\build3\modules\python2\opencv_python2.dir\Debug\opencv_python2.tlog\unsuccessfulbuild is created.
- OS: Windows 10 Pro
- Tools used: CMake, pyenv-win, VS2022
Is there any way to download the debug binaries for python like when we install from command line: python-3.10.2.exe Include_debug=1, or any workaround?
Workaround: use --dev when installing and make sure you use it each and every time or clear the cache before since the debug msi's get 'cleaned up' from the cache when not requesting debug files.
Thanks man. I ended up building both debug and release version. Anyway thanks.