Add the following into a new .sh file (call it 'first_time.sh'):
- {l Code}: {l Select All Code}
#Install dependncies
sudo apt-get install build-essential cmake libbluetooth-dev libcurl4-openssl-dev libenet-dev libfreetype6-dev libfribidi-dev libgl1-mesa-dev libglew-dev libjpeg-dev libogg-dev libopenal-dev libpng-dev libssl-dev libvorbis-dev libxrandr-dev libx11-dev pkg-config zlib1g-dev
#Clones the git repo, for code
git clone "https://github.com/supertuxkart/stk-code" stk-code
#Clones the svn repo, for tracks, karts, etc.
svn checkout "https://svn.code.sf.net/p/supertuxkart/code/stk-assets" stk-assets
cd stk-code
git checkout network
#below: makes the build dir and enters it.
mkdir cmake_build
cd cmake_build
#Below starts cmake to make the build files.
cmake ..
#Make sure that when you use this srcipt, 4 is replaced with the number of cores in your computer`s cpu. No spaces need or wanted.
make -j4
Add the following into a new .sh file (call it 'update.sh'):
- {l Code}: {l Select All Code}
echo "== Update SVN: MEDIA REPO =="
cd stk-assets
svn update
cd ..
echo "== Update GIT: STK CODE =="
cd stk-code
git pull
echo "== Delete FLD: CMAKE BUILD =="
rm -rf cmake_build
echo "== Create FLD: CMAKE BUILD =="
mkdir cmake_build
cd cmake_build
echo "== Start BLD: SUPER TUX KART =="
cmake ..
make -j4
Running
For linux update script:
Go to the folder you have two scripts in. Make sure they are executable (either by typing "chmod +x *.sh" or just going to right click > proprieties > premissions etc... in file program) Open a terminal in that folder and type "./first_time.sh". It will install dependencies (except for libopenglscreenrecorder, but you don't need it.) If you ever want to update, you have to go into the same directory and run "./update.sh". When you want to run supertuxkart (not update it) open <where you put scripts>/stk-code/cmake_build/bin and a terminal in that location and type "./supertuxkart". Hopefully this is clear, as I know some do not like to open the terminal.
Please report any issues you find!
Ok, I swear this is the last ever edit.
Just one more? :/
Last one. Please don't kill me :(
Hopefully no one noticed this last one.