Difference between revisions of "Compiling TPT++ on debian/ubuntu"

From The Powder Toy
Jump to: navigation, search
m (Remove 64bit _DEV_ package nonsense)
m (remove unnecessary flags / link to old guide)
Line 1: Line 1:
If you want to see the old guide, or compile for the old c version of tpt with the makefile, see [[Compiling for Linux]]
 
 
 
To compile TPT++ you need to do the following:
 
To compile TPT++ you need to do the following:
  
 
''1)'' Open your Terminal and type:
 
''1)'' Open your Terminal and type:
  
<code>sudo apt-get install build-essential libsdl1.2-dev libbz2-dev zlib1g-dev liblua5.1.0-dev git scons libfftw3-dev</code> Adjust the command / package names for your distro if not on debian or ubuntu. You might have some of these packages already installed, so if you see "X is already newest version" just ignore it
+
<code>sudo apt-get install build-essential libsdl1.2-dev libbz2-dev zlib1g-dev liblua5.1.0-dev git scons libfftw3-dev</code> Adjust the command / package names for your distro if not on Debian or Ubuntu. You might have some of these packages already installed, so if you see "X is already newest version" just ignore it
  
'''You MUST have Python 2 installed and working in order for scons to work! Python 3 will not work'''
+
'''You MUST have Python 2 installed and working in order for SCons to work! Python 3 will not work'''
  
 
''2)'' Run <code><nowiki>git clone git://github.com/simtr/The-Powder-Toy.git</nowiki></code>
 
''2)'' Run <code><nowiki>git clone git://github.com/simtr/The-Powder-Toy.git</nowiki></code>
  
''3)'' Navigate to your folder containing the TPT++ source code (The-Powder-Toy) and type:
+
''3)'' Navigate to your folder containing the TPT++ source code (The-Powder-Toy) and just type:
  
<code>scons --lin --release</code> (You need to add <code>--64bit</code> if you are compiling for 64 bit)
+
<code>scons</code>
  
You can also use <code>--sse2</code> or <code>--sse3</code> for sse optimizations if you have a recent (not ancient) computer, or <code>-j4</code> to compile with 4 cores (or how ever many you have). For other arguments, see the [[Scons_command_line_flags|list of all Sconscript flags you can use]]
+
You can also use <code>--no-sse</code> to compile a legacy version for ancient computers, or <code>-j4</code> to compile with 4 cores (or how ever many you have). For other arguments, see the [[Scons_command_line_flags|list of all Sconscript flags you can use]]
  
 
''4)'' Once scons has finished compiling (it will say "Done building targets" in the terminal), you'll find TPT executable in build/ folder, it will be named either powder, powder-legacy, powder64, or powder64-legacy, depending on the options you used.
 
''4)'' Once scons has finished compiling (it will say "Done building targets" in the terminal), you'll find TPT executable in build/ folder, it will be named either powder, powder-legacy, powder64, or powder64-legacy, depending on the options you used.

Revision as of 02:49, 31 August 2014

To compile TPT++ you need to do the following:

1) Open your Terminal and type:

sudo apt-get install build-essential libsdl1.2-dev libbz2-dev zlib1g-dev liblua5.1.0-dev git scons libfftw3-dev Adjust the command / package names for your distro if not on Debian or Ubuntu. You might have some of these packages already installed, so if you see "X is already newest version" just ignore it

You MUST have Python 2 installed and working in order for SCons to work! Python 3 will not work

2) Run git clone git://github.com/simtr/The-Powder-Toy.git

3) Navigate to your folder containing the TPT++ source code (The-Powder-Toy) and just type:

scons

You can also use --no-sse to compile a legacy version for ancient computers, or -j4 to compile with 4 cores (or how ever many you have). For other arguments, see the list of all Sconscript flags you can use

4) Once scons has finished compiling (it will say "Done building targets" in the terminal), you'll find TPT executable in build/ folder, it will be named either powder, powder-legacy, powder64, or powder64-legacy, depending on the options you used.