Building omxplayer for RasPi Fedora remix

8 12 2012

So, I will explain the process and steps I have encountered in building omxplayer.  I would still like to put this all together in a neatly packaged RPM for easy install, but at the moment, I will share the build process.

Step 1: Make sure you have the appropriate development tools

  • yum -y install groupinstall “Development Tools” “Development Libraries”

Step 2: Download the omxplayer source files from https://github.com/wrightrocket/omxplayer

  • git clone git://github.com/wrightrocket/omxplayer.git

Step 3: Add the following repository to your system in order to get a buildable version of ffmpeg

Step 4: Download and install required dependencies

  • yum -y install pcre pcre-devel libdc1394-devel libva-devel libvdpau-devel openjpeg-devel libvpx-devel boost-build.noarch pcre-tools.armv5tel *libavfilter* boost.armv5tel boost-devel.armv5tel

Step 5: Download and install ffmpeg

  • yum -y install ffmpeg ffmpeg-devel

Step 6: Decompress omxplayer in the following directory

  • cd /usr/local/src/omxplayer

Step 7: Edit files for building

  • Edit Makefile.include – line 4 to read
    • CFLAGS += -pipe -mfloat-abi=softfp
    • instead of:
    • CFLAGS += -pipe -mfloat-abi=hard
  • Edit line 11 to read
    • TARGETFS        :=usr/local
    • instead of
    • TARGETFS        :=/usr/local

Step 8: Build ffmpeg

  • cd /usr/local/src/omxplayer
  • make sources
  • make
  • make dist
  • sudo make install

Step 9: Create a symbolic link to overcome libpcre.so.3 cannot be found error

  • cd /usr/lib/
  • ln -s libpcre.so.0.0.1 libpcre.so.3

Step 10: Run omxplayer

  • running omxplayer at this stage will result in a “failed to open vchiq instance” error
  • this can be resolved by running:
    • sudo chmod a+rw /dev/vchiq
  • to run omxplayer, do the following
  • omxplayer <name of file>

The video should play just fine with sound.  To quit playback, press Q on the keyboard.

I will be working on getting this all packed up in the near future.


Actions

Information

Leave a comment