Building FlightGear with osgEarth Integration: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 26: | Line 26: | ||
}} | }} | ||
== Objective == | == Objective == | ||
{{FGCquote | |||
|Someone able to build from source should still be able to get osgEarth working without too much effort - on Windows there should even be some kind of "overlay" (set of patch files) - I am not sure if those have recently been updated for 3.2 though. | |||
|{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=228406#p228406 | |||
|title=<nowiki>Re: 3.2 </nowiki> | |||
|author=<nowiki>Hooray</nowiki> | |||
|date=<nowiki>Tue Dec 30</nowiki> | |||
}} | |||
}} | |||
{{FGCquote | |||
|you do need osgEarth support for that, which is not included in any of the standard releases so far - which is why you need to follow the instructions from the osgEarth thread - however, osgEarth in 3.2 is a completely different matter, because this may very well involve building FlightGear from source - all of this is fairly well documented via a number of different wiki articles. However, it is a fairly technical and tedious process, certainly for people new to compiling software. In other words, osgEarth support in FlightGear in its current form hasn't yet been included in any official release, which means that it must be considered an experimental feature, which is primarily supported by the community, through a number of wiki articles, forum threads/postings and instructions on getting it to work. | |||
|{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=228441#p228441 | |||
|title=<nowiki>Re: 3.2 </nowiki> | |||
|author=<nowiki>Hooray</nowiki> | |||
|date=<nowiki>Tue Dec 30</nowiki> | |||
}} | |||
}} | |||
{{FGCquote | |||
|I believe that the OsgEarthNext branch can be built in Linux but seems to require some gyrations to accomplish the setup. see above conversations. | |||
The fgmindata is simply a minimal set of fgdata necessary to run Flightgear, particularly with the osgEarth build without having to download all of the fgdata repository. It contains only a handful of aircraft. | |||
I would not recommend dumping the contents on top of an existing fgdata data set unless you are careful about the merging. There are probably only about a dozen or so files that need to be added/merged to the existing fgdata set. | |||
If you have the fgdata git repository cloned already, you might consider adding a remote pointing to the fgdata-osgearth repository. That would allow you to cleanly manage as a separate branch. | |||
|{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=228114#p228114 | |||
|title=<nowiki>Re: Initial FlightGear / </nowiki> | |||
|author=<nowiki>poweroftwo</nowiki> | |||
|date=<nowiki>Fri Dec 26</nowiki> | |||
}} | |||
}} | |||
== Assumptions == | == Assumptions == |
Revision as of 14:44, 2 January 2015
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:
|
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