UbuntuLinux 7.10日本語版にFlightGear 1.0.0をインストール

12月 28th, 2007

今現在UbuntuLinux 7.10においてFlightGearの最新版のversion 1.0.0がパッケージ化されていないので、どうしてもやりたくてソースからコンパイルしてみました。
作業記録は以下のとおり。

Get the Required Packages

FlightGearの公式サイトからSourceCodeのダウンロードページへいく。

必要なものはとりあえず

  • Latest Source Code
    公式サイトからDownload
  • Latest Base Package
    公式サイトからDownload
  • FreeGlut, FreeGlut-Dev
    sudo apt-get install freeglut3 freeglut3-dev
  • OpenAL, ALUT
    sudo apt-get install libopenal0a libopenal-dev libalut0 libalut-dev
  • plib ( portability libraries and scene graph. You need plib-1.8.4 or newer to build FlightGear 1.0.0.)
    sudo apt-get install plib1.8.4c2 plib1.8.4-dev
  • SimGear(simulation construction tools. You need SimGear-1.0.0 to build FlightGear-1.0.0.)
    simgearのページからダウンロードした。

http://wiki.flightgear.org/flightgear_wiki/index.php?title=Building_Flightgearより、必要なものをリストアップする。

  • C++ compiler
    These are: c++, cpp, gcc, g++ found under the /usr/bin directory. You will also need to have the tools autoconf and automake1.9 installed.
    とかいてある。autoconfとautomakeはなさそうだったから
    sudo apt-get install autoconf automake
    g++もなかったから同様に。
  • CVS
    Yes, the program is called ‘CVS’. This is used for downloading the latest set of source code. Windows developers may wish to see Using TortoiseCVS with FlightGear.
    これはクリアしていた。
  • OpenGL support
    More specifically, your system needs the support for hardware accelerated graphics. You can check for this by running:glxinfo | grep direct
    これでいけたからOKNote: To run the above command, you need to have the tool mesa-utils installed.You should then see:

    direct rendering: Yes

    This means you are good to go as far as OpenGL support is concerned.

    If you see:

    direct rendering: No

    Don’t panic yet. This may just mean some required libraries for hardware accelerated graphic are missing. Go ahead and try installing plib1.8.4 and its dependencies first. If you still get the above message, then you will need to do some googling and troubleshoot yourself.

  • Zlib-develop
    sudo apt-get install zlib1g-dev

SimGearのインストール

tar zxvf SimGear-1.0.0.tar.gz
cd ./SimGear-1.0.0/
./autogen.sh
./configure
make; sudo make install

エラーがないことを確認。

FlightGear-1.0.0

tar zxvf ./FlightGear-1.0.0.tar.gz
cd ./FlightGear-1.0.0/
./autogen.sh
./configure
make; sudo make install

エラーがなければOK。

FlightGear base package

fgfs-base-1.0.0.tar.bz2を展開する。
tar jxvf fgfs-base-1.0.0.tar.bz2
すると./dataというディレクトリができるので、
sudo mkdir /usr/local/share/FlightGear/
sudo cp-r ./data/usr/local/share/FlightGear/

これでコピーされる。

FlightGear Test Run

fgfs
これで何事もなく起動すればOK。

最後に

難しいことはよくわからないので、質問等には応じられない可能性が高いです。
困ったときはgooglingしてください。

 

Added – Jan. 31, 2008

Debianがパッケージしてくれていますが、これはlibc6 2.7以上が必要になりますので、ここに書いたとおりソースからコンパイルした方が良さそうです。
ちなみにFedora8でも同様の方法で成功しました。0.9.11がパッケージされていて利用できますので、そちらを使った方が安全かもしれません。

Posted in Ubuntu, コンピュータ, 飛行機 | No Comments »

Comments

Leave a Reply

 Comment Form