-
Notifications
You must be signed in to change notification settings - Fork 75
Raspberry Pi 2 Compiling Guide
HerbFargus edited this page Aug 22, 2015
·
31 revisions
cd ~
save as smw.sh
#!/usr/bin/env bash
git clone --recursive https://github.com/mmatyas/supermariowar.git
cd supermariowar
unzip data.zip
mkdir Build && cd Build
cmake ..
make -j 4
sudo chmod +x smw.sh
./smw.sh
run with:
cd /supermariowar/Build/Binaries/Releases
./smw ../../../data
A folder will have been created here:
/home/pi/.smw
then when you've opened the game once servers.yml
will be created and you can manually edit it.
player_name: yourname
servers:
- localhost
- www.smwstuff.net
#!/usr/bin/env bash
git clone --recursive https://github.com/mmatyas/supermariowar.git
cd supermariowar
unzip data.zip
mkdir Build && cd Build
cmake .. -DCMAKE_BUILD_TYPE=Debug
make -j 4
cd /supermariowar/Build/Binaries/Debug
./smw ../../../data
cd ~
save as smwsdl2.sh
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libasound2-dev libjpeg8-dev libtiff5-dev libwebp-dev automake
# Install SDL 2.0:
cd ~
sudo wget https://www.libsdl.org/release/SDL2-2.0.3.tar.gz
tar zxvf SDL2-2.0.3.tar.gz
cd SDL2-2.0.3 && mkdir build && cd build
../configure --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl --host=armv7l-raspberry-linux-gnueabihf
make -j 4
sudo make install
# Install smpeg2:
cd ~
sudo wget http://www.libsdl.org/projects/smpeg/release/smpeg2-2.0.0.tar.gz
tar zxvf smpeg2-2.0.0.tar.gz
cd smpeg2-2.0.0 && mkdir build && cd build
../configure
make -j 4
sudo make install
# Install SDL 2.0 Mixer:
cd ~
sudo wget http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.tar.gz
tar zxvf SDL2_mixer-2.0.0.tar.gz
cd SDL2_mixer-2.0.0 && mkdir build && cd build
../configure
make -j 4
sudo make install
# Install SDL 2.0 Image:
cd ~
sudo wget http://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 && mkdir build && cd build
../configure
make -j 4
sudo make install
# Install Super Mario War SDL2
cd ~
git clone --recursive https://github.com/mmatyas/supermariowar.git
cd supermariowar
unzip data.zip
mkdir Build && cd Build
cmake .. -DUSE_SDL2_LIBS=1
make -j 4 smw && make -j 4 smw-server
sed -i -e '$i \export LD_LIBRARY_PATH=/usr/local/lib' /home/pi/.bashrc
sudo chmod +x smwsdl2.sh
./smwsdl2.sh
sudo reboot
then
cd /supermariowar/Build/Binaries/Releases
./smw ../../../data