1.编译Geos
下载源代码,解压后运行
autogen.bat
然后:(以下之a或b或c)
a.nmake /f makefile.vc
b.nmake /f makefile.vc install
c.nmake /f makefile.vc devinstall //安装开发需要的include和lib
d.nmake /f makefile.vc clean //清理编译生成的目标文件
e.nmake /f makefile.vc MSVC_VER=1600 BUILD_DEBUG=YES
2.编译GDAL
a.修改nnamke.opt文件
//添加geos支持
# Uncomment for GEOS support
GEOS_DIR=$(GDAL_SRC)\geos
GEOS_CFLAGS = -I$(GEOS_DIR)\capi -I$(GEOS_DIR)\include -DHAVE_GEOS
GEOS_LIB = $(GEOS_DIR)\src\geos_c_i.lib
b.添加FileGDB支持
FGDB_ENABLED = YES
#FGDB_PLUGIN = YES
FGDB_SDK = $(GDAL_SRC)\FileGDB
FGDB_INC = $(FGDB_SDK)\include
FGDB_LIB = $(FGDB_SDK)\lib64\FileGDBAPI.lib
c.修改编译为64位版
# Uncomment the following if you are building for 64-bit windows
# (x64). You'll need to have PATH, INCLUDE and LIB set up for 64-bit
# compiles.
WIN64=YES
GDAL编译
猜你喜欢
转载自lozpeng.iteye.com/blog/1825779
今日推荐
周排行