Difference between revisions of "TORCS"

From CBLFS
Jump to navigationJump to search
(Recommended)
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-src.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-src.tgz
 
|-
 
|-
 
!Download Patch:
 
!Download Patch:
 
|-
 
|-
| http://svn.cross-lfs.org/svn/repos/patches/torcs/torcs-1.2.4-gcc41_fixes-1.patch
+
| http://svn.cross-lfs.org/svn/repos/patches/torcs/torcs-{{TORCS-Version}}-gcc41_fixes-1.patch
 
|-
 
|-
 
!Download Robots (Required):
 
!Download Robots (Required):
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-src-robots-base.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-src-robots-base.tgz
 
|-
 
|-
 
!Download Robots (Optional):
 
!Download Robots (Optional):
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-src-robots-berniw.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-src-robots-berniw.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-src-robots-bt.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-src-robots-bt.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-src-robots-olethros.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-src-robots-olethros.tgz
 
|-
 
|-
 
!Data Packages (Required):
 
!Data Packages (Required):
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-tracks-road.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-tracks-road.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-cars-extra.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-cars-extra.tgz
 
|-
 
|-
 
!Date Packages (Optional):
 
!Date Packages (Optional):
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-tracks-oval.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-tracks-oval.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-tracks-dirt.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-tracks-dirt.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-cars-nascar.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-cars-nascar.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-cars-Patwo-Design.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-cars-Patwo-Design.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-cars-kcendra-gt.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-cars-kcendra-gt.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-cars-kcendra-roadsters.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-cars-kcendra-roadsters.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-cars-kcendra-sport.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-cars-kcendra-sport.tgz
 
|-
 
|-
| http://prdownloads.sourceforge.net/torcs/TORCS-1.2.4-data-cars-VM.tgz
+
| http://prdownloads.sourceforge.net/torcs/TORCS-{{TORCS-Version}}-data-cars-VM.tgz
 
|}
 
|}
  
Line 89: Line 89:
  
 
  sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
 
  sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
  patch -Np1 -i ../torcs-1.2.4-gcc41_fixes-1.patch &&
+
  patch -Np1 -i ../torcs-{{TORCS-Version}}-gcc41_fixes-1.patch &&
 
  ./configure --prefix=/usr &&
 
  ./configure --prefix=/usr &&
 
  make
 
  make
Line 105: Line 105:
  
 
  sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
 
  sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
  patch -Np1 -i ../torcs-1.2.4-gcc41_fixes-1.patch &&
+
  patch -Np1 -i ../torcs-{{TORCS-Version}}-gcc41_fixes-1.patch &&
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 \
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
Line 120: Line 120:
  
 
  sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
 
  sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
  patch -Np1 -i ../torcs-1.2.4-gcc41_fixes-1.patch &&
+
  patch -Np1 -i ../torcs-{{TORCS-Version}}-gcc41_fixes-1.patch &&
 
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 \
 
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
Line 135: Line 135:
  
 
  sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
 
  sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
  patch -Np1 -i ../torcs-1.2.4-gcc41_fixes-1.patch &&
+
  patch -Np1 -i ../torcs-{{TORCS-Version}}-gcc41_fixes-1.patch &&
 
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 \
 
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
Line 149: Line 149:
 
Each of the data packages you downloaded needs to be extracted in '''/usr/share/games/torcs'''. Below is a quick way todo it:
 
Each of the data packages you downloaded needs to be extracted in '''/usr/share/games/torcs'''. Below is a quick way todo it:
  
  for dpkg in ../TORCS-1.2.4-data*; do
+
  for dpkg in ../TORCS-{{TORCS-Version}}-data*; do
 
   tar xvf $dpkg -C /usr/share/games/torcs
 
   tar xvf $dpkg -C /usr/share/games/torcs
 
  done
 
  done

Revision as of 13:27, 17 December 2006

Download Source:
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-src.tgz
Download Patch:
http://svn.cross-lfs.org/svn/repos/patches/torcs/torcs-1.3.0-gcc41_fixes-1.patch
Download Robots (Required):
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-src-robots-base.tgz
Download Robots (Optional):
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-src-robots-berniw.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-src-robots-bt.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-src-robots-olethros.tgz
Data Packages (Required):
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-tracks-road.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-cars-extra.tgz
Date Packages (Optional):
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-tracks-oval.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-tracks-dirt.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-cars-nascar.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-cars-Patwo-Design.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-cars-kcendra-gt.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-cars-kcendra-roadsters.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-cars-kcendra-sport.tgz
http://prdownloads.sourceforge.net/torcs/TORCS-1.3.0-data-cars-VM.tgz

Extract the src and robots packages into the same directory before you issue any commands.

The robots package provides the drivers that you will race against. Below is a list of drivers that each of the packages provides:

  • robots-base (Required)
    • tita
    • lliaw
    • damned
    • cylos1
    • tanhoj
    • inferno
    • inferno2
  • robots-berniw (Optional)
    • sparkle
    • berniw
    • berniw2
    • berniw3
  • robots-bt (Optional)
    • bt
  • robots-olethros (Optional)
    • olethros

The data packages, not extracted with the source and drivers packages, provides track, car, and other information.


Dependencies

Required

Recommended

Non-Multilib

Compile the package:

sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
patch -Np1 -i ../torcs-1.3.0-gcc41_fixes-1.patch &&
./configure --prefix=/usr &&
make

Install the package

make install

Multilib

This package does not provide any external libraries so only one installation is needed

32Bit

Compile the package:

sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
patch -Np1 -i ../torcs-1.3.0-gcc41_fixes-1.patch &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
./configure --prefix=/usr &&
make

Install the package

make install

N32

Compile the package:

sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
patch -Np1 -i ../torcs-1.3.0-gcc41_fixes-1.patch &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 \
PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install

64Bit

Compile the package:

sed -i "/^LIBS/s/$/ -lalut/" src/modules/graphic/ssggraph/Makefile &&
patch -Np1 -i ../torcs-1.3.0-gcc41_fixes-1.patch &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install

Installing the Data Packages

Each of the data packages you downloaded needs to be extracted in /usr/share/games/torcs. Below is a quick way todo it:

for dpkg in ../TORCS-1.3.0-data*; do
  tar xvf $dpkg -C /usr/share/games/torcs
done