现在的位置: 首页 > 数据库 > 正文

环境: osgEarth 依赖库下载地址(gdal, geos, SQLite, zip, zlib, proj4)

2019年11月12日 数据库 ⁄ 共 1081字 ⁄ 字号 评论关闭

我想很多新学习osgEarth的朋友对osgEarth的编译表示很痛苦,确实步骤比较多,大家要耐心一些,这个编译方法是FreeSouth总结的一个编译方法,我试了是成功的,给大家贴出来分享一下(版权归FreeSouth所有)

前题条件
完成osg 3.0的编译

Step 1 下载osgEarth 2.1.1
https://github.com/gwaldron/osgearth/downloads

Step 2 下载gdal 1.8.1并编译
下载地址:http://trac.osgeo.org/gdal/wiki/DownloadSource
编译方法:
运行vcvar32.bat
在gdal1.8.1的当前目录运行nmake /f makefile.vc MSVC_VER=1600
nmake /f makefile.vc install
nmake /f makefile.vc devinstall
最终结果在c:\warmerda下

Step 3 下载geos 3.3.2 并编译
下载地址:http://trac.osgeo.org/geos/
编译方法:
运行vcvar32.bat
双击运行autogen.bat
nmake /f makefile.vc MSVC_VER=1600
最终结果在c:\warmerda下

Step 4 下载SQLite 3.7.10
下载地址 :http://www.sqlite.org/download.html
建立一个静态链接工程,加入sqlite3开头的三个文件
建立一个exe工程,加入shell.c
将静态结果更名为sqlited.lib和sqlite.lib,分别表示debug和release版本

Step5 下载libzip的编译结果
下载地址:http://files.cnblogs.com/eaglezhao/libzip(vs10).rar

Step6 下载zlib并编译
下载地址:http://www.winimage.com/zLibDll/minizip.html
进入contrib\vstudio\vc10目录,双击工程进行编译。

step7 下载并编译proj 4
下载地址:http://trac.osgeo.org/proj/
编译方法
运行vcvar32.bat
nmake /f makefile.vc install
nmake /f makefile.vc install-all

step 8 使用cmake编译osgEarth

step 9 测试编译结果

http://bbs.osgchina.org/forum.php?mod=viewthread&tid=13709&extra=page%3D1

抱歉!评论已关闭.