Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Build FlightGear w/ OsgEarth support on Arch
- % 2014-10-18
- % Cem
- Using packages:
- ~~~
- $ pacman -Q boost openal freealut plib openscenegraph gdal
- boost 1.56.0-2
- openal 1.16.0-1
- freealut 1.1.0-5
- plib 1.8.5-5
- openscenegraph 3.2.1-2
- gdal 1.11.1-1
- ~~~
- Using the repos from the wiki: http://wiki.flightgear.org/Building_FlightGear_with_osgEarth_Integration
- Under /home/cem/FlightGear/FG-GIT/
- ~~~
- $ mkdir install-fg-osgearth
- ~~~
- Under /home/cem/FlightGear/FG-GIT/src/
- ### Build osgearth
- ~~~
- $ git clone -v -b OsgEarthNext https://github.com/poweroftwo/osgearth.git osgearth
- $ mkdir build-osgearth
- $ cd build-osgearth
- $ cmake -DCMAKE_INSTALL_PREFIX=/home/cem/FlightGear/FG-GIT/install-fg-osgearth ../osgearth
- $ make -j2 install
- ~~~
- ### Build simgear
- ~~~
- $ git clone -v -b OsgEarthNext git://gitorious.org/fg/simgear-osgearth.git simgear
- $ mkdir build-simgear
- $ cd build-simgear
- $ cmake -DCMAKE_INSTALL_PREFIX=/home/cem/FlightGear/FG-GIT/install-fg-osgearth ../simgear
- $ make -j2 install
- ~~~
- ### Build flightgear
- ~~~
- $ git clone -v -b OsgEarthNext git://gitorious.org/fg/flightgear-osgearth.git flightgear
- $ mkdir build-flightgear
- $ cd build-flightgear
- $ SIMGEAR_DIR=/home/cem/FlightGear/FG-GIT/install-fg-osgearth cmake -DCMAKE_INSTALL_PREFIX=/home/cem/Flig
- htGear/FG-GIT/install-fg-osgearth ../flightgear
- $ make -j2 install
- ~~~
- Correct gdal path:
- ~~~
- $ cd flightgear/src/Viewer
- $ $ diff OsgEarthHeightField.cxx OsgEarthHeightField.cxx_ORIGINAL.2014-10-18
- 57,60c57,60
- < # include <cpl_string.h>
- < # include <gdal_priv.h>
- < # include <cpl_conv.h>
- < # include <ogr_spatialref.h>
- ---
- > # include <gdal/cpl_string.h>
- > # include <gdal/gdal_priv.h>
- > # include <gdal/cpl_conv.h>
- > # include <gdal/ogr_spatialref.h>
- 667c667
- < #endif
- ---
- > #endif
- \ No newline at end of file
- ~~~
- Compile error at 100%:
- ~~~
- Linking CXX executable fgfs
- /usr/bin/ld: CMakeFiles/fgfs.dir/__/Viewer/OsgEarthHeightField.cxx.o: undefined reference to symbol '_ZN1
- 7GDALDriverManager15GetDriverByNameEPKc'
- /usr/lib/libgdal.so.1: error adding symbols: DSO missing from command line
- collect2: error: ld returned 1 exit status
- src/Main/CMakeFiles/fgfs.dir/build.make:8831: recipe for target 'src/Main/fgfs' failed
- make[2]: *** [src/Main/fgfs] Error 1
- CMakeFiles/Makefile2:1555: recipe for target 'src/Main/CMakeFiles/fgfs.dir/all' failed
- make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Error 2
- Makefile:137: recipe for target 'all' failed
- make: *** [all] Error 2
- ~~~
- (More errors or warnings above.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement