创建了我自己的 Yocto Linux 发行版树莓派2(看内河码头教程请点击这里), 添加meta-browser
+chromium
食谱。构建的图像效果很好,我可以运行铬但 ...
...当我这样做时,尽管应用程序弹出,但我收到以下错误消息。
raspberrypi2:~$ /usr/bin/chromium/chrome --enable-logging --v=1 --no-sandbox
[1796:1796:0625/011716:ERROR:browser_main_loop.cc(164)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[1819:1819:0625/011717:ERROR:gl_implementation_osmesa.cc(22)] Failed to load libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[1819:1819:0625/011717:ERROR:gpu_child_thread.cc(145)] Exiting GPU process due to errors during initialization
[1831:1831:0625/011717:ERROR:renderer_main.cc(211)] Running without renderer sandbox
[1837:1837:0625/011717:ERROR:renderer_main.cc(211)] Running without renderer sandbox
当我寻找libGL
图书馆时,我得到了这个
root@raspberrypi2:/usr/lib/chromium# find / -name libGL*
/usr/lib/libGLESv2.so
/usr/lib/libGLESv1_CM.so
--use-gl=egl
raspberrypi2:~$ /usr/bin/chromium/chrome --enable-logging --v=1 --no-sandbox --use-gl=egl
[1857:1857:0625/011725:ERROR:browser_main_loop.cc(164)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[1880:1880:0625/011725:ERROR:gl_implementation_osmesa.cc(22)] Failed to load libGLESv2.so.2: libGLESv2.so.2: cannot open shared object file: No such file or directory
[1880:1880:0625/011725:ERROR:gpu_child_thread.cc(145)] Exiting GPU process due to errors during initialization
[1892:1892:0625/011726:ERROR:renderer_main.cc(211)] Running without renderer sandbox
[1897:1897:0625/011726:ERROR:renderer_main.cc(211)] Running without renderer sandbox
这次该库已很好地出现在/usr/lib
文件夹中。
我尝试过ldconfig -v
但没有成功
我猜它缺少一个符号链接,但我不知道该链接到哪里。有什么指点吗?