加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-13 22:45:44 所属栏目:百科 来源:网络整理
导读:我想很多新学习osgEarth的朋友对osgEarth的编译表示很痛苦,确实步骤比较多,大家要耐心一些,这个编译方法是FreeSouth总结的一个编译方法,我试了是成功的,给大家贴出来分享一下(版权归FreeSouth所有) 前题条件 完成osg 3.0的编译 Step 1 下载osgEarth 2.
我想很多新学习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
进入contribvstudiovc10目录,双击工程进行编译。

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读