The guide didn't work for me without modifications. Scroll down in this thread for further comments made on the guide since it was posted:emmynet wrote:Hi,
What do you think of this guide?
http://permalink.gmane.org/gmane.comp.v ... evel/43011
E*
http://comments.gmane.org/gmane.comp.vi ... evel/43011
I'm now attempting to compile it directly on the Pi with the additional inclusion of the gtk-doc-tools package using:
sudo apt-get install -y gtk-doc-tools
and the use of the
make CFLAGS+="-Wno-error"
flag on the gst-plugins-bad and gst-omx compilations.
I also had to edit one of the source files to correct an unterminated #ifdef issue, but I can't remember which file it was in. <doh!>
For reference here's the complete list of commands I've now used for compilation. Apologies in advance if I've made any typos etc in my cutting and pasting of this:
Code: Select all
# Get and install rpi-update if necessary
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo apt-get -y install git-core
# Upgrade to the latest packages and firmware
sudo apt-get update
sudo apt-get upgrade -y
sudo rpi-update
sudo reboot
################# COMPILE GSTREAMER 1.0 ############
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
sudo apt-get install -y gtk-doc-tools
sudo apt-get install -y 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 gstreamer-1.0
cd gstreamer-1.0
git clone git://anongit.freedesktop.org/git/gstreamer/gstreamer
cd gstreamer
./autogen.sh
make
sudo make install
cd ..
git clone git://anongit.freedesktop.org/git/gstreamer/orc
cd orc
./autogen.sh
make
sudo make install
cd ..
git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-base
cd gst-plugins-base
./autogen.sh
make
sudo make install
cd ..
git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-good
cd gst-plugins-good
./autogen.sh
make
sudo make install
cd ..
git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly
cd gst-plugins-ugly
./autogen.sh
make
sudo make install
cd ..
git clone git://anongit.freedesktop.org/git/gstreamer/gst-libav
cd gst-libav
./autogen.sh
make
sudo make install
cd ..
git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad
cd gst-plugins-bad
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
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
cd $HOME
echo -e \\n# Gstreamer environment >> .profile
echo export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0/ >> .profile
echo export GST_OMX_CONFIG_DIR=/usr/local/etc/xdg/ >> .profile
echo export LD_LIBRARY_PATH=/usr/local/lib/ >> .profile
. ./.profile
rm ~/.cache/gstreamer-1.0/registry.armv6l.bin
# Install the v4l-utils to be able to use the v4l2-ctl command to configure v4l2 input devices, such as webcams, if required
sudo apt-get install v4l-utils
Code: Select all
pi@raspberrypi ~/gstreamer-1.0 $ gst-inspect-1.0 | grep omx
omx: omxmpeg2videodec: OpenMAX MPEG2 Video Decoder
omx: omxmpeg4videodec: OpenMAX MPEG4 Video Decoder
omx: omxh263dec: OpenMAX H.263 Video Decoder
omx: omxh264dec: OpenMAX H.264 Video Decoder
omx: omxtheoradec: OpenMAX Theora Video Decoder
omx: omxvp8dec: OpenMAX VP8 Video Decoder
omx: omxmjpegdec: OpenMAX MJPEG Video Decoder
omx: omxvc1dec: OpenMAX WMV Video Decoder
omx: omxh264enc: OpenMAX H.264 Video Encoder
pi@raspberrypi ~/gstreamer-1.0 $ gst-inspect-1.0 | grep fbdevsink
fbdevsink: fbdevsink: fbdev video sink