2014年11月26日水曜日

Raspberry Pi用にGStreamer 1.4をコンパイルする

Gstreamer1.0だとブロックノイズや格子が気になるので、最新版を自前で用意することにしたときのメモ。
DebianのUnstableからソース持ってきてビルドでも良かったけど、乗っているやり方そのままやることにした。


Step1.コンパイル環境の構築
http://pastebin.com/S1zGK9kP

  1. sudo apt-get update && sudo apt-get upgrade -y --force-yes
  2. sudo apt-get install -y --force-yes 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 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
  3.                                    
  4. cd ~
  5. mkdir packages
  6. cd packages
  7. mkdir gstreamer-1.2
  8. cd gstreamer-1.2
  9. git clone git://anongit.freedesktop.org/git/gstreamer/gstreamer
  10. git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-base
  11. git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-good
  12. git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad
  13. git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly
  14. git clone git://anongit.freedesktop.org/git/gstreamer/gst-libav
  15. git clone git://anongit.freedesktop.org/git/gstreamer/gst-omx
  16. git clone https://github.com/thaytan/gst-rpicamsrc.git
  17. cd gstreamer
  18. ./autogen.sh
  19. sudo make
  20. sudo make install
  21. cd ../gst-plugins-base
  22. ./autogen.sh
  23. sudo make
  24. sudo make install
  25. cd ../gst-plugins-good
  26. ./autogen.sh
  27. sudo make
  28. sudo make install
  29. cd gst-plugins-ugly
  30. ./autogen.sh
  31. sudo make
  32. sudo make install
  33. cd ../gst-libav
  34. sudo ./autogen.sh
  35. sudo make
  36. sudo make install
  37. sudo apt-get install -y --force-yes libusb-1.0
  38. cd ../gst-plugins-bad
  39. export LD_LIBRARY_PATH=/usr/local/lib/ path
  40. 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.sh
  41. sudo make CFLAGS+="-Wno-error"
  42. sudo make install
  43. cd ../gst-omx
  44. 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
  45. sudo make CFLAGS+="-Wno-error"
  46. sudo make install
  47. cd ../gst-rpicamsrc
  48. ./autogen --prefix=/usr --libdir=/usr/lib/arm-linux-gnueabihf/
  49. make
  50. sudo make install




参考リンク
http://lists.freedesktop.org/archives/gstreamer-openmax/2013-March/000724.html
http://direct.raspberrypi.org/forums/viewtopic.php?t=83225&p=588493
http://tnishinaga.hatenablog.com/entry/2014/05/11/224944

0 件のコメント:

Androider