site  contact  subhomenews

Omxplayer compiled on Pi2, take-2

October 28, 2016 — BarryK
This is step 2. Step-1, I compiled ffmpeg 3.2:

The omxplayer source was downloaded from here:

I then inserted the compiled ffmpeg libraries and headers into the omxplayer source, so that the 'omxplayer.bin' binary will be linked against the system ffmpeg libs.

Here are notes on how I compiled Omxplayer:

I modified script '', took out the REQUIRED_PKGS variables, changed "gcc-4.7" to "gcc-4.8" and "g++-4.7" to "g++-4.8",
changed CFLAGS line to this:
CFLAGS +=  -fomit-frame-pointer -mabi=aapcs-linux -Wno-psabi -mno-apcs-stack-check -O3 -mstructure-size-boundary=32 -mno-sched-prolog -march=armv7-a `pkg-config dbus-1 --cflags`

ffmpeg was compiled separately, then copied into folder 'ffmpeg_compiled'.
you need usr/local/include and usr/local/lib

# ./
# make

final link step fails. had to add -lOpenVG, and rearrange:

/usr//bin/g++-4.8 -L/opt/vc/lib -L/lib -L/usr/lib -lfreetype -L./ -Lffmpeg_compiled/usr/local/lib/ -lc -lWFC -lz -o omxplayer.bin linux/XMemUtils.o linux/OMXAlsa.o utils/log.o DynamicDll.o utils/PCMRemap.o utils/RegExp.o OMXSubtitleTagSami.o OMXOverlayCodecText.o BitstreamConverter.o linux/RBP.o OMXThread.o OMXReader.o OMXStreamInfo.o OMXAudioCodecOMX.o OMXCore.o OMXVideo.o OMXAudio.o OMXClock.o File.o OMXPlayerVideo.o OMXPlayerAudio.o OMXPlayerSubtitles.o SubtitleRenderer.o Unicode.o Srt.o KeyConfig.o OMXControl.o Keyboard.o omxplayer.o -lvchostif -ldbus-1 -lrt -lpthread -lavutil -lavcodec -lavformat -lswscale -lswresample -lpcre  -lOpenVG -lEGL -lbcm_host -lvchiq_arm -lvcos -lfreetype -lGLESv2 -lopenmaxil -lasound

Do manual install.
I modified the 'omxplayer' script to suit Quirky.

Tags: linux