microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.35k stars 6.45k forks source link

[openimageio] iv tool does not launch on Windows #41399

Open LegalizeAdulthood opened 1 month ago

LegalizeAdulthood commented 1 month ago

Describe the bug The openimageio[tools] port builds properly, but the iv tool does not launch due to a missing dependency.

Environment

To Reproduce Steps to reproduce the behavior:

  1. ./vcpkg install openimageio[tools]
  2. Attempt to run tools\openimageio\iv.exe

Expected behavior The tool (image viewer) should launch without difficulty.

Failure logs

Additional context Add any other context about the problem here.

LegalizeAdulthood commented 1 month ago

Correction, I think it's the openimageio[viewer] feature that brings in iv.exe

LegalizeAdulthood commented 1 month ago

I was able to workaround the problem by running windeployqt iv.exe with windeployqt coming from vcpkg_installed\x64-windows\tools\Qt6\bin

LegalizeAdulthood commented 1 month ago

CMake got all the link dependencies correctly, but this windeployqt tool appears to pick up the dynamic link dependencies and copy them over. I'd suggest running this tool on iv.exe in the tools directory when the viewer is requested.