Skip to content

Release jpeg62.dll copied to debug build directory #46789

@tksharpless

Description

@tksharpless

Describe the bug
building a project with VS22 with vcpkg integration (legacy mode), the jpeg62.dll copied to debug build directory is in fact the release version. I know this because in debug, OpenCV passes debug parameters to jpeg read that the release jpeg code does not recognize, so it throws an exception. Moreover the dll in question is much smaller than the correct debug one, and binary identical to the one vcpkg copies for the release build.

I suppose this has something to do with the fact that the jpeg package uses the same file name for both dlls -- and that might be a port bug.

Environment

  • OS: Win11
  • Compiler: VS22
    The vcpkg directories 'installed\x64-windows\bin' and 'installed\x64-windows\debug\bin' respectively contain the correct release and debug jpeg62 dlls.

To Reproduce
Steps to reproduce the behavior:

  1. run the debug build. happens every time.

Expected behavior
The right jpeg dll should be copied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions