page updated the 4th of august 2007

Torque compilation


The compilation of Torque must follow the steps below with Ubuntu distribution.

Check your installation

The following software should be install : use synaptic to check it :

gcc (GCC) version gcc 4.1.2
g++ version gcc 4.1.2 
make GNU Make 3.81
NASM version 0.98.38 compiled on Jun 27 2005
libxft-dev 2.1.12-1
libsdl1.2-dev
Wine 0.9.41 ( if you want to use yacc and flex)

Installation of  Torque

Download the linux version from your : http://www.garagegames.com/myAccount/

Compilation of Torque

Go to the Torque directory :

cd ~/Torque1.5.2-Linux

Compile the debug and/or release version:

make -f mk/configure.mk OS=LINUX COMPILER=GCC4 BUILD=DEBUG
make clean
make

make tools

make clean
make dedicated


make -f mk/configure.mk OS=LINUX COMPILER=GCC4 BUILD=RELEASE
make clean
make

make tools

make clean
make dedicated

Generation of Torque scripts language control before compilation

In addition, if you want to update the control of the script language or add new function to Torque, you will have to recompile some files in order to generate the relevant : BASgram.cc, CMDgram.cc, BASscan.cc and CMDscan.cc  files.

This generation is based on files compliant with yacc and flex syntax. See documentation in ~/Torque1.5.2-Linux/bin/bison and in ~/Torque1.5.2-Linux/bin/flex for more information.

cd ~/Torque1.5.2-Linux/engine/console
wine ../../bin/bison/bison.exe -o CMDgram.cc CMDgram.y --defines -p CMD
wine ../../bin/bison/bison.exe -o BASgram.cc BASgram.y --defines -p BAS
wine ../../bin/flex/flex.exe -PCMD -oCMDscan.cc CMDscan.l
wine ../../bin/flex/flex.exe -PBAS -oBASscan.cc BASscan.l

You can use the Ubuntu version of bison and flex, but by this way you are sure to regenerate as it is done originally.