From Source
-
Make sure you have (and have correctly installed) the following libraries:
- An implementation of the OpenGL API version 1.1 or greater (Mesa versions >= 3.2 work; see http://mesa3d.sourceforge.net). Note that you will need a hardware-accelerated implementation of OpenGL in order for Tux Racer to be playable.
- The GLUT library, version 3.7 beta or greater. This is distributed in the MesaDemos package, so if you have installed Mesa you probably also have GLUT. Otherwise, see http://www.opengl.org.
- Tcl Version 8.0 or greater.
- (Optional) Simple DirectMedia Layer (SDL) Version 1.1.1 or greater. This is required for joystick support.
- (Optional) SDL_mixer Version 1.0 or greater. This is required for sound and music support.
-
Obtain the tuxracer-<version>.tar.gz and tuxracer-data-<version>.tar.gz files from the Downloads page.
-
Unpack the code tarball:
shell$ tar xvfz tuxracer-<version>.tar.gz
shell$ cd tuxracer-<version> -
Configure for your system:
shell$ ./configure <configure options>
Many people will be able to run configure without passing any options. The more commonly-used configure options are:
- --prefix=DIR: Specify where to install tuxracer. (The tuxracer binary will be placed in DIR/bin)
- --with-tcl-libs=DIR: Specify Tcl library location
- --with-tcl-inc=DIR: Specify Tcl header file location
- --with-tcl-lib-name=NAME: Specify Tcl library base name
- --with-gl-libs=DIR: Specify OpenGL library location
- --with-gl-inc=DIR: Specify OpenGL header file location
- --with-glut-libs=DIR: Specify GLUT library location
- --with-glut-inc=DIR: Specify GLUT header file location
- --enable-stencil-buffer: Use if your hardware has a stencil buffer
- --with-data-dir=PATH: Location of tuxracer data directory (can be also configured in options file later)
Run ./configure --help for a complete list of options.
-
Compile:
shell$ make
Tux Racer should compile cleanly, with few (if any) warnings. Please see the FAQ or our Support page if Tux Racer fails to compile.
-
Install the tuxracer binary:
shell$ make install
Unless you specified the --prefix option when you ran configure, this command will install the tuxracer binary in /usr/local/bin
-
Install the data files:
shell$ cd /usr/local/share
shell$ tar xvfz /path/to/tuxracer-data-<version>.tar.gz
shell$ mv tuxracer-data-<version> tuxracerYou may install the data files anywhere you wish, but tuxracer looks in /usr/local/share/tuxracer by default.
-
You're done!
From RPMs
-
Obtain tuxracer-<version>.rpm and tuxracer-data-<version>.rpm from your distribution vendor (Sunspire Studios is not providing RPMs at this time).
-
As root, run:
shell$ rpm -Uvh tuxracer-data-<version>.rpm
shell$ rpm -Uvh tuxracer-<version>.rpm -
You're done!
0 commenti:
Post a Comment