GDAL2.0编译——32位和64位
2016-07-01 18:32
344 查看
准备工作:
Source下载,这里下载对应的GDAL版本https://trac.osgeo.org/gdal/wiki/DownloadSource
懒得编译也可以在这里下载对应版本
https://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
http://www.gisinternals.com/release.php 下载地址
编译过程:
以VS2012为例Win32
1、打开 VS2012 x86 本机工具命令提示; 开始菜单->Microsoft Visual Studio 2012->Visual Studio Tools->VS2012 x86 本机工具命令提示2、通过cd 命令行命令 设置到GDAL资源目录
3、设置到GDAL目录后,以此键入如下命令行
nmake /f makefile.vc
nmake /f makefile.vc install
nmake /f makefile.vc devinstall
然后C:\warmerda下会生成版本文件。
X64
64位版本,会出现INK : error LNK2001链接错误。需注意如下:
1、打开 VS2012 x64 兼容工具命令提示; 开始菜单->Microsoft Visual Studio 2012->Visual Studio Tools->VS2012 x64 兼容工具命令提示
2、设置到GDAL目录后,命令行后加入 MSVC_VER=1700 WIN64=YES,以此键入如下命令
nmake /f makefile.vc MSVC_VER=1700 WIN64=YES
nmake /f makefile.vc install MSVC_VER=1700 WIN64=YES
nmake /f makefile.vc devinstall MSVC_VER=1700 WIN64=YES 其中 MSVC_VER 和VS版本关系如下
# 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
参考:https://trac.osgeo.org/gdal/wiki/BuildingOnWindows
相关文章推荐
- 转: Vue.js——60分钟组件快速入门(上篇)
- [已解决]EnvironmentError: mysql_config not found
- CentOS5.6U盘启动安装笔记
- 常见知识点总结
- iOS Storyboard全解析
- Spring源码解析——如何阅读源码
- android 中如何限制 EditText 最大输入字符数
- 高精度
- 在tomcat下运行java代码
- [置顶] Android开发之反射与注解
- 性能测试指标
- 使用GitHub
- c++ 封装ipv6类
- MSBuild学习总结
- 1079 三角形
- Printers(三) 相关的对话框
- C++思维导图
- 测试人员评估
- 多模块Maven工程单独打包某一模块工程
- 音视频推荐书籍