-2. Compiling and Installation
-
-To create a set of binaries it is important to follow these steps. This
-will build a statically linked executable /opt/bin/fgfs
-
- 1. Extract, and install GLUT, following the build guidelines provided
- by the author of GLUT.
-
- 2. Extract, configure and install Plib:
- automake -a -i
- CXXFLAGS="-O2 -G0 -use_readonly_const -rdata_shared -I/opt/include" \
- CFLAGS=$CXXFLAGS LDFLAGS="-L/opt/lib32" \
- ./configure --prefix=/opt --libdir=/opt/lib32
- make; make install
-
- 3. Extract, configure and install SimGear:
- automake -a -i
- CXXFLAGS="-O2 -G0 -use_readonly_const -rdata_shared -I/opt/include \
- -woff 1001,1012,1014,1116,1172,1174,1401,1460,1551,1552,1681" \
- CFLAGS="-Xcpluscomm "$CXXFLAGS LDFLAGS="-L/opt/lib32 -L../zlib" \
- ./configure --prefix=/opt --libdir=/opt/lib32 --with-logging
- sh ../FlightGear-0.x.x/irix-hack.sh
- make; make install
-
- 4. Extract, configure and install FlightGear:
- automake -a -i
- CXXFLAGS="-O2 -G0 -use_readonly_const -rdata_shared -I/opt/include \
- -woff 1001,1012,1014,1116,1172,1174,1401,1460,1551,1552,1681" \
- CFLAGS="-Xcpluscomm "$CXXFLAGS LDFLAGS="-L/opt/lib32" \
- CPPFLAGS="-woff 1014" \
- ./configure --prefix=/opt --with-simgear=/opt --without-loging
- sh ./irix-hack.sh
- make; make install