Skip to content

Compilation guide on Debian Jessie

Rémy Mathieu edited this page Feb 21, 2016 · 4 revisions

Compiling mehstation and mehstation-config on Debian Jessie is easy because all the necessary libs are already available in the package repositories.

Target

This guide has been redacted using Debian Jessie 8.2.0.

Basics

Some basics packages are needed to compile everything:

sudo apt-get install git cmake build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libasound2-dev libjpeg62-turbo-dev libtiff5-dev libwebp-dev automake cmake libsqlite3-dev libavutil-dev libavcodec-dev libavformat-dev git libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-ttf-2.0-0 

mehstation

The system is now ready to compile mehstation from its git repository:

git clone https://github.com/remeh/mehstation
cd mehstation
cmake .
make
sudo make install

The binary mehstation will now be ready to use.

mehstation-config

The configuration tool can also be compiled to run on the Raspberry Pi.

First, install some packages:

sudo apt-get install qt5-qmake qtbase5-dev

Then, we'll download the latest sources of mehstation-config and compile them:

git clone https://github.com/remeh/mehstation-config
cd mehstation-config
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
make

The app can now be started by typing: ./mehstation-config

mehtadata

mehtadata is a console-line app developed for mehstation-config which deals with scraping all the games information, description and so on. If you don't need to scrape games resources, it's not mandatory to do this chapter but the "Scraping" feature won't be usable in mehstation-config.

First, we need to setup Go:

sudo apt-get install golang-go

Then, gets the mehtadata sources and compile it:

git clone https://github.com/remeh/mehtadata
cd mehtadata
mkdir gopath
export GOPATH=$(pwd)/gopath
go get github.com/mattn/gom
$GOPATH/bin/gom install
$GOPATH/bin/gom build

It creates a binary called mehtadata which must be copied in the same directory as mehstation-config.