-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Debug build fail if enable the option "BUILD_opencv_world" #22312
Description
System information (version)
- OpenCV => Master branch
- Operating System / Platform => Windows 10 64 Bit
- Compiler => Visual Studio 2022
Detailed description
I checked out the source code and tried to do debug source build. I configured the building options by CMake, when I enabled the option "BUILD_opencv_world", the building fails with the following error message:
531>LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_world460d.lib'
531>Done building project "example_aruco_calibrate_camera_charuco.vcxproj" -- FAILED.
532>LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_world460d.lib'
532>Done building project "example_aruco_calibrate_camera.vcxproj" -- FAILED.
533>LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_world460d.lib'
533>Done building project "example_aruco_aruco_dict_utils.vcxproj" -- FAILED.
However, if I disable the option "BUILD_opencv_world", then it can be successfully built.
Steps to reproduce
- Checkout the master branch source code.
- Configure the debug building version by CMake, enable the option "BUILD_opencv_world"
- Once the configuration is finished, open the IDE (my case is Visual Studio 2022 on Windows 10 64-Bit), navigate to the folder "CMakeTargets" on the "Solution Explorer" panel of VS2022 GUI.
- Right click "ALL_BUILD" and click "Build".
- Error messages will be popped up during the building procedure.
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues,
forum.opencv.org, Stack Overflow, etc and have not found any solution - I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files: videos, images, onnx, etc