Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/davibe/docker-gstreamer-raspbian-build
- Owner: davibe
- Created: 2018-07-25T21:14:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T07:13:51.000Z (over 6 years ago)
- Last Synced: 2024-10-14T17:55:58.457Z (3 months ago)
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 thisdocker 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
# whateverThe 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 thenscp 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