]> git.mxchange.org Git - flightgear-website.git/blob - fgcom.html
Removed and ignored as it should remain here
[flightgear-website.git] / fgcom.html
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">
3 <head>
4         <title>Quix0r&#39;s FlightGear Webpage - Compilation hints for FGCOM</title>
5 </head>
6
7 <body>
8
9 <center><big><big><strong>Compilation hints for FGCOM</strong></big></big></center>
10
11 <p>
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
14         save you a lot time.
15 </p>
16
17 <p>
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.
21 </p>
22
23 <p>
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:
27 </p>
28
29 <p>
30         <pre>svn co https://appfgcom.svn.sourceforge.net/svnroot/fgcom/branches/fgcom3</pre>
31 </p>
32
33 <p>
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:
36 </p>
37
38 <p>
39         <pre>cd fgcom3
40 $EDITOR Makefile</pre>
41 </p>
42
43 <p>
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
46 </p>
47
48 <p>
49         <pre>[...]
50 INSTALL_BIN:=/opt/bin
51 INSTALL_DIR:=/opt/fgcom
52 [...]
53 LDFLAGS:=-L$(INSTALL_DIR)/lib
54 [...]</pre>
55 </p>
56
57 <p>
58         The LDFLAGS line contains a space in the unmodified version which my linker doesn't like. So I need to hack that away.
59 </p>
60
61 <p>
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 &quot;fgcom&quot; 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.
68 </p>
69
70 <p>
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
73         the linker.
74 </p>
75
76 <p>
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):
79 </p>
80
81 <p><pre>
82 /opt/fgcom/lib
83 </pre></p>
84
85 <p>
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>.
89 </p>
90
91 <p>
92         <big><strong>Meet you in FGFS. :)</strong></big>
93 </p>
94
95 <p>
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. :)
98 </p>
99
100 <p align="center">
101         <small>
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&auml;der</a><br />
105                 <a href="flights.html">My flights</a> |
106                 <a href="fgdata-bundle.html">fgdata.bundle</a> |
107                 <em>FGCOM</em> |
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>
112         </small>
113 </p>
114
115 <p>
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&#39;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>.
129 </p>
130
131 </body>
132 </html>