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

134 lines
4.2 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>Plib 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="Plib installation"/>
<meta name="author" content="Bernhard Wymann"/>
<meta name="keywords" content="torcs, plib, 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>Plib Installation</h1>
<h3>Checking Plib</h3>
<p>First we check if there is already the required plib version installed (TORCS
1.2.4 has been tested with plib version 1.8.3):</p>
<p><tt>$ rpm -qa | grep plib</tt></p>
<p>In case we find plib 1.8.3 everything is fine and you can
<a href="./torcs-install.html">skip</a> the rest of this
section. If you find plib in any other
version (e. g. 1.4.2., 1.5.0 or 1.6.1) you have to remove the
packages:</p>
<p>
<tt>
plib-1.4.2-30<br/>
plib-examples-1.4.1-32<br/>
</tt>
</p>
<p>Remove first the plib-examples package and then plib (you need to be root):</p>
<p>
<tt>
# rpm -e plib-examples<br/>
# rpm -e plib<br/>
</tt>
</p>
<p>There is no danger in removing plib, because it contains just static libraries, so if something
goes wrong you can force the remove.</p>
<h3>Download and Unpack Plib</h3>
<p>
Download plib-1.8.3.tar.gz from
<a href="http://plib.sourceforge.net" target="_parent">
here</a>. TORCS has been tested against 1.8.3, for other versions we guarantee for nothing!
Stay as root and do</p>
<p>
<tt>
# cd /usr/src<br/>
# mkdir torcs<br/>
# cd torcs<br/>
# tar xfvz /path_to_downloaded_files/plib-1.8.3.tar.gz<br/>
# cd plib-1.8.3<br/>
</tt>
</p>
<h3>Compiling and Installing Plib</h3>
<p>
You are still root and in /usr/src/torcs/plib-1.8.3, if you run a 64 bit version
of Linux export the following variables:</p>
<p>
<tt>
# export CFLAGS="-fPIC"<br/>
# export CPPFLAGS=$CFLAGS<br/>
# export CXXFLAGS=$CFLAGS<br/>
</tt>
</p>
<p>
Now for all platforms run:
</p>
<p>
<tt>
# ./configure<br/>
# make<br/>
# make install<br/>
</tt>
</p>
<p>
Just to play safe clear the above defined variables:
</p>
<p>
<tt>
# export CFLAGS=<br/>
# export CPPFLAGS=<br/>
# export CXXFLAGS=<br/>
</tt>
</p>
<p>
If something fails you need to resolve it. In case the configure script complained
about something you can find some additional information in the file config.log. The
cause for problems are usually missing header files or libraries, wrong versions or
multiple versions installed.<br/><br/>
</p>
</td>
</tr>
</table>
<table class="navigation_foot">
<tr>
<td class="navigation_foot">
<a href="./packages.html">
<p style="text-align:left;">Back</p>
</a>
</td>
<td class="navigation_foot">
<a href="./openal-install.html">
<p style="text-align:right;">Now lets hop to OpenAL.</p>
</a>
</td>
</tr>
</table>
</body>
</html>