Skip to content

Instantly share code, notes, and snippets.

@m-rtijn
Created July 14, 2016 17:35
Show Gist options
  • Save m-rtijn/a8cc9f965468377e5a116ce031a89db0 to your computer and use it in GitHub Desktop.
Save m-rtijn/a8cc9f965468377e5a116ce031a89db0 to your computer and use it in GitHub Desktop.
Simple script to compile and install openspades on a debian based system.
#!/bin/sh
echo "Installing packages..."
sudo apt install -y pkg-config libglew-dev libcurl3-openssl-dev libsdl2-dev libsdl2-image-dev libalut-dev libjpeg-dev libxinerama-dev libxft-dev
echo "Installing SDL-2.0.2..."
wget http://www.libsdl.org/release/SDL2-2.0.2.tar.gz
tar -zxvf SDL2-2.0.2.tar.gz
cd SDL2-2.0.2/
./configure && make && sudo make install
cd ../
echo "Installing SDL_image-2.0.0..."
wget https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz
tar -zxvf SDL2_image-2.0.0.tar.gz
cd SDL2_image-2.0.0/
./configure --disable-png-shared && make && sudo make install
cd ../
echo "Compiling openspades..."
git clone https://github.com/yvt/openspades.git && cd openspades
mkdir openspades.mk
cd openspades.mk
cmake .. -DCMAKE_BUILD_TYPE=Release && make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment