Skip to content

Commit 7fb4491

Browse files
committed
emulationstation: build omxplayer only on dispmanx platforms
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).
1 parent 5cf9b95 commit 7fb4491

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scriptmodules/supplementary/emulationstation.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function depends_emulationstation() {
137137

138138
compareVersions "$__os_debian_ver" gt 8 && depends+=(rapidjson-dev)
139139
isPlatform "x11" && depends+=(gnome-terminal)
140-
if isPlatform "rpi" && isPlatform "32bit" && ! isPlatform "osmc"; then
140+
if isPlatform "dispmanx" && ! isPlatform "osmc"; then
141141
depends+=(omxplayer)
142142
fi
143143
getDepends "${depends[@]}"
@@ -170,6 +170,10 @@ function build_emulationstation() {
170170
local gl_ver=$(sudo -u $user glxinfo | grep -oP "OpenGL version string: \K(\d+)")
171171
[[ "$gl_ver" -gt 1 ]] && params+=(-DUSE_OPENGL_21=On)
172172
fi
173+
if isPlatform "dispmanx"; then
174+
params+=(-DOMX=On)
175+
fi
176+
173177
rpSwap on 1000
174178
cmake . "${params[@]}"
175179
make clean

0 commit comments

Comments
 (0)