Skip to content

Commit f132b68

Browse files
hongxu-jiaRaphael Kubo da Costa
authored andcommitted
chromium: install ANGLE so files (libEGL.so, libGLESv2.so)
Since upstream [Ship ANGLE libEGL.so and libGLESv2.so on Linux stable][1] to fix [WebGL seems to be disabled in Pixi JS on Chrome 80][2]. Do the same thing in recipe, otherwise there was a failure when launch chromium with command line on target raspberry pi 4: ... sh-5.0# chromium --no-sandbox |[3503:3503:1209/005940.666757:ERROR:gl_implementation.cc(286)] Failed to load libGLESv2.so.2: libGLESv2.so.2: cannot open shared object file: No such file or directory |[3503:3503:1209/005940.676576:ERROR:viz_main_impl.cc(229)] Exiting GPU process due to errors during initialization ... [1] https://chromium-review.googlesource.com/c/chromium/src/+/2044054 [2] https://crbug.com/1049449) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
1 parent 59064a3 commit f132b68

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

recipes-browser/chromium/chromium-gn.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,14 @@ do_install() {
424424
# modifying the dummy "CHROME_EXTRA_ARGS" line
425425
sed -i "s/^CHROME_EXTRA_ARGS=\"\"/CHROME_EXTRA_ARGS=\"${CHROMIUM_EXTRA_ARGS}\"/" ${D}${libdir}/chromium/chromium-wrapper
426426

427+
# This is ANGLE, not to be confused with the similarly named files under swiftshader/
428+
if [ -e libEGL.so ]; then
429+
install -m 0755 libEGL.so ${D}${libdir}/chromium/
430+
fi
431+
if [ -e libGLESv2.so ]; then
432+
install -m 0755 libGLESv2.so ${D}${libdir}/chromium/
433+
fi
434+
427435
if [ -n "${@bb.utils.contains('PACKAGECONFIG', 'component-build', 'component-build', '', d)}" ]; then
428436
install -m 0755 *.so ${D}${libdir}/chromium/
429437
fi

0 commit comments

Comments
 (0)