Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Script to build gstreamer on a raspberry pi
- # Slightly modified from http://www.trans-omni.co.uk/pi/GStreamer-1.0/build_gstreamer to
- # use 1.0 branch
- # Create a log file of the build as well as displaying the build on the tty as it runs
- exec > >(tee build_gstreamer.log)
- exec 2>&1
- ################# COMPILE GSTREAMER 1.0 ############
- # Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies
- sudo apt-get update && sudo apt-get upgrade -y
- # Get the required libraries
- sudo apt-get install -y build-essential autotools-dev automake autoconf \
- libtool autopoint libxml2-dev zlib1g-dev libglib2.0-dev \
- pkg-config bison flex python git gtk-doc-tools libasound2-dev \
- libgudev-1.0-dev libxt-dev libvorbis-dev libcdparanoia-dev \
- libpango1.0-dev libtheora-dev libvisual-0.4-dev iso-codes \
- libgtk-3-dev libraw1394-dev libiec61883-dev libavc1394-dev \
- libv4l-dev libcairo2-dev libcaca-dev libspeex-dev libpng-dev \
- libshout3-dev libjpeg-dev libaa1-dev libflac-dev libdv4-dev \
- libtag1-dev libwavpack-dev libpulse-dev libsoup2.4-dev libbz2-dev \
- libcdaudio-dev libdc1394-22-dev ladspa-sdk libass-dev \
- libcurl4-gnutls-dev libdca-dev libdirac-dev libdvdnav-dev \
- libexempi-dev libexif-dev libfaad-dev libgme-dev libgsm1-dev \
- libiptcdata0-dev libkate-dev libmimic-dev libmms-dev \
- libmodplug-dev libmpcdec-dev libofa0-dev libopus-dev \
- librsvg2-dev librtmp-dev libschroedinger-dev libslv2-dev \
- libsndfile1-dev libsoundtouch-dev libspandsp-dev libx11-dev \
- libxvidcore-dev libzbar-dev libzvbi-dev liba52-0.7.4-dev \
- libcdio-dev libdvdread-dev libmad0-dev libmp3lame-dev \
- libmpeg2-4-dev libopencore-amrnb-dev libopencore-amrwb-dev \
- libsidplay1-dev libtwolame-dev libx264-dev
- Last login: Tue Jun 11 12:48:14 on ttys000
- Welcome to fish, the friendly interactive shell
- Type help for instructions on how to use fish
- mock@MockAir13 ~> ssh 10.240.0.16
- Linux raspberrypi 3.6.11+ #464 PREEMPT Thu Jun 6 18:17:55 BST 2013 armv6l
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Mon Jun 10 10:14:44 2013 from 10.240.0.65
- mock@raspberrypi:~$ ls
- gstbuild2 out.mp4 packages psips
- mock@raspberrypi:~$ cd gstbuild2/
- mock@raspberrypi:~/gstbuild2$ ls
- build_gstreamer.log build.sh
- mock@raspberrypi:~/gstbuild2$ less build
- build: No such file or directory
- mock@raspberrypi:~/gstbuild2$ less build.sh
- mock@raspberrypi:~/gstbuild2$
- mock@raspberrypi:~/gstbuild2$ cat build.sh
- #!/bin/bash
- # Create a log file of the build as well as displaying the build on the tty as it runs
- exec > >(tee build_gstreamer.log)
- exec 2>&1
- ################# COMPILE GSTREAMER 1.0 ############
- # Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies
- sudo apt-get update && sudo apt-get upgrade -y
- # Get the required libraries
- sudo apt-get install -y build-essential autotools-dev automake autoconf \
- libtool autopoint libxml2-dev zlib1g-dev libglib2.0-dev \
- pkg-config bison flex python git gtk-doc-tools libasound2-dev \
- libgudev-1.0-dev libxt-dev libvorbis-dev libcdparanoia-dev \
- libpango1.0-dev libtheora-dev libvisual-0.4-dev iso-codes \
- libgtk-3-dev libraw1394-dev libiec61883-dev libavc1394-dev \
- libv4l-dev libcairo2-dev libcaca-dev libspeex-dev libpng-dev \
- libshout3-dev libjpeg-dev libaa1-dev libflac-dev libdv4-dev \
- libtag1-dev libwavpack-dev libpulse-dev libsoup2.4-dev libbz2-dev \
- libcdaudio-dev libdc1394-22-dev ladspa-sdk libass-dev \
- libcurl4-gnutls-dev libdca-dev libdirac-dev libdvdnav-dev \
- libexempi-dev libexif-dev libfaad-dev libgme-dev libgsm1-dev \
- libiptcdata0-dev libkate-dev libmimic-dev libmms-dev \
- libmodplug-dev libmpcdec-dev libofa0-dev libopus-dev \
- librsvg2-dev librtmp-dev libschroedinger-dev libslv2-dev \
- libsndfile1-dev libsoundtouch-dev libspandsp-dev libx11-dev \
- libxvidcore-dev libzbar-dev libzvbi-dev liba52-0.7.4-dev \
- libcdio-dev libdvdread-dev libmad0-dev libmp3lame-dev \
- libmpeg2-4-dev libopencore-amrnb-dev libopencore-amrwb-dev \
- libsidplay1-dev libtwolame-dev libx264-dev
- cd $HOME
- mkdir packages
- cd packages/
- mkdir gstreamer-1.0
- cd gstreamer-1.0
- git clone git://anongit.freedesktop.org/git/gstreamer/gstreamer
- cd gstreamer
- git checkout -t origin/1.0
- ./autogen.sh
- make
- sudo make install
- cd ..
- git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-base
- cd gst-plugins-base
- git checkout -t origin/1.0
- ./autogen.sh
- make
- sudo make install
- cd ..
- git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-good
- cd gst-plugins-good
- git checkout -t origin/1.0
- ./autogen.sh
- make
- sudo make install
- cd ..
- git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly
- cd gst-plugins-ugly
- git checkout -t origin/1.0
- ./autogen.sh
- make
- sudo make install
- cd ..
- git clone git://anongit.freedesktop.org/git/gstreamer/gst-libav
- cd gst-libav
- git checkout -t origin/1.0
- ./autogen.sh
- make
- sudo make install
- cd ..
- git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad
- # Install libusb-1.0 to enable uvch264src
- sudo apt-get install libusb-1.0
- cd gst-plugins-bad
- git checkout -t origin/1.0
- export LD_LIBRARY_PATH=/usr/local/lib/ path
- LDFLAGS='-L/opt/vc/lib' CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux' ./autogen.sh
- make CFLAGS+="-Wno-error"
- sudo make install
- cd ..
- ################# COMPILE GST-OMX ##########
- git clone git://anongit.freedesktop.org/git/gstreamer/gst-omx
- cd gst-omx
- git checkout -t origin/1.0
- LDFLAGS='-L/opt/vc/lib' CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux' ./autogen.sh --with-omx-target=rpi
- make CFLAGS+="-Wno-error"
- sudo make install
- mock@raspberrypi:~/gstbuild2$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement