OsgEarth编译

OSGEARTH安装

OsgEarth是一个跨平台的库,可以使用版本号为2.6.2或更新版本的Cmake对其进行编译。
如何在Windows上使用GIT下载OsgEarth源代码
2. 安装
(1) 安装git

1) http://code.google.com/p/msysgit/downloads/list 上下载Git-xxx.exe并安装

(2)新建一文件夹,存放要放置的要下载的文件


http://www.osgearth.org/wiki/Downloads

页给出的OSGEarth下载地址是

 git://github.com/gwaldron/osgearth.git

我现在想把OSGEARTH下载到 E:\OSGEARTH也就是当前目录,在空白处单击鼠标右键,有一项是"git bash” 会启动一个类似Linux Shell的窗口

在窗口中输入如下命令

git clone git://github.com/gwaldron/osgearth.git

OsgEarth编译_第1张图片


----------------------------------------------------------------------------------

在E盘新建E:\osgearth\OpenSceneGraph文件夹。(说明:E:\osgearth文件夹是用来编译osgearth的文件夹)

将E:\osg\OpenSceneGraph\vs2010下的bin,include,lib文件夹拷贝到E:\ osgearth\OpenSceneGraph下(可以删除vs2010生成的临时文件,即bin中保留dll和exe文件,include不用处理,lib中保留lib文件),将E:\osg\OpenSceneGraph\Data下的数据拷贝到E:\ osgearth\OpenSceneGraph\data下;这几个文件是OSG需要的。

将E:\osg\OpenSceneGraph下的include和src文件夹拷贝到E:\ osgearth\OpenSceneGraph下,否则后面编译可能找不到文件。

将E:\osg\3rdparty\x86文件夹中的bin,include,lib合并到E:\ osgearth\OpenSceneGraph下,这样后面编译的时候需要包含的路径会少一些。


你可能感兴趣的:(OsgEarth编译)