1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <title>Quix0r's FlightGear Webpage - Compilation hints for FGCOM</title>
9 <center><big><big><strong>Compilation hints for FGCOM</strong></big></big></center>
12 I had some trouble compiling <a rel="external" target="_blank" href="http://wiki.flightgear.org/index.php/FGCOM">FGCOM</a>
13 on my machine and which tag/branch/trunk I <i>should</i> compile. Here I would like to share my experiences with you and to
18 First of all, I cannot give you support for FGCOM. I am not a C++ hacker, so please understand me. But I did fix some parts
19 in FGCOM where you might not know how to continue. I have a Debian Unstable (sqeeze/sid at the moment of creating this
20 document) with GCC 4.3.4 (works great for compiling FGFS, FGCOM!). So you might check first, which compiler you have.
24 Then I have found out, you need some extra packages and my fix for a successfull compilation of FGCOM. But wait! Which one
25 now? The trunk is in bad shape (revision 226). So I took the branch <strong>fgcom3</strong> here. But before you can begin,
26 you need to check-out the repository:
30 <pre>svn co https://appfgcom.svn.sourceforge.net/svnroot/fgcom/branches/fgcom3</pre>
34 The next thing is the extra packages. I need <strong>libgnet2, libgnet-dev, liboggz2_1, liboggz2-dev</strong> to get
35 installed before I can finish compilation. That wasn't very hard for now. :-) So let's head over to compilation:
40 $EDITOR Makefile</pre>
44 Insert any favorite text editor for $EDITOR. For my setup, I need to change the installation path and the LDFLAGS variable.
45 The shown values below are only new values
51 INSTALL_DIR:=/opt/fgcom
53 LDFLAGS:=-L$(INSTALL_DIR)/lib
58 The LDFLAGS line contains a space in the unmodified version which my linker doesn't like. So I need to hack that away.
62 Now it is time to compile. Do a <i>make</i> in the fgcom3 directory. If you run in trouble, e.g. of missing or wrong spaces
63 between -L and /some/foo/path (maybe /opt/fgcom/lib?) then add or remove it like requested by the linker. Do a
64 <i>make clean</i> to cleanup everthing. Simply <i>make</i> won't give you what you want (you need cleanup). After
65 successfully building fgcom (no error line at the end) you should now see an executable file "fgcom" in the path
66 (do a <i>ls -l</i>). Well done! :-) Now, do a <i>make install</i> as a user with proper permission to write to the
67 installation paths) and you are nearly done.
71 If you have changed installation paths, you maybe will get an error message complaining about missing library files. YICKS!
72 We forgot to tell the dynamic linker, where our libs are, they went to /opt/fgcom/lib which is an unknown lookup path to
77 We need to help the linker finding the libs by creating a new file for ldconfig, let's say fgcom.conf, so the new library
78 path <i>/opt/fgcom/lib</i> is known to the dynamic linker. Here you can find my version (very simple):
86 Place that file into /etc/ld.conf.d/ as root. Now re-run <strong>ldconfig</strong> and fgcom (placed in /opt/bin) should not
87 complain about missing libraries. Now, try the loop-back test as described <a rel="external" target="_blank"
88 href="http://wiki.flightgear.org/index.php/FGCOM_Testing">here</a>.
92 <big><strong>Meet you in FGFS. :)</strong></big>
96 PS: My manually mirrored download archive for FlightGear can be found
97 <a href="pub/" target="_blank">here</a>. So take a look around. :)
102 Created: <strong>2009-12-06</strong> |
103 Last update: <strong>2011-01-11</strong> |
104 Author: <a href="mailto:roland_NOSPAM_@_REMOVE_THIS_mxchange_AND_THIS_.org">Roland Häder</a><br />
105 <a href="flights.html">My flights</a> |
106 <a href="fgdata-bundle.html">fgdata.bundle</a> |
108 <a href="rsync.html">How to rsync a scenery</a> |
109 <a href="links.html">Links collection</a> |
110 <a href="imprint.html">Imprint (needed in Germany)</a> |
111 <a href="index.html">Back to index</a>
116 <a rel="license" target="_blank"
117 href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img
118 alt="Creative Commons License" style="border-width:0"
119 src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br />
120 <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text"
121 property="dct:title" rel="dct:type">Quix0r's FlightGear Website</span> by <a
122 xmlns:cc="http://creativecommons.org/ns#" href="http://flightgear.mxchange.org"
123 property="cc:attributionName" rel="cc:attributionURL">Roland Haeder</a> is
124 licensed under a <a rel="license" target="_blank"
125 href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US">Creative Commons
126 Attribution-ShareAlike 3.0 Unported License</a>.<br />
127 Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" target="_blank" rel="dct:source"
128 href="http://flightgear.mxchange.org/repos/flightgear/trunk/">http://flightgear.mxchange.org/repos/flightgear/trunk/</a>.