Download source code
Gdal Source code: Http://trac.osgeo.org/gdal/wiki/DownloadSource, or install SVN from the source code server download, SVN address is: Http://svn.osgeo.org/gdal/trunk.
Before compiling
Before compiling, you also need to open the Nmake.opt file, find "#WIN64 =yes" at line 131, remove the previous "#", save it, and start compiling. If you compile the past, then congratulations, if you do not compile the past, then you need to follow the steps below to set a little bit.
1: In the Gdal directory of the nmake.opt file, find the definition of sym_prefix, should be around 438 rows
Change Sym_prefix=_ to sym_prefix= is to remove the final underline
2. Open Gdal folder nmake.opt Modify Gdal_home = "C:/warmerda/bld" To change the path to the place where the gdal is to be installed.
PS: If there is a gdal_home definition in the local environment variable, then nmake.opt will use the path to the defined Gdal_home
Compiling gdal
Run the VS command prompt and enter the VS console in turn:
#编译GDAL库
#编译GDAL库, and install (this means to copy the generated Dll,exe and other files to the C:\warmerda\bld directory)
#编译GDAL库, and install the developer mode (the installation of the same meaning, the developer mode means to use the development of the Include folder to copy the header files and Lib files together to the C:\warmerda\bld directory, this time in the C:\warmerda\ BLD directory of more than two folders, respectively, include and Lib, respectively, is the gdal of the header and Lib files, used to call the Gdal library use).
where Msvc_ver and VS versions are related
# nmake-f MAKEFILE.VC msvc_ver=xxxx
# where xxxx is one of following:
# 1900 = 14.0 (2015)
# 1800 = 12.0 (2013)
# 1700 = 11.0 (2012)
# 1600 = 10.0 (2010)
# 1500 = 9.0 (2008)
# 1400 = 8.0 (2005)
# 1310 = 7.1 (2003)
# 1300 = 7.0 (2002)
# 1200 = 6.0
Gdal Source code C + + make Windows