Andrew Ferrier

Economics; Travel; Film; and Technology.

Compiling FlightGear 2.4.0 for Ubuntu Linux 10.04 (Lucid)

with 31 comments

Update 2011-08-26: If you are using Ubuntu 11.04 or later, it looks like this is now packaged as a .deb by PlayDeb. This post may still be of interest to those using earlier versions of Ubuntu.

I recently had cause to install FlightGear 2.4.0 on Ubuntu 10.04. It’s not packaged in the form of a deb yet, so I’ve documented the commands I used. No guarantees this’ll work for you, as I haven’t tested them rigorously; and I’m assuming some Linux and command-line knowledge.

  • Install some dependencies (this may not be a complete list; it’s simply the set I was missing). If you get warnings below about missing libraries, hunt around for them in the Ubuntu archives.
    sudo apt-get install libboost-graph-dev libopenal-dev libalut-dev libopenscenegraph-dev libjpeg62-dev libplib-dev zlib1g-dev
  • Get SimGear 2.4.0, unpack it into a temporary directory, and install it (checkinstall will create a deb for you as a side-effect, and install that so you can uninstall with apt if necessary). I’m using -j10on make as I have many CPU cores; you may want to tune this to match your number, although it will only affect the speed of build.
    ./configure --with-jpeg-factory ; make -j10 ; sudo checkinstall
  • Get the FlightGear 2.4.0 source(at the time of writing, the file with the slightly more recent timestamp) and install it:
    ./configure ; make -j10 ; sudo checkinstall
  • Get the 2.4.0 “Base” package and unpack it to /usr/share/local/flightgear. The tarball contains a data/ directory at the top level; you need to move directories around after unpacking so that the flightgear/directory contains direct subdirectories:
    ls -1 /usr/local/share/flightgear/
    AI
    Aircraft
    Airports
    Astro
    ATC
    AUTHORS
    etc...
  • You’re done! Run fgfs to launch Flightgear (there’s no GUI so you’ll have to become familiar with the command-line switches).

Written by andrewferrier

August 17th, 2011 at 6:30 pm

31 Responses to 'Compiling FlightGear 2.4.0 for Ubuntu Linux 10.04 (Lucid)'

