-
Notifications
You must be signed in to change notification settings - Fork 6
Compilation guide on Raspberry Raspbian Wheezy
It is possible to run mehstation
on a Raspberry, you will need to manually compile it. It will take some time as you'll need to compile some large libraries if not already available: ffmpeg
, sqlite3
, SDL2
, SDL2_image
, SDL2_ttf
.
This guide has been redacted using Raspbian Wheezy 2015-05-05 on Raspberry Pi model B.
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 libjpeg8-dev libtiff5-dev libwebp-dev automake
Download the latest release of SDL2 and open it. As the time of writing:
wget https://www.libsdl.org/release/SDL2-2.0.3.tar.gz
tar xf SDL2-2.0.3.tar.gz
cd SDL2-2.0.3
Start configure
ensuring to use the OpenGL ES backend. This way, we can start mehstation
without having an X11 instance running.
../configure --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl
make
sudo make install
Download and compile the latest version from https://www.libsdl.org/projects/SDL_image/.
wget https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz
tar xf SDL2_image-2.0.0.tar.gz
cd SDL2_image-2.0.0
./configure
make
sudo make install
Download and compile the latest version from https://www.libsdl.org/projects/SDL_ttf/.
wget https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.12.tar.gz
tar xf SDL2_ttf-2.0.12.tar.gz
cd SDL2_ttf-2.0.12
./configure
make
sudo make install
SQLite is straight-foward to compile, get the latest from https://sqlite.org
wget https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz
tar xf sqlite-autoconf-3081101.tar.gz
cd sqlite-autoconf-3081101
./configure
make
sudo make install
This part is not mandatory but is recommended because many videos use this codec. We will clone it from its Git repository.
git clone git://git.videolan.org/x264
cd x264
./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
make
sudo make install
It's time to grab a coffee or to prepare a sandwich:
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
make
sudo make install
Finally, we will compile mehstation, from its git repository to build the latest version:
git clone https://github.com/remeh/mehstation
cd mehstation
cmake .
make
sudo make install
The binary mehstation
will now be ready to used.
This guide has been redacted with help from: