Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Building FlightGear with osgEarth Integration"

From FlightGear wiki
Jump to: navigation, search
(Assumptions)
(Building the osgEarth plugin)
Line 10: Line 10:
 
* clone the repository: <pre>git clone -v -b 2.12-OsgEarthIntegration git@gitorious.org:fg/flightgear-osgearth.git flightgear</pre>
 
* clone the repository: <pre>git clone -v -b 2.12-OsgEarthIntegration git@gitorious.org:fg/flightgear-osgearth.git flightgear</pre>
 
* create a separate build directory
 
* create a separate build directory
* configure via CMake, set '''-DCMAKE_INSTALL_PREFIX''' matching your OSG/SG/FG installation path
+
* configure via CMake, set '''-DCMAKE_INSTALL_PREFIX''' matching your OSG/SG/FG installation path (not needed if you installed OSG/SG system-wide)
 
* run "make install"
 
* run "make install"
  

Revision as of 17:42, 19 November 2013

This article is a stub. You can help the wiki by expanding it.

Objective

Assumptions

  • You already have working branches of SG/FG and FG, you only need to add the simperative branches as remote tracking branches
  • $SG_SRC, $FG_SRC and $FG_ROOT must be clean checkouts, commit/stash any unsaved work and check out next/master first.

Building the osgEarth plugin

  • clone the repository:
    git clone -v -b 2.12-OsgEarthIntegration git@gitorious.org:fg/flightgear-osgearth.git flightgear
  • create a separate build directory
  • configure via CMake, set -DCMAKE_INSTALL_PREFIX matching your OSG/SG/FG installation path (not needed if you installed OSG/SG system-wide)
  • run "make install"

SimGear

Switch into your cloned SimGear repository, make sure that it is in a clean state (commit/stash any changes, switch to next)

## add a new remote alias 
git remote add simperative  git@gitorious.org:fg/simgear-osgearth.git

## fetch all branches
git fetch simperative

## check out a remote tracking branch named topics/osgearth
git checkout --track -b topics/osgearth simperative/2.12-OsgEarthIntegration

FlightGear

Switch into your cloned FlightGear repository, make sure that it is in a clean state (commit/stash any changes, switch to next)

git remote add simperative  git@gitorious.org:fg/flightgear-osgearth.git
git fetch simperative 
git checkout --track -b topics/osgearth simperative/2.12-OsgEarthIntegration 

FGData