Update script to support Web GL
In this post I provided a way to support WebGL in Chromium for lambda: https://bugs.chromium.org/p/chromium/issues/detail?id=617551
Please add me to a project - I will update the script:
- Build osmesa shared lib: libOSMesa32.so.8.0.0
- Create symbolic link: libosmesa.so -> libOSMesa32.so.8.0.0
- Package libosmesa.so and libOSMesa32.so together with headless_shell
Can you make a PR? 🙏
Yeah, I'm also interested
Actually the script does not change. You use it to package headless_shell. Then you need to follow these instructions to build libOSMesa: https://www.mesa3d.org/install.html
Then do the following:
- Copy
libOSMesa32.so.8.0.0(or other version if built it) next toheadless_shell - Create symbolic link
libosmesa.so->libOSMesa32.so.8.0.0 - Package
headless_shell,libosmesa.soandlibOSMesa32.so.8.0.0together - Remove Puppeteer launch option
--disable-gpuin code because you do not want to disable and uselibosmesa.solib to run GPU on Lambda :)
@Mykolas-Molis, can you share libosmesa.so file, since it turned out to be not so easy to build.
@Mykolas-Molis +++ to RodionChachura post
I forked the project and added library here: https://github.com/Mykolas-Zenitech/puppeteer-lambda-starter-kit/blob/master/chrome/libosmesa.so.tar.gz