KitwareMedical / ImageViewer

A lightweight, cross-platform 2D/3D medical image viewer.
Apache License 2.0
39 stars 29 forks source link

ENH: Enable support for compiling using static libs #94

Closed aylward closed 3 years ago

aylward commented 3 years ago

Remaining issue: CMake and static Qt have linking issues on Windows. Have been reported to Qt and CMake developers.

Found out about a nice program that is distributed with Qt for resolving Qt dependencies on Windows. The command is

windeployqt --compiler-runtime ImageViewer.exe

You still needed to add libpng and zlib, but a windows pop-up will inform you of those missing dlls when you run ImageViewer.