树莓派之编译与定制OMXPlayer

下载源码

https://github.com/popcornmix/omxplayer

Build FFmepg

make -f Makefile.ffmpeg

如果 git 失败可以
http://ffmpeg.org/download.html#releases 下载源码替换 ffmepg 目录
随后注释 Makefile.ffmpeg 中 git 行 ...

ERROR: smbclient not found
apt-get install smbclient
apt-get install libsmbclient
apt-get install libsmbclient-dev

ERROR: libssh not found using pkg-config
apt-get install libssh-dev

Build OMXPlayer

向 Makefile 中添加 -ldl

OMXSubtitleTagSami.cpp:28:38: fatal error: boost/algorithm/string.hpp: No such file or directory
apt-get install libboost-dev

官方方法

Run this script which will install build dependency packages, including g++, and update firmware

    ./prepare-native-raspbian.sh

Build with

    make ffmpeg
    make -j$(nproc)

Install with

    sudo make install