zoukankan      html  css  js  c++  java
  • gdal源码编译安装

    目录环境:win7+vs2010,以版本192为例

    第一步:源码下载:http://download.osgeo.org/gdal/gdal192.zip

    第二步:前提是已经在机器上成功安装了vs2010开发环境;

    1 编译GDAL

    • 将GDAL源码解压到指定目录下,如:D:codegdal-1.9.2
    • 以管理员身份运行cmd,进行VC10安装目录,如:D:program files (x86)Microsoft Visual Studio 10.0VCin,执行VCVARS32.BAT文件配置编译环境
    • 回到D:codegdal-1.9.2目录下,运行nmake /f makefile.vc,编译过程需要几分钟
    • 用文本编译软件打开文件D:codegdal-1.9.2 make.opt,修改GDAL_HOME=”GDAL安装目录(如:D:GDAL)“
    • cmd在D:codegdal-1.9.2下执行nmake /f makefile.vc install ,然后执行nmake /f makefile.vc devinstall, 需要的东西就安装到D:GDAL下了,里面有bin,data,html,lib,include几个文件夹

    2 VS中配置项目

    • 右键project—>Properties—>VC++Directories—>Include Directories引入D:/GDAL下的include
    • Library Directories引入D:/GDAL下的lib—>确定
    • Linker—>Input—>Additional Dependencies引入gdal_i.lib

    编译后,将bin下的gdal19.dll文件放到和可执行文件同一个目录中。

       
  • 相关阅读:
    MQTT初步使用
    越简单越喜欢
    大端小端
    Chapter 21_5.2 tab扩展
    Chapter 21_5.1 URL编码
    Chapter 21_5 替换
    插件api
    怎么找到一个好名字idea插件开发
    Struts2 maven项目简单案例
    javassist_1 cannot be cast to jaassist.util.proxy.Proxy
  • 原文地址:https://www.cnblogs.com/frankz/p/3892449.html
Copyright © 2011-2022 走看看