pyenv-win icon indicating copy to clipboard operation
pyenv-win copied to clipboard

bug: no debug binaries

Open ymirtuskarr01 opened this issue 4 years ago • 2 comments

Hi. Was trying to build openCV using Windows.

Steps:

  1. Create a folder called 'build'.

  2. 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

  3. 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?

ymirtuskarr01 avatar Mar 13 '22 13:03 ymirtuskarr01

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.

Darsstar avatar Mar 15 '22 22:03 Darsstar

Thanks man. I ended up building both debug and release version. Anyway thanks.

ymirtuskarr01 avatar Mar 17 '22 12:03 ymirtuskarr01