puppeteer-lambda-starter-kit icon indicating copy to clipboard operation
puppeteer-lambda-starter-kit copied to clipboard

Update script to support Web GL

Open ghost opened this issue 8 years ago • 6 comments

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:

  1. Build osmesa shared lib: libOSMesa32.so.8.0.0
  2. Create symbolic link: libosmesa.so -> libOSMesa32.so.8.0.0
  3. Package libosmesa.so and libOSMesa32.so together with headless_shell

ghost avatar Dec 04 '17 13:12 ghost

Can you make a PR? 🙏

Kikobeats avatar Feb 07 '18 17:02 Kikobeats

Yeah, I'm also interested

AndrewGrachov avatar Feb 08 '18 04:02 AndrewGrachov

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:

  1. Copy libOSMesa32.so.8.0.0 (or other version if built it) next to headless_shell
  2. Create symbolic link libosmesa.so -> libOSMesa32.so.8.0.0
  3. Package headless_shell, libosmesa.so and libOSMesa32.so.8.0.0 together
  4. Remove Puppeteer launch option --disable-gpu in code because you do not want to disable and use libosmesa.so lib to run GPU on Lambda :)

ghost avatar Feb 11 '18 22:02 ghost

@Mykolas-Molis, can you share libosmesa.so file, since it turned out to be not so easy to build.

radzionc avatar Aug 01 '18 14:08 radzionc

@Mykolas-Molis +++ to RodionChachura post

MaksimMarkevich avatar Aug 01 '18 14:08 MaksimMarkevich

I forked the project and added library here: https://github.com/Mykolas-Zenitech/puppeteer-lambda-starter-kit/blob/master/chrome/libosmesa.so.tar.gz

mykolasmolis avatar Aug 02 '18 15:08 mykolasmolis