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
m (+cat: Core developer documentation → Building from source)
Line 1: Line 1:
 
{{Stub}}
 
{{Stub}}
  
{{Note|This article contains outdated instructions still referring to the 2.12 integration branches. Meanwhile, those branches have been updated for 3.x - and developers are exploring the possibility to get this committed into mainline for the upcoming 3.2 release.
+
{{Note|This article contains outdated instructions still referring to the 2.12 integration branches. Meanwhile, those branches have been updated for 3.x - and developers are exploring the possibility to get this committed into mainline for the upcoming release.
  
 
These should be the public links to the flightgear / osgEarth repositories (note that latest development is found in OsgEarthNext branch)
 
These should be the public links to the flightgear / osgEarth repositories (note that latest development is found in OsgEarthNext branch)
Line 11: Line 11:
 
Use this version of osgEarth:
 
Use this version of osgEarth:
 
* git clone -v -b OsgEarthNext https://github.com/poweroftwo/osgearth.git osgearth
 
* git clone -v -b OsgEarthNext https://github.com/poweroftwo/osgearth.git osgearth
 +
 +
{{FGCquote
 +
  |This is yet another auto-builder for Flightgear and for the time being specific to '''Windows 64bit ONLY'''.  It is particularly geared toward building FG with the latest incarnation of the osgEarth integration.  The simple minded script attempts to download all needed and hopefully manages conflicts with your user/system environment variables properly.  Also, a minimal sized fgdata is downloaded as a starting point.<br/>
 +
<br/>
 +
It is a work in progress and will be refined over time.  Hopefully Linux and Mac versions will follow.  It is proves to work well, I plan to update the wiki.  <br/>
 +
<br/>
 +
[Special thanks to Alant for doing early testing]<br/>
 +
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=213447#p213447
 +
    |title=<nowiki>auto-builder for Flightgear / osgEarth build</nowiki>
 +
    |author=<nowiki>poweroftwo</nowiki>
 +
    |date=<nowiki>Wed Jun 25</nowiki>
 +
  }}
 +
}}
  
 
}}
 
}}

Revision as of 15:10, 26 June 2014

This article is a stub. You can help the wiki by expanding it.
Note  This article contains outdated instructions still referring to the 2.12 integration branches. Meanwhile, those branches have been updated for 3.x - and developers are exploring the possibility to get this committed into mainline for the upcoming release.

These should be the public links to the flightgear / osgEarth repositories (note that latest development is found in OsgEarthNext branch)

Use this version of osgEarth:

Cquote1.png This is yet another auto-builder for Flightgear and for the time being specific to Windows 64bit ONLY. It is particularly geared toward building FG with the latest incarnation of the osgEarth integration. The simple minded script attempts to download all needed and hopefully manages conflicts with your user/system environment variables properly. Also, a minimal sized fgdata is downloaded as a starting point.


It is a work in progress and will be refined over time. Hopefully Linux and Mac versions will follow. It is proves to work well, I plan to update the wiki.

[Special thanks to Alant for doing early testing]


— poweroftwo (Wed Jun 25). auto-builder for Flightgear / osgEarth build.
(powered by Instant-Cquotes)
Cquote2.png


Objective

Assumptions

  • You already have working branches of SG/FG and FGData, 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" (to run a parallel build, pass -j x, where is x the number of cores available/to be used)
  • next, build SimGear

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
  • run make -j4 install
  • switch to your FG_SRC directory

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

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