美文网首页
Windows下使用MSYS2和MINGW64编译GDAL

Windows下使用MSYS2和MINGW64编译GDAL

作者: 王顼 | 来源:发表于2019-07-22 14:31 被阅读0次
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.cegif_lib.c文件,添加#include<io.h>

相关文章

网友评论

      本文标题:Windows下使用MSYS2和MINGW64编译GDAL

      本文链接:https://www.haomeiwen.com/subject/rdxwlctx.html