1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00
LibrePilot/make/3rdparty/osgearth
2015-11-23 09:30:40 +01:00
..
gdal_GNUmakefile_fix.patch LP-30 use .patch extension instead of .diff for patch files 2015-09-08 22:53:47 +02:00
osg_win.sh LP-30 osg : added proper win dependencies build script 2015-09-12 20:20:40 +02:00
osg-3.4.patch patch osg to fix mac compile error 2015-11-23 09:30:40 +01:00
osgearth.mk LP-30 fixed PATH issue on windows after switching to git for windows 2.6.2 2015-11-03 00:43:31 +01:00
README.TXT LP-30 README.text cleanup 2015-11-05 08:43:31 +01:00

This document describes how to build osg and osgEarth.

Building osgEarth requires:
* osgEarth (http://osgearth.org/)
* OpenSceneGraph (http://www.openscenegraph.org/)
* GDAL (http://www.gdal.org/)
* zlib, png, etc...

Make sure all LibrePilot SDKs are up to date as the osgEarth build relies on them.

More details can be found in osgearth.mk.


Linux prerequisites
----------------------------------

$ sudo apt-get install libzip-dev libpng-dev lipjpeg-dev libtiff5-dev libcurl4-openssl-dev
$ sudo apt-get install  libgeos++-dev libgdal-dev

Alternative (not tested recently but could work):
$ sudo apt-get build-dep openscenegraph

Tested with:

$ curl --version
curl 7.35.0 (i686-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3

$ gdal-config --version
1.10.1


OSX prerequisites
----------------------------------

brew install cmake
brew install gdal

Windows prerequisites
----------------------------------

Windows requires many libraries to be build.
See osg_win.sh for more details.


Building
----------------------------------

$ make all_osg

This will:
- clone git repositories in ./3rdparty
- build osg and osgEarth libraries in ./build/3rdparty
- install osg in ./build/3rdparty/install
- create distribution files (tar & md5) in ./build/3rdparty/install