Ubuntu 14 - tosiara/motion GitHub Wiki

# sudo docker run -ti arm32v7/ubuntu:trusty /bin/bash

apt-get update
apt-get install -y wget x264 libx264-dev pkg-config build-essential git autoconf automake autopoint libtool libzip-dev libjpeg-dev

wget https://ftp.gnu.org/pub/gnu/gettext/gettext-0.21.tar.gz
wget https://sunsite.icm.edu.pl/pub/gnu/libmicrohttpd/libmicrohttpd-0.9.72.tar.gz
git clone -b release/4.3 --depth 1 https://github.com/ffmpeg/ffmpeg ffmpeg

tar xvf gettext-0.21.tar.gz
pushd gettext-0.21
./configure
make -j8
make install
popd

tar xvf libmicrohttpd-0.9.72.tar.gz
pushd libmicrohttpd-0.9.72
./configure
make -j8
make install
popd

pushd ffmpeg
./configure --enable-gpl --enable-libx264
make -j8
make install
popd

git clone https://github.com/tosiara/motion
cd motion
autoreconf -fiv
CFLAGS="-O3 -std=gnu99 -march=armv7 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=neon" ./configure
make