Yabause 0.9.15 and (K) Ubuntu 18.10

I own a Sega Saturn which I did not bring to the US. I really do not want to mess around with PAL/NTSC and the power adapter.
Luckily there is a great emulator for that old gaming console: Yabause.

Ubuntu and its variants ship Yabause 0.9.14. Since 2016 0.9.15 is out and it has several bug fixes which are listed in the changelog.

I decided to build it from the source code. That required a few adjustments and I am writing them down more or less for myself for future reference.

The source code can be downloaded from here.Extract archive and create build directory

Extract archive and create build directory:
cd Downloads
tar xvf ~/Downloads/yabause-0.9.15.tar.gz
cd yabause-0.9.15
mkdir build
cd build
Install dependencies:
sudo apt install freeglut3-dev libglew-dev libopenal-dev qtbase5-dev qtmultimedia5-dev cmake cmake-gui libqt5multimedia5 libqt5gamepad5-dev 


Note that I might be missing some here that were already installed on my system but might not be installed on yours. If you encounter errors I am happy to help out in the comments.

Add missing includes to header files:

Line 25 of ../src/qt/ui/UICheats.h add
#include <QButtonGroup>

Line 23 of ../src/qt/ui/UICheats.h add
#include <QButtonGroup>

Line 25 of ../src/qt/ui/UIHexInput.h add
#include <QValidator>
Configure:
cmake-gui
Click configure and generate. This is where missing libraries show up.
Run cmake with options (otherwise linking will fail)  and qt:
cmake -DYAB_PORTS=qt -DSH2_DYNAREC=OFF ../
Run make and install: 
make
sudo make install
/usr/local/bin/yabause
Dungeons & Dragons: TheTower of Doom


Awesome window manager: Missing icons in Control Center

If you’re running the awesome window manager and are using the gnome-session or gnome-settings-daemon as well as the gnome-control-center you might have noticed it is missing some icons (see screenshot on the right).
This is due to an entry in the “gnome*panel*.desktop” files located in “/usr/share/applications”: 

OnlyShowIn=GNOME;

You can quickly fix this by changing it to:

OnlyShowIn=GNOME;Awesome;

Of course you do not have to do this by hand. Simply use this handy command:

sudo find /usr/share/applications/ -name "gnome*panel*desktop" -print 
 | xargs sudo sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=GNOME;Awesome;/g'