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

From The Powder Toy
Jump to: navigation, search
m (Fixed the zlib package name)
m (More fixes, added link to Github tutorial)
Line 4: Line 4:
  
 
'''sudo apt-get install build-essential libsdl1.2-dev libbz2-dev zlib1g-dev liblua5.1.0-dev fftw3-dev scons''' (64 bit systems use lib64bz2-dev, also you might have some of these packages installed, so if you see "X is already newest version" just ignore it)
 
'''sudo apt-get install build-essential libsdl1.2-dev libbz2-dev zlib1g-dev liblua5.1.0-dev fftw3-dev scons''' (64 bit systems use lib64bz2-dev, also you might have some of these packages installed, so if you see "X is already newest version" just ignore it)
 +
 
'''You MUST have Python installed and working in order for scons to work!'''
 
'''You MUST have Python installed and working in order for scons to work!'''
  
(If you use Debian or Ubuntu you can just paste this in to your browser instead of typing it in the terminal: '''apt:build-essential,libsdl1.2-dev,libbz2-dev,liblua5.1.0-dev,fftw3-dev,scons''')
+
(If you use Debian or Ubuntu you can just paste this in to your browser instead of typing it in the terminal: '''apt:build-essential,libsdl1.2-dev,libbz2-dev,zlib1g-dev,liblua5.1.0-dev,fftw3-dev,scons''')
  
''2)'' Get the TPT++ source code from Simon's github (I will not cover how to use git in this tutorial, refer to the old compiling tutorial for TPT)
+
''2)'' Get the TPT++ source code from Simon's github (I will not cover how to use git in this tutorial, refer to the old compiling tutorial for TPT -- [https://powdertoy.co.uk/Wiki/W/Compiling_for_Linux.html#Get_The_Source])
  
 
''3)'' Navigate to your folder containing the TPT++ source code and type:
 
''3)'' Navigate to your folder containing the TPT++ source code and type:

Revision as of 21:08, 6 November 2012

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 fftw3-dev scons (64 bit systems use lib64bz2-dev, also you might have some of these packages installed, so if you see "X is already newest version" just ignore it)

You MUST have Python installed and working in order for scons to work!

(If you use Debian or Ubuntu you can just paste this in to your browser instead of typing it in the terminal: apt:build-essential,libsdl1.2-dev,libbz2-dev,zlib1g-dev,liblua5.1.0-dev,fftw3-dev,scons)

2) Get the TPT++ source code from Simon's github (I will not cover how to use git in this tutorial, refer to the old compiling tutorial for TPT -- [1])

3) Navigate to your folder containing the TPT++ source code and type:

scons --lin --release

4) Once scons has finished compiling (it will say "Done building targets" in the terminal), you will need to navigate to the "build/" folder, you can do this by typing cd build/ in the Terminal.

5) Run TPT++ by typing ./powder-legacy or ./powder in the Terminal (depending on if you used the --sse3 flag during the compiling process or not, just issue the ls command and find any of these files.)