1.在官网进行GeoTiff源码的下载https://trac.osgeo.org/geotiff/,对其进行解压,我的解压路径是D:\libgeotiff,新建Build作为编译的目录,libgeotiff-res作为临时安装目录,libgeotiff-debug作为Debug版本的安装目录,libgeotiff-release作为release版本的安装目录。
2.打开CMake(请自行下载),我们把D:\libgeotiff\libgeotiff-1.4.2中的CMakeLists.txt拖拽至CMake中,Where is the source code保持不变,Where to build the binaries修改为D:/libgeotiff/Build,即我们创建的作为编译的文件夹