You can build and install libheif using the vcpkg dependency manager: git clone https://github.com/Microsoft/vcpkg.git 安装保存路径形如:C:\code\vcpkg\installed\x64-windows
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg integrate install
./vcpkg install libheif
修改src内的cmake 关于libheif存储路径
$ mkdir build
$ cd build
$ cmake ..
$ make
C:\Qt\6.5.3\msvc2019_64\plugins\imageformats
qheif.dll
qheifd.dll
qheifd.pdb
clang_rt.asan_dynamic-x86_64.dll
heif.dll
libde265.dll
libx265.dll