Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL support #50

Closed
wants to merge 5 commits into from
Closed

WebGL support #50

wants to merge 5 commits into from

Conversation

pxlrbt
Copy link

@pxlrbt pxlrbt commented Apr 11, 2020

Added two directories with webgl support. One is a prebuilt version since building the image takes more than a day. The other one includes the single build steps for reference if a newer version is needed and needs to be patched again.

The final docker image can be downloaded and tested from here, before integrating the PR: https://hub.docker.com/r/pxlrbt/alpine-chrome/tags

@lygstate
Copy link

There is no need to place chromium-80.0.3987.149-r0.apk here, we just need the webgl SO files that's install -Dm755 swiftshader/libEGL.so "$pkgdir"/usr/lib/$pkgname/swiftshader/libEGL.so
install -Dm755 swiftshader/libGLESv2.so "$pkgdir"/usr/lib/$pkgname/swiftshader/libGLESv2.so

@pxlrbt
Copy link
Author

pxlrbt commented Apr 12, 2020

@lygstate I tried it by copying the files you mentioned but with no success. Only adding the lines to the APKBUILD and recompiling chrome worked in my case.
Could you explain your solution?

@lygstate
Copy link

Maybe I forget some deps?

@pxlrbt
Copy link
Author

pxlrbt commented Apr 13, 2020

Just to get it right: You only copied the Swiftshader files to /usr/lib/chromiumand it worked? That's what I tried first. With the second try I fetched the current package from aports, added the lines you mentioned and rebuilt chromium.

@lygstate
Copy link

Oh, Imeans copy the Swiftshader files from the apk that you build, no copied from other packages.

@pxlrbt
Copy link
Author

pxlrbt commented Apr 13, 2020

Yes, I think that was what I did. So you rebuilt the chromium package and extracted swiftshader files from the generated APK? How can I extract these files? Sorry, I'm not that experiences with building packages.

@lygstate
Copy link

Just to use 7zip to unpack it

@lygstate
Copy link

refer to #51

@jlandure
Copy link
Member

Hi @pxlrbt
Thanks again for your work! I've created the new web-gl tag
https://hub.docker.com/repository/docker/zenika/alpine-chrome/tags?page=1
https://github.com/Zenika/alpine-chrome/tree/master/with-webgl
It works well. Thanks again and feel free to check it out.

I've created 2 issues to discuss:
#52 and #53

@pxlrbt pxlrbt closed this Apr 15, 2020
@jlandure
Copy link
Member

jlandure commented May 3, 2020

@all-contributors please add @pxlrbt for code and ideas

@allcontributors
Copy link
Contributor

@jlandure

I've put up a pull request to add @pxlrbt! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants