Windows system +vs2013 compiled Gdal (using the cmd command line)

Source: Internet
Author: User

Gdal can read and write Multiband spectral data, and after installing VS2013, compile gdal with the VS command-line tool.

First download Gdal Source: Http://trac.osgeo.org/gdal/wiki/DownloadSource.

Not too new version, I downloaded is 2.0.2 version, download to D drive, unzip.

Locate D:\Program Files (x86) \microsoft Visual Studio 12.0\common7\tools\shortcuts\vs2013 x86 native Tools command prompt. LNK, the following interface will pop up when opened:

Then use the CD command to enter the Gdal folder

Type the following command in turn:

Nmake-f makefile.vcnmake-f makefile.vc installnmake-f makefile.vc devinstall

Wait for the compilation to succeed.

After the compilation succeeds, a new folder will be generated in the C drive: C:\warmerda\bld, which is the result of successful compilation.

The next step is to access gdal in VS, in the project properties of VC + + settings include directory: C:\warmerda\bld\include,

Added in library directory: C:\warmerda\bld\lib,

Linker-Added dependency in input: Gdal_i.lib.

This completes the entire Gdal environment compilation.

Windows system +vs2013 compiled Gdal (using the cmd command line)

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.