bonaz 发表于 2014-5-5 10:12:39

osgEarth编译共享[华电小赵]

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

前题条件
完成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 测试编译结果

天雷 发表于 2014-9-2 16:54:17

楼主你好,gdal-1.11.0
下载了如何编译啊?有没有新一点的版本编译指导啊

xiyatuyun 发表于 2014-9-11 13:16:29

同求详细安装步骤

xiyatuyun 发表于 2014-9-16 11:18:21

http://osgearth.readthedocs.org/en/latest/startup.html
上面提示
Required dependencies:

OpenSceneGraph 3.0.1 or later, with the CURL plugin enabled.
GDAL 1.6 or later - Geospatial Data Abstraction Layer
CURL - HTTP transfer library (comes with OpenSceneGraph 3rd party library distros)

但是上面并没有CURL啊!
页: [1]
查看完整版本: osgEarth编译共享[华电小赵]