Subscribe to comments with RSS or TrackBack to 'Compiling FlightGear 2.4.0 for Ubuntu Linux 10.04 (Lucid)'.

  1. There is a FG GUI tolunch the flightgear: the FGRUN. I found the .deb package

    Stephen

    20 Aug 11 at 21:08:00

  2. Thanks you very much! :-) This was very helpful, though I compiled mine on OpenSUSE 11.4 Tumbleweed. The only headache was finding analogues of dependencies, though figured out in few mins.

    Jason

    24 Aug 11 at 21:08:58

  3. I was installing on Ubuntu 11.04 – not many games here – and had to:

    sudo apt-get install libopenscenegraph-dev

    Dennis

    25 Aug 11 at 03:08:36

  4. Dennis, thanks for the clarification. I already had that package installed – have added it to the list.

    andrewferrier

    25 Aug 11 at 09:08:48

  5. Also, is it “/usr/share/local/flightgear” or “/usr/local/share/flightgear”, and why there not /usr/games (or is this so V2.0 and V2.4 can co exist)?

    Michael

    25 Aug 11 at 22:08:15

  6. It’s /usr/local/share/flightgear.

    andrewferrier

    26 Aug 11 at 13:08:42

  7. Had some hard times with downloading 2.4.0 Base Package, here an efficient link : http://ftp.linux.kiev.ua/pub/mirrors/ftp.flightgear.org/flightgear/Shared/

    pollux

    29 Aug 11 at 17:08:06

  8. Hi,
    Thanks a lot for this guide. I am compiling right now in Ubuntu 10.04. Previously I installed FGFS1.9.1 via the Package Manager, and uninstalled before I compile this. I would like to add that I also had to install “libjpeg62-dev” in order to compile SimGear2.4.0 and “libplib-dev” for FlightGear2.4.0

    Guille

    4 Sep 11 at 06:09:18

  9. Guille, thanks. I’ve updated the list of dependencies.

    andrewferrier

    6 Sep 11 at 10:09:08

  10. Hello,

    To anyone that cares, if you happen to receive a seg fault upon fgfs execution, you probably used to play with an earlier version of the build. Try renaming your existing FG_HOME directory (e.g. /home/your_user_name/.fgfs) so the new version can recreate the directory appropriately.

    Rich

    7 Sep 11 at 03:09:23

  11. Thanks much for this. I saw that PlayDeb supposedly had the 2.4 debs, but for some reason, it kept deferring to the 2.0 debs in the repos. Oh well, compiling went well, and reminded me of my Gentoo days ;)

    Kudos,
    Dave

    Dave J.

    11 Sep 11 at 13:09:36

  12. Installing simgear required to manually create two directories, then it successfully installed. Not sure why, it complained, I manually added and reran checkinstall.

    sudo mkdir /usr/local/include/simgear
    sudo mkdir /usr/local/include/simgear/scene

    Dale

    26 Sep 11 at 05:09:18

  13. And I meant to say, THANKS Very Much! for the clear install instructions and dependencies list, that list got all that I needed.

    Dale

    26 Sep 11 at 05:09:02

  14. actually, needed openscenegraph 3.0.1 also, that takes a while to build and install…still going

    Dale

    26 Sep 11 at 07:09:11

  15. Thanks to pollux for the mirror… I’d been trying to download from flightgear ftp for over two weeks and the download always failed. Now I got the file!

    Eric

    17 Oct 11 at 19:10:43

  16. I could not download FlightGear 2.4.0 >:(

    Lamebutt

    9 Nov 11 at 18:11:20

  17. :(

    Lamebutt

    9 Nov 11 at 18:11:35

  18. :P
    :(

    Lamebutt

    9 Nov 11 at 18:11:55

  19. How do I run on Ubuntu 11.10?

    rodoman

    3 Jan 12 at 18:01:31

  20. Hunt around for them in the archives? Tell me you’re not serious. That’s a real help.

    Mitchell

    10 Jan 12 at 11:01:14

  21. Hope this works, I’m still using 10.04.3. Thanks in advance!

    Lucas

    16 Jan 12 at 13:01:53

  22. Thanks a lot! Note, please, that it have to be done in userspace, f.e. ~/TMP/

    OCEAN

    21 Jan 12 at 19:01:45

  23. Thank you very much! It also works perfectly in my Ubuntu 11.10 (oneric) installation. ;)

    Dan Serban

    6 Feb 12 at 19:02:52

  24. From an essentially fresh install of 10.04.3 I also had to install package zlib1g-dev. Thanks for keeping it simple.

    Jonny

    15 Feb 12 at 21:02:25

  25. Jonny, thanks, I’ve added that to the list.

    andrewferrier

    15 Feb 12 at 21:02:05

  26. You can also download a precompiled version of FG 2.4 for Ubuntu from

    http://www.unitedfreeworld.com/downloads-pre-compiled-packages-linux-ubuntu/

    This was a much easier choice for me..

    Good luck

    Mahen tan

    22 Feb 12 at 00:02:22

  27. Builds and installs perkect with

    Ubuntu 11.04 (Linux 2.6.38-8-generic #42-Ubuntu SMP i686 athlon i386 GNU/Linux)

    “thumb up”

    Packages from playdeb do not work stable on my machine, this HOWTO solved this issue!
    thank you very much!

    tracy

    tracy

    1 Mar 12 at 08:03:59

  28. I’ve walked away from FlightGear for a year, hoping for improvement. When I gave up Windows in 1999 for Linux, I started missing having a flight simulator. I still do.

    The Linux experience is second-class. When we’re fortunate enough to find packages, they don’t include a GUI. And getting it as a second package and spending an hour working out environment variables isn’t an answer.

    The planes work, mostly. I’m still selecting aircraft from the command line, COMPLETELY unaware of all the work that’s been done on radios and autopilot, I’m just happy to get in the air at all.

    My joystick’s very standard…Logitech Extreme 3d. But I fly with the stick 1/3 up, no controls on the stick make sense…no one ever worked any of this out.

    I’m no programmer. Most Mac people aren’t either. And I don’t see anyone on Windows using a flight simulator fiddling with a joystick definition when they can just steal another program and fly it, instead.

    I’ve spend many, many hours *just* to get to the basic flight, with trim-tabs, flaps and the HAT selector to work. I shouldn’t have to do that *every* release.

    So tell me. Has there been any movement in the last year on _really_ improving user experience?

    Brian Fahrlander

    12 Mar 12 at 15:03:19

  29. Is flightgear available for Linux Mint 12 LXE 64bit yet

    Ken Tooele

    12 Apr 12 at 22:04:44

  30. Thanks you. Compiling FlightGear Download is working well for me so far,

    Greg Hill

    2 Sep 12 at 01:09:33

  31. I may try this method with other flight simulators as well. flightsimulatordownloadd.org

    Greg Hill

    2 Sep 12 at 01:09:45

Leave a Reply

fedex proscar without priscription buy Seroquel 100mg order Adobe Acrobat X Pro prednisone overnight us delivery buy xenical without rx xenical online purchase Flomax cash on delivery order cytotec online overnight shipping Non perscription cheap prednisone Lisinopril from india is it safe buy Valtrex cash on delivery no prescription Proscar cod delivery buy Lisinopril online no prescription buy Metformin cod where to buy generic Amitriptyline online without a rx how to get a prednisone prescription buy prednisone without a rx overnight delivery buy cheap online pharmacy Cytotec purchase Atarax online no membership overnight shipping buy genuine Premarin online order accutane where can i get prednisone without a prescription Atarax buy cod purchase Proscar online buy Maxalt line Maxalt buy online in stock order Maxalt no rx buy Premarin without where buy Crestor prednisone 40 mg without a prescription order rx free Nizoral buy Valtrex and Valtrex cheap Accutane for sale online no prescription required xenical perscription from s online buy Xenical no visa online without prescription prednisone buy online purchase cheap online Xenical generic Atarax cost buy prednisone cheap without perscription generic 20mg prednisone online xenical online no rx overnight Valtrex 1000mg Proscar espana where can i buy herbal finpecia order finpecia no visa xenical without a perscription order online Prednisone without prescription prednisone online without prescription Rosuvastatin order online purchase Atarax pay pal online without prescription discount Atarax purchase generic Valtrex online how to buy Proscar online without rx purchase Crestor pay pal without rx buy Accutane cod next day delivery buy Crestor shipped cod Buy prednisone without a perscription to ship overnight Crestor precio where to buy Zithromax Zithromax buy Crestor no scams order cytotec mastercard Orlistat fedex purchase Buspar money purchase Zithromax online order saturday delivery order Zithromax for cash on delivery order buy Maxalt online buy Valtrex discount buy Metformin without prescription buy Crestor line Crestor overnight no consult Premarin uk no prescription Premarin with fedex buy Premarin online us pharmacy prednisone no prescription required uk Valtrex generic Crestor prices buy Valtrex no visa online without rx what does Nizoral look like cheap Buspar by money order order ventolin online no prescription purchase Premarin online without script buy Atarax without prescription Orlistat online purchase order rx free Atarax buy Orlistat online now