Skip to content

Commit

Permalink
emulationstation: build omxplayer only on dispmanx platforms
Browse files Browse the repository at this point in the history
Starting with RaspiOS 'bullseye', the `omxplayer` RPI video player is no longer supported.
Use the new EmulationStation build option (`OMX`) to enable the `omxplayer` bits only for `dispmanx` platforms. The new options is added in RetroPie/EmulationStation#792. The `RPI` build option is used only for pre-setting some program settings on the Raspberry Pi platforms (audio/video memory).
  • Loading branch information
cmitu committed May 14, 2022
1 parent 5cf9b95 commit 7fb4491
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scriptmodules/supplementary/emulationstation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function depends_emulationstation() {

compareVersions "$__os_debian_ver" gt 8 && depends+=(rapidjson-dev)
isPlatform "x11" && depends+=(gnome-terminal)
if isPlatform "rpi" && isPlatform "32bit" && ! isPlatform "osmc"; then
if isPlatform "dispmanx" && ! isPlatform "osmc"; then
depends+=(omxplayer)
fi
getDepends "${depends[@]}"
Expand Down Expand Up @@ -170,6 +170,10 @@ function build_emulationstation() {
local gl_ver=$(sudo -u $user glxinfo | grep -oP "OpenGL version string: \K(\d+)")
[[ "$gl_ver" -gt 1 ]] && params+=(-DUSE_OPENGL_21=On)
fi
if isPlatform "dispmanx"; then
params+=(-DOMX=On)
fi

rpSwap on 1000
cmake . "${params[@]}"
make clean
Expand Down

0 comments on commit 7fb4491

Please sign in to comment.