Espionage724
Posts: 1
Joined: Wed Feb 10, 2016 5:14 am

StepMania (with OpenGL)?

Wed Feb 10, 2016 5:21 am

https://www.raspberrypi.org/blog/anothe ... n-release/
There's now experimental support for the VC4 driver in Raspbian (so OpenGL things should work natively now). Would this happen to allow StepMania to be playable on the RPi?

Edit: Got SM5 compiled, but performance isn't ideal (about 20-30). SM5 seem to use a lot of CPU and can easily max a core. Perhaps if an older branch of StepMania can be compiled it would work better (like OpenITG or SM3.9). My process for compiling SM5 and running it is below, but there could very well be room for improvement or something I may have missed.

Video:
https://www.youtube.com/watch?v=GAGRCerCWAU

Process:

- Install dependencies

Code: Select all

sudo apt-get install cmake gcc g++ libmad0-dev libgtk2.0-dev binutils-dev git-core make libasound2-dev yasm libc6-dev libogg-dev libvorbis-dev libbz2-dev zlib1g-dev libjpeg8-dev libpng12-dev libxtst-dev libxrandr-dev libglew-dev libglu1-mesa-dev mesa-common-dev automake autoconf libva-dev
- Grab source (using master branch, but 5_1_0 is also an option)

Code: Select all

cd '/home/pi' && git clone -b master 'https://github.com/stepmania/stepmania.git' '/home/pi/stepmania' && sync
- Update source

Code: Select all

cd '/home/pi/stepmania' && git pull origin master && cd '/home/pi' && sync
- Create directories

Code: Select all

mkdir '/home/pi/sm5-build' '/home/pi/sm5-run' && cd '/home/pi/sm5-build'
- Compile it (FFMPEG disabled for testing, crash handler disabled because of unknown processor, SSE disabled since ARM doesn't support that)

Code: Select all

cmake '/home/pi/stepmania' -DCMAKE_INSTALL_PREFIX='/home/pi/sm5-run' -DWITH_FFMPEG=0 -DWITH_CRASH_HANDLER=0 -DWITH_SSE2=0 -DWITH_FULL_RELEASE=1 && sync && make install -j6 && sync
- Create shortcut

Code: Select all

mkdir -p '/home/pi/.local/share/icons/hicolor/256x256/apps' && cp '/home/pi/stepmania/icons/hicolor/256x256/apps/stepmania-ssc.png' '/home/pi/.local/share/icons/hicolor/256x256/apps/ASM3_Sm5.0.png' && nano '/home/pi/.local/share/applications/StepMania.desktop'

Code: Select all

[Desktop Entry]
Name=StepMania
Exec=/home/pi/sm5-run/stepmania-5.0/stepmania
Type=Application
StartupNotify=true
Path=/home/pi/sm5-run/stepmania-5.0
Icon=ASM3_Sm5.0
- Run it (use the new shortcut in Other or use terminal)
Last edited by Espionage724 on Fri Feb 12, 2016 5:42 am, edited 2 times in total.

SSilver2k2
Posts: 179
Joined: Wed Jun 06, 2012 1:51 am
Location: United States
Contact: Website AOL

Re: StepMania (with OpenGL)?

Wed Feb 10, 2016 7:19 pm

Great Job!

You and I had the same idea. I just got it running on my system and I'm getting about 30FPS. No sound yet so I'm going to recompile. Thanks for the instructions, I was editing CMakeCache.txt directly
My blog of various geeky things - http://blog.sheasilverman.com
PiPLAY - http://piplay.org
DeskCade.com - Mini Raspberry Pi Arcade Cabinet

dj505
Posts: 5
Joined: Sat Aug 02, 2014 9:03 pm

Re: StepMania (with OpenGL)?

Tue Jun 07, 2016 3:20 am

When running the cmake I get the following errors:

Code: Select all

-- Configuring incomplete, errors occurred!
See also "/home/pi/sm5-run/CMakeFiles/CMakeOutput.log".
See also "/home/pi/sm5-run/CMakeFiles/CMakeError.log."
What am I doing wrong?

User avatar
Blumberg
Posts: 1
Joined: Mon Sep 26, 2016 7:54 pm
Location: Brasil

Re: StepMania (with OpenGL)?

Tue Sep 27, 2016 2:11 pm

Hi, I'm trying to compile StepMania 5.1 on Raspberry Pi 3 using Raspbian Jessie Lite.

I've followed many tutorials and suggestions at many forums. I got a SM5 running and playable, but the sound was not good, and I don't know the reason.

I had to compile and install CMake 3.2 because it was asked by SM5.

Install dependencies:

Code: Select all

sudo apt-get install gcc g++ libmad0-dev libgtk2.0-dev binutils-dev git-core make libasound2-dev yasm libc6-dev libogg-dev libvorbis-dev libbz2-dev zlib1g-dev libjpeg8-dev libpng12-dev libxtst-dev libxrandr-dev libglew-dev libglu1-mesa-dev mesa-common-dev automake autoconf libva-dev libjack-dev xinit xserver-xorg xcompmgr
Download SM from git:

Code: Select all

git clone 'https://github.com/stepmania/stepmania.git' stepmania-src
cd stepmania-src
git submodule init
git submodule update
Create build folder:

Code: Select all

cd ..
mkdir sm5-build
cd sm5-build
Compile:

Code: Select all

cmake '../stepmania-src' -DCMAKE_INSTALL_PREFIX='../' -DWITH_FFMPEG=1 -DWITH_MINIMAID=0 -DWITH_CRASH_HANDLER=0 -DWITH_SSE2=0 -DWITH_FULL_RELEASE=1 -DWITH_GLES2=1 && make install -j8
Run it with:

Code: Select all

xinit /home/pi/stepmania-5.1/stepmania -- :9
I need to create 2Gb of SwapFile to compile. I've deleted it at the end.

Anyone with suggestions to get better sound quality, please, give me some help.

For those who want to reproduce what I've done, I did a shell script to help.

Install Raspbian Jessie Lite on a MicroSD card and start Raspberry Pi 3. You don't need to update your system as the script will do.

Download those 2 files (I've left them on my GDrive):

Code: Select all

# CMake 3.2 for arm:
wget https://drive.google.com/open?id=0B1m_0sI14Wr1LW9FRHBkeHEtLW8

# Shell script file
wget https://drive.google.com/open?id=0B1m_0sI14Wr1YkdXbmJxOTd4Wlk
Make script executable:

Code: Select all

chmod 775 *.sh
Run it as ROOT:

Code: Select all

sudo ./StepMania_Raspbian_Lite_Install.sh
The raspberry should restart 2 or 3 times during the install and compile process, you don't need to do anything. At the end, StepMania should start automaticaly.

Return to “Gaming”