Skip to content

Compilation guide on ArchLinux

Rémy Mathieu edited this page Dec 3, 2016 · 4 revisions

mehstation

Dependencies

First, some packages are needed:

sudo pacman -S cmake sdl2 sdl2_image sdl2_ttf ffmpeg sqlite3

Compilation

We will clone the mehstation repository:

git clone https://github.com/remeh/mehstation

Create the compilation files:

cd mehstation
cmake .

CMake checks for the needed dependencies, so if an error occurred here, ensure to have setup all the dependencies.

Then compile mehstation:

make -j4
sudo make install

The mehstation binary is now ready.

mehstation-config

This is an optional step if you've already configured the database.db of mehstation.

Dependencies

pacman -S qt5

We will get mehstation-config directly from its git repository:

git clone https://github.com/remeh/mehstation-config

Go inside the directory, create the compilation file and launch the compilation:

cd mehstation-config
qmake
make -j4

The mehstation-config should now be available in the current directory.

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 pacman -S go

Then, gets the mehtadata sources and compile it:

mkdir gopath
export GOPATH=$(pwd)/gopath
go get github.com/remeh/mehtadata
cp gopath/bin/mehtadata .

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