Advertisement
Guest User

Untitled

a guest
Oct 18th, 2014
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. % Build FlightGear w/ OsgEarth support on Arch
  2. % 2014-10-18
  3. % Cem
  4.  
  5. Using packages:
  6.  
  7. ~~~
  8. $ pacman -Q boost openal freealut plib openscenegraph gdal
  9. boost 1.56.0-2
  10. openal 1.16.0-1
  11. freealut 1.1.0-5
  12. plib 1.8.5-5
  13. openscenegraph 3.2.1-2
  14. gdal 1.11.1-1
  15. ~~~
  16.  
  17. Using the repos from the wiki: http://wiki.flightgear.org/Building_FlightGear_with_osgEarth_Integration
  18.  
  19. Under /home/cem/FlightGear/FG-GIT/
  20. ~~~
  21. $ mkdir install-fg-osgearth
  22. ~~~
  23.  
  24. Under /home/cem/FlightGear/FG-GIT/src/
  25.  
  26. ### Build osgearth
  27.  
  28. ~~~
  29. $ git clone -v -b OsgEarthNext https://github.com/poweroftwo/osgearth.git osgearth
  30. $ mkdir build-osgearth
  31. $ cd build-osgearth
  32. $ cmake -DCMAKE_INSTALL_PREFIX=/home/cem/FlightGear/FG-GIT/install-fg-osgearth ../osgearth
  33. $ make -j2 install
  34. ~~~
  35.  
  36. ### Build simgear
  37.  
  38. ~~~
  39. $ git clone -v -b OsgEarthNext git://gitorious.org/fg/simgear-osgearth.git simgear
  40. $ mkdir build-simgear
  41. $ cd build-simgear
  42. $ cmake -DCMAKE_INSTALL_PREFIX=/home/cem/FlightGear/FG-GIT/install-fg-osgearth ../simgear
  43. $ make -j2 install
  44. ~~~
  45.  
  46. ### Build flightgear
  47.  
  48. ~~~
  49. $ git clone -v -b OsgEarthNext git://gitorious.org/fg/flightgear-osgearth.git flightgear
  50. $ mkdir build-flightgear
  51. $ cd build-flightgear
  52. $ SIMGEAR_DIR=/home/cem/FlightGear/FG-GIT/install-fg-osgearth cmake -DCMAKE_INSTALL_PREFIX=/home/cem/Flig
  53. htGear/FG-GIT/install-fg-osgearth ../flightgear
  54. $ make -j2 install
  55. ~~~
  56.  
  57. Correct gdal path:
  58. ~~~
  59. $ cd flightgear/src/Viewer
  60. $ $ diff OsgEarthHeightField.cxx OsgEarthHeightField.cxx_ORIGINAL.2014-10-18
  61. 57,60c57,60
  62. < # include <cpl_string.h>
  63. < # include <gdal_priv.h>
  64. < # include <cpl_conv.h>
  65. < # include <ogr_spatialref.h>
  66. ---
  67. > # include <gdal/cpl_string.h>
  68. > # include <gdal/gdal_priv.h>
  69. > # include <gdal/cpl_conv.h>
  70. > # include <gdal/ogr_spatialref.h>
  71. 667c667
  72. < #endif
  73. ---
  74. > #endif
  75. \ No newline at end of file
  76. ~~~
  77.  
  78. Compile error at 100%:
  79. ~~~
  80. Linking CXX executable fgfs
  81. /usr/bin/ld: CMakeFiles/fgfs.dir/__/Viewer/OsgEarthHeightField.cxx.o: undefined reference to symbol '_ZN1
  82. 7GDALDriverManager15GetDriverByNameEPKc'
  83. /usr/lib/libgdal.so.1: error adding symbols: DSO missing from command line
  84. collect2: error: ld returned 1 exit status
  85. src/Main/CMakeFiles/fgfs.dir/build.make:8831: recipe for target 'src/Main/fgfs' failed
  86. make[2]: *** [src/Main/fgfs] Error 1
  87. CMakeFiles/Makefile2:1555: recipe for target 'src/Main/CMakeFiles/fgfs.dir/all' failed
  88. make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Error 2
  89. Makefile:137: recipe for target 'all' failed
  90. make: *** [all] Error 2
  91. ~~~
  92. (More errors or warnings above.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement