Compile related components of gstreamer

Source: Internet
Author: User
Tags gstreamer
 1 #!/bin/bash 2  3 # Create a log file of the build as well as displaying the build on the tty as it runs 4  exec > >(tee build_gstreamer.log) 5  exec 2>&1 6  7 ################# COMPILE GSTREAMER 1.2 ############ 8  9 10 # Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies11 12 sudo apt-get update && sudo apt-get upgrade -y --force-yes13 14 # Get the required libraries15 sudo apt-get install -y --force-yes build-essential autotools-dev automake autoconf 16  libtool autopoint libxml2-dev zlib1g-dev libglib2.0-dev 17  pkg-config bison flex python git gtk-doc-tools libasound2-dev 18  libgudev-1.0-dev libxt-dev libvorbis-dev libcdparanoia-dev 19  libpango1.0-dev libtheora-dev libvisual-0.4-dev iso-codes 20  libgtk-3-dev libraw1394-dev libiec61883-dev libavc1394-dev 21  libv4l-dev libcairo2-dev libcaca-dev libspeex-dev libpng-dev 22  libshout3-dev libjpeg-dev libaa1-dev libflac-dev libdv4-dev 23  libtag1-dev libwavpack-dev libpulse-dev libsoup2.4-dev libbz2-dev 24  libcdaudio-dev libdc1394-22-dev ladspa-sdk libass-dev 25  libcurl4-gnutls-dev libdca-dev libdirac-dev libdvdnav-dev 26  libexempi-dev libexif-dev libfaad-dev libgme-dev libgsm1-dev 27  libiptcdata0-dev libkate-dev libmimic-dev libmms-dev 28  libmodplug-dev libmpcdec-dev libofa0-dev libopus-dev 29  librsvg2-dev librtmp-dev libschroedinger-dev libslv2-dev 30  libsndfile1-dev libsoundtouch-dev libspandsp-dev libx11-dev 31  libxvidcore-dev libzbar-dev libzvbi-dev liba52-0.7.4-dev 32  libcdio-dev libdvdread-dev libmad0-dev libmp3lame-dev 33  libmpeg2-4-dev libopencore-amrnb-dev libopencore-amrwb-dev 34  libsidplay1-dev libtwolame-dev libx264-dev35 36 cd /home/pi/Desktop/obd 37 mkdir packages38 cd packages39 mkdir gstreamer-1.340 cd gstreamer-1.341 42 git clone git://anongit.freedesktop.org/git/gstreamer/gstreamer43 git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-base44 git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-good45 git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad46 git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly47 git clone git://anongit.freedesktop.org/git/gstreamer/gst-libav48 git clone git://anongit.freedesktop.org/git/gstreamer/gst-omx49 50 cd gstreamer51 git checkout -t origin/1.352 ./autogen.sh53 make54 sudo make install55 cd ..56 57 cd gst-plugins-base58 git checkout -t origin/1.359 ./autogen.sh60 make61 sudo make install62 cd ..63 64 cd gst-plugins-good65 git checkout -t origin/1.366 ./autogen.sh67 make68 sudo make install69 cd ..70 71 cd gst-plugins-ugly72 git checkout -t origin/1.373 ./autogen.sh74 make75 sudo make install76 cd ..77 78 cd gst-libav 79 git checkout -t origin/1.380 ./autogen.sh81 make82 sudo make install83 cd ..84 85 # Install libusb-1.0 to enable uvch264src86 sudo apt-get install -y --force-yes libusb-1.087 88 cd gst-plugins-bad89 git checkout -t origin/1.390 export LD_LIBRARY_PATH=/usr/local/lib/ path91 sudo 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.sh92 make CFLAGS+="-Wno-error  -Werror=redundant-decls"93 sudo make install94 cd ..95 96 cd gst-omx97 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=rpi98 make CFLAGS+="-Wno-error"99 sudo make install

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.