Difference between revisions of "Compiling TPT++ on debian/ubuntu"
(update lua lib name, remove --no-sse suggestion) |
(Add libcurl dependency) |
||
Line 3: | Line 3: | ||
''1)'' Open your Terminal and type: | ''1)'' Open your Terminal and type: | ||
− | <code>sudo apt-get install build-essential libsdl2-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 libsdl2-dev libbz2-dev zlib1g-dev liblua5.1-0-dev git scons libfftw3-dev libcurl4-openssl-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 |
''2)'' Run <code><nowiki>git clone git://github.com/ThePowderToy/The-Powder-Toy.git</nowiki></code> | ''2)'' Run <code><nowiki>git clone git://github.com/ThePowderToy/The-Powder-Toy.git</nowiki></code> |
Revision as of 04:41, 17 May 2019
To compile TPT++ you need to do the following:
1) Open your Terminal and type:
sudo apt-get install build-essential libsdl2-dev libbz2-dev zlib1g-dev liblua5.1-0-dev git scons libfftw3-dev libcurl4-openssl-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
2) Run git clone git://github.com/ThePowderToy/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 -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.