kidanger / vpv

Image viewer for image processing experts
GNU General Public License v3.0
125 stars 18 forks source link

Initial work to support MSVC #54

Closed ronnychevalier closed 3 years ago

ronnychevalier commented 3 years ago

This is a first batch of commits to help support MSVC. One can use vcpkg to install the dependencies.

Some features like IIO and plambda cannot be supported since MSVC does not support VLA. So I added options to disable them. Since IIO must be disabled, you need to enable GDAL with -DUSE_GDAL=ON to build.

At the moment Terminal.cpp is still relying on popen and pclose which are not supported by MSVC. A better alternative would be to replace this with something portable, like reproc++ for example. In the mean time, one can comment the usage of popen/pclose.