Gdal Source code C + + make Windows

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.