Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davibe/docker-gstreamer-raspbian-build

Building latest git version of gstreamer and plugins for raspberry pi (raspbian)
https://github.com/davibe/docker-gstreamer-raspbian-build

Last synced: about 2 months ago
JSON representation

Building latest git version of gstreamer and plugins for raspberry pi (raspbian)

Awesome Lists containing this project

README

        

# Readme

I created this Dockerfile to build latest git version of gstreamer and plugins for my raspberry pi.
In this case I am not using a real cross-compiler. I just run the entyre build inside
qemu-static-arm that runs in a raspbian chroot.
This is way faster than full system emulation yet slower than real cross-compilation.
It took 1 - 2 hrs on my macbook pro.

*If you just want to download prebuilt binaries skip to [Installing](#installing)*

## Building

docker build -t raspbian-chroot .

docker run --rm -it -v $(pwd)/build:/sysroot/build:delegated raspbian-chroot

This will open a bash terminal.
This bash terminal lives inside the emulated raspberry chroot like this

docker container -> chroot raspberry filesystem -> qemu-arm-static -> bash

`build` is mounted to `/sysroot/build` which you see as `/build` in the chrooted fs.

So you can do

cd build
bash build.sh
# whatever

The build.sh script generates a new version of `build/usr_local.tar`.

# Installing

In order to install the prebuilt gstreamer you can transfer and decompress
[build/usr_local.tar](https://github.com/davibe/docker-gstreamer-raspbian-build/raw/master/build/usr_local.tar)
to your raspberry and then

scp build/usr_local.tar [email protected]:~
ssh [email protected]
sudo apt-get remove gstreamer-1.0 # remove raspbian version of gstreamer
cd /
tar -xvf /home/pi/usr_local.tar
export LD_LIBRARY_PATH=/usr/local/lib
gst-inspect-1.0 --version # enjoy