1.环境
Windows Server 2012 R2
MSYS2
GDAL2.4.2
2.编译GDAL
解压缩GDAL源代码到某一文件夹下,注意路径不能包含空格。
打开MSYS2的shell终端,依次输入
cd C:/soft/gis/gdal-2.4.2/gdal
./configure --prefix=/C/soft/gis/gdal-2.4.2/build --without-libtool
make
make install
3.GDAL错误
编译中,make
命令报
dgif_lib.c : undefined reference to setmod
egif_lib.c : undefined reference to setmod
修改dgif_lib.c
和egif_lib.c
文件,添加#include<io.h>
网友评论