Personal Magazine A place to keep what I learn

Compiling MediaElch

The best program I could find to organize my media files for XBMC (download information, create nfo files and rename files) is MediaElch.

It is not in the official repositories, but the authors provide a PPA that can be used to install MediaElch. This worked well when I was using Ubuntu 13.04, but after I updated to Ubuntu 14.04 and installed MediaElch again, it didn't work properly.

Since MediaElch is on Github I decided to try compiling it. This was not straightforward. The README.md file has no information about how to compile, there is no INSTALL file with instructions and no sign of the usual compilation plumbing such as automake or a configure script.

Opening the MediaElch.* files one of them call my attention, MediaElch.pro. It is created by QtCreator and so my next step was installing QtCreator and opening the project in it.

The difficult now was installing the required libraries, particularly QT "multimediawidgets". After some Google-fu this forum post helped, which instructs to install the required libraries with

sudo apt-get install qt5-default qtmultimedia5-dev qtscript5-dev qt5-qmake libmediainfo-dev zlib1g-dev libzen-dev libcurl4-openssl-dev

After that I was able to compile MediaElch in QtCreator, which compiled in a separated folder. Alternatively, it is also possible to compile by running

qmake && make

which compiles MediaElch in the same folder where the source is located.