speed-dreams/doc/tutorials/robot/torcs/install/torcs-install.html

125 lines
5.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!--
copyright : (C) 2003-2004 Bernhard Wymann
email : berniw@bluewin.ch
version : $Id$
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
Free Documentation License".
-->
<head>
<title>TORCS Installation</title>
<link rel="stylesheet" type="text/css" href="../../css/format.css"/>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/>
<meta name="description" content="TORCS Installation"/>
<meta name="author" content="Bernhard Wymann"/>
<meta name="keywords" content="torcs, install, berniw, bernhard wymann"/>
<script src="../../js/utilities.js" type="text/javascript"></script>
</head>
<body bgcolor="#ffffff">
<table class="maincontent">
<tr>
<td class="maincontent">
<h1>TORCS Installation</h1>
<h3>Unpacking Source Packages</h3>
<p>
If you didn't download a certain optional package, simply skip the command. Still as root do:
</p>
<p>
<tt>
# cd /usr/src/torcs<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-base.tgz<br/>
<!--# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-K1999.tgz<br/-->
<!--# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-astigot.tgz<br/-->
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-berniw.tgz<br/>
<!--# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-billy.tgz<br/-->
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-bt.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-robots-olethros.tgz<br/>
<!--# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-src-tools.tgz<br/-->
</tt>
</p>
<h3>Building TORCS</h3>
<p>So, fasten your seatbelts... we will run the configure script:</p>
<p>
<tt>
# cd /usr/src/torcs/torcs-1.2.4<br/>
# ./configure<br/>
</tt>
</p>
<p>
Optionally you can pass --enable-debug (to build a debug version) and/or --without-xrandr
(does not use xrandr extension) as argument to configure.
If there are any problems reported, you have to resolve them now. Remember the config.log file
which contains detailed information. If you get stuck, don't hesitate and mail to the
<a href="mailto:torcs-users@lists.sourceforge.net">torcs-users</a> mailing list. Now start building:
</p>
<p>
<tt>
# make >& error.log<br/>
</tt>
</p>
<p>
When compiling is done, we check the error.log for... errors, yep. TORCS doesn't stop on compile
errors, so you have to be careful. You can search the file for the string "error", if there is no hit,
everything is fine. Because configure checkes very well there will be most often no errors, which is good,
or quite bizare errors, which is not so good. In case you have SuSE 7.3 and upgraded to XFree86 4.2.0
from SuSE, you have a library in two versions, which will cause a linking error against GLU. Simply delete the
file /usr/X11R6/lib/libGLU.a (the right version is in /usr/lib). This is rather strange, because it's
a static library.
</p>
<h3>Installing TORCS</h3>
<p>
If everything worked fine till now, you can relax, the hard part is over. Run the following
commands to install TORCS and unpack the data.
</p>
<p>
<tt>
# make install<br/>
# cd /usr/local/share/games/torcs<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-tracks-road.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-tracks-dirt.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-tracks-oval.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-extra.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-nascar.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-Patwo-Design.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-kcendra-gt.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-kcendra-roadsters.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-kcendra-sport.tgz<br/>
# tar xfvz /path_to_downloaded_files/TORCS-1.2.4-data-cars-VM.tgz<br/>
</tt>
<br/><br/>
</p>
</td>
</tr>
</table>
<table class="navigation_foot">
<tr>
<td class="navigation_foot">
<a href="./openal-install.html">
<p style="text-align:left;">Back</p>
</a>
</td>
<td class="navigation_foot">
<a href="./torcs-setup.html">
<p style="text-align:right;">Wait, wait, we have still to do some stuff.</p>
</a>
</td>
</tr>
</table>
</body>
</html>