Greetings,
I've cross-compiled oxmplayer
for the Raspberry Pi. I actually built two versions:
- the lastest from github https://github.com/popcornmix/omxplayer
- the version by gstein that is supposed to be lighter and have fewer dependencies https://github.com/gstein/omxplayer
Get them at https://github.com/pirandr/slitaz-arm/tree/master/binaries (they aren't tazpkg packages yet. More on that later.)
Video works for me without issue but I no audio through the 3.5mm jack in the gstein very and very static-y audio in the official version. But this might be related to my other audio problem (still having no audio with alsa here; this static-y bit is the first piece of audio I've gotten out of my Pi with ).
You'll need
- some pieces of libboost
(get libboost-*
from here for now https://github.com/pirandr/slitaz-arm/tree/master/cross-compiled). I don't know if you need all of it.
- raspberrypi-vc, pcre, ffmpeg, freetype (use spk-add
or tazpkg -gi
) and some other packages I'm probably forgetting
gstein's version shouldn't need ffmpeg and should work with just libav (libavcodec, libavutil) but I haven't tested it.
You might also need add a path to libraries in /opt/vc/lib for ld (export LD_LIBRARY_PATH=/opt/vc/lib
works as a temporary solution).
Subtitles will not work in either version.
I've hacked it a bit too much, which is why there isn't a recipe yet. I need to retrace my steps. Some bugs worth noting are
- a gcc 4.6 to 4.7 language update with interpretation of "template ... using" but our current tools use gcc 4.7
- something strange about the cross-compiler being in /cross/armv6hf (with some directories inside containing armv6hf
instead of arm
) but a lot of tools and recipes have arm
hardcoded into it)
- wget not being able to get https urls
I think the libboost
recipes are almost good. There's a commented out wget
line that needs to be replaced. (Maybe slitaz can host that patch file somewhere?)