1.下载源码

geos-3.4.2.tar.bz2  http://trac.osgeo.org/geos/

proj-4.8.0.zip     http://trac.osgeo.org/proj/wiki/WikiStart#Download

启动VS2010 x64兼容命令提示符

2.首先编译GEOS,进入Geos目录后

1 autogen.bat
2 nmake /f makefile.vc 

编译debug版本

nmake /f makefile.vc BUILD_DEBUG=YES

 

说明F:\gdal\geos-3.4.2文件夹下的makefile.vc

# This makefile.vc delegates making targets to src\makefile.vc
# so it's just a thin wrapper.

 1 #
 2 # NMAKE Makefile to build GEOS on Windows
 3 ###############################################################################
 4 # This makefile.vc delegates making targets to src\makefile.vc
 5 # so it's just a thin wrapper.
 6 #
 7 #     Building on Win32 with Visual Studio
 8 #     ------------------------------------
 9 #
10 # 1) Requires Visual C++ 2002 or later
11 # 2) Build running command "nmake /f makefile.vc" in top-level directory
12 #
13 # Produces:
14 #  src\geos.dll: DLL - only exports the C API
15 #  src\geos_i.lib: Stub library to link against for use of geos.dll. 
16 #  src\geos.lib: static library for use of C or C++ API.
17 ###############################################################################
18 GEOS_ROOT=.
19 !INCLUDE $(GEOS_ROOT)\nmake.opt
20 
21 default: src_dir
22 
23 src_dir:
24     cd src
25     $(MAKE) /f makefile.vc
26     cd ..
27 
28 clean:    
29     cd src
30     $(MAKE) /f makefile.vc clean
31     cd ..
View Code

相关文章: