In HEIF Wiki is explained how to compile using MinGW Toolchain but it could be better to compile throgh Visual Studio Toolchain so investigate this possibilities. See: https://blogs.msdn.microsoft.com/vcblog/2016/10/05/cmake-support-in-visual-studio/ https://github.com/nokiatech/heif/wiki/I.-How-to-build-HEIF-Source-Code
In HEIF Wiki is explained how to compile using MinGW Toolchain but it could be better to compile throgh Visual Studio Toolchain so investigate this possibilities.
See:
https://blogs.msdn.microsoft.com/vcblog/2016/10/05/cmake-support-in-visual-studio/
https://github.com/nokiatech/heif/wiki/I.-How-to-build-HEIF-Source-Code