Skip to content

Debug build fail if enable the option "BUILD_opencv_world" #22312

@hustc12

Description

@hustc12
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
  1. Checkout the master branch source code.
  2. Configure the debug building version by CMake, enable the option "BUILD_opencv_world"
  3. 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.
  4. Right click "ALL_BUILD" and click "Build".
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions