]> git.mxchange.org Git - flightgear.git/blob - docs-mini/README.IRIX
6d0906190af6b7a956d3131115f32682269696c3
[flightgear.git] / docs-mini / README.IRIX
1
2 This file is made possible by contributions from:
3         Todd Smith  <msmith@sikorsky.com>
4         Curt Olson  <curt@flightgear.org>
5         Erik Hofman <erik@ehofman.com>
6
7
8 1. Requirements
9
10 The following packages should be installed before FlightGear (or SimGear
11 or PLib) can be compiled on Irix:
12
13             Irix development headers and libraries
14             --------------------------------------
15
16         compiler_dev.sw.base            irix_dev.sw.headers
17         compiler_dev.sw.ld              dev.sw.lib
18         compiler_dev.sw.util
19         compiler_dev.hdr.lib            
20
21         gl_dev.sw.gldev                 dmedia_dev.sw.base
22         x_dev.sw.dev
23
24             MipsPro C and C++ Compiler environment
25             --------------------------------------
26
27         c++_dev.hdr.lib                 c_dev.sw.c
28         c++_dev.sw.c++                  c_fe.sw.c
29         c++_dev.sw.lib
30         c++_eoe.sw.lib
31         c++_fe.sw.c++
32
33
34             FlightGear Flight Simulator Software
35             ----------------------------------------
36
37         FlightGear:     http://www.flightgear.org
38         SimGear:        http://www.simgear.org
39         Plib:           http://plib.sourceforge.net
40         GLUT:           http://
41
42
43
44 2. Compiling and Installation
45
46 To create a set of binaries it is important to follow these steps. This
47 will build a statically linked executable /opt/bin/fgfs
48
49    1. Extract, and install GLUT, following the build guidelines provided
50       by the author of GLUT.
51
52    2. Extract, configure and install Plib:
53         automake -a -i
54         CXXFLAGS="-O2 -G0 -use_readonly_const -rdata_shared -I/opt/include" \
55         CFLAGS=$CXXFLAGS LDFLAGS="-L/opt/lib32" \
56         ./configure --prefix=/opt --libdir=/opt/lib32
57         make; make install
58
59    3. Extract, configure and install SimGear:
60         automake -a -i
61         CXXFLAGS="-O2 -G0 -use_readonly_const -rdata_shared -I/opt/include \
62             -woff 1001,1012,1014,1116,1172,1174,1401,1460,1551,1552,1681" \
63         CFLAGS="-Xcpluscomm "$CXXFLAGS LDFLAGS="-L/opt/lib32 -L../zlib" \
64         ./configure --prefix=/opt --libdir=/opt/lib32 --with-logging
65         sh ../FlightGear-0.x.x/irix-hack.sh
66         make; make install
67
68    4. Extract, configure and install FlightGear:
69         automake -a -i
70         CXXFLAGS="-O2 -G0 -use_readonly_const -rdata_shared -I/opt/include \
71             -woff 1001,1012,1014,1116,1172,1174,1401,1460,1551,1552,1681" \
72         CFLAGS="-Xcpluscomm "$CXXFLAGS LDFLAGS="-L/opt/lib32" \
73         CPPFLAGS="-woff 1014" \
74         ./configure --prefix=/opt --with-simgear=/opt --without-loging
75         sh ./irix-hack.sh
76         make; make install
77
78
79 The irix-hack.sh script fixes some compiler specific problems which were 
80 introduced after the adoption of the C++ Standard Template Library.
81 Not running this script will result in an error message like this:
82    CC ERROR: -ar option requires archive name to be specified with -o option
83
84 If this happens, just run the irix-hack script and continue with make.
85
86
87 The "automake -a -i" command is required because automake with automatic
88 dependency building breaks the native Irix compilers.
89
90
91 3. Running
92
93 Before the FlightGear program could be run it is important to install the
94 FlightGear base package (the default is to extract the base package into
95 /opt/bin/lib).
96
97 This package can be found at: http://www.flightgear.org
98
99 When all is set and done, just run /opt/bin/runfgfs
100 To see the command line options, run /opt/bin/runfgfs --help
101
102