-
Notifications
You must be signed in to change notification settings - Fork 921
Description
I followed the instructions in link A and installed scikit build and numpy, then ran python setup. py bdistw_heel -- build type=Debug. First, it would report an error that it couldn't find the libs/python311-d. lib file, but I'm sure it exists in my python. It always defaults to finding the release version libs/python311.lib. In order to find it,I tried many methods and finally added :
'$lib-dbg='D:/Program/miniconda 3/env/opencv-build/libs/python311-d.lib'
$env: MAKE-ARGS="-DPYTHON3_LIBRRY=$lib-dbg -DPython3_LIBRRY=$lib-dbg"
This command forces DPYTHON3_LIBRRY to be python311-d.lib '
This command is mandatory for python311-d. lib 'to be found. Then, run python setup. py bdistw_heel -- build type=Debug to find python311-d. lib
This is very strange. Is it designed this way? Do you need to manually modify this path yourself?
- build type=Debug, won't he automatically find this path
Then all of these passed smoothly and reported an error:
Traceback (most recent call last):
File "D:\github\opencv-python\opencv-python\setup.py", line 537, in <module>
main()
File "D:\github\opencv-python\opencv-python\setup.py", line 266, in main
setup(
File "D:\Myprogram\miniconda3\envs\opencv_build\Lib\site-packages\skbuild\setuptools_wrap.py", line 700, in setup
_classify_installed_files(
File "D:\github\opencv-python\opencv-python\setup.py", line 450, in _classify_installed_files_override
raise Exception("Not found: '%s'" % relpath_re)
Exception: Not found: 'python/cv2/python-3.*/cv2.*'
Check if the directory I generated is
_stkbuild \ win32-3.11 \ make-build \ lib \ python3 \ debug \ cv2.pyd, cv2.pdb
Is it because there are no sub version numbers generated, so none of them are available? Why does it automatically generate folders that it cannot read?