Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Switch Node Linux binary builds back to GLX/xvfb - #7053

Merged
mikemorris merged 2 commits into
masterfrom
node-without-osmesa
Nov 15, 2016
Merged

mikemorris merged 2 commits into
masterfrom
node-without-osmesa

Conversation

@mikemorris

@mikemorris mikemorris commented Nov 14, 2016 •

Copy link
Copy Markdown
Contributor

Switches Node.js Linux binary builds from OSMesa back to GLX/xvfb to remove a runtime dependency on libOSMesa.so.8 and allow libGL.so to be supplied at runtime by alternate implementations, like the NVIDIA proprietary drivers for rendering on hardware GPUs.

/cc @brunoabinader @springmeyer

@mention-bot

Copy link
Copy Markdown

@mikemorris, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ChrisLoer, @jfirebaugh and @tmpsantos to be potential reviewers.

@mikemorris

Copy link
Copy Markdown
Contributor Author

Per http://www.mesa3d.org/osmesa.html, it's my understanding that using OSMesa eliminates any dynamic linking of libGL.so, so simply statically linking libOSMesa.a likely wouldn't be a fix here.

I think the proper path forward (after this rollback) for a non-GLX interface for the Node.js bindings would be shipping EGL headless backend support in #7007, as libEGL.so could be supplied by either the NVIDIA drivers or Mesa.

@brunoabinader

brunoabinader commented Nov 14, 2016 •

Copy link
Copy Markdown
Contributor

it's my understanding that using OSMesa eliminates any dynamic linking of libGL.so

Correct - given the constraints, it seems either GLX or EGL solutions would seem more appropriate 👍

I think the proper path forward (after this rollback) for a non-GLX interface for the Node.js bindings would be shipping EGL headless backend support in #7007, as libEGL.so could be supplied by either the NVIDIA drivers or Mesa.

Totally - on my tests in Desktop Linux using NVIDIA proprietary drivers, both GLX and EGL backends worked fine.

@brunoabinader

Copy link
Copy Markdown
Contributor

@mikemorris this is what I have in mind: Separate Node builds, one in debug mode for running tests, and the other in release mode for generating the node packages: https://gist.github.com/brunoabinader/3cf3e636a3f95a9f0aa4e04f2125caa4

Is this feasible?

@mikemorris
mikemorris force-pushed the node-without-osmesa branch 4 times, most recently from 0b61020 to 97f1424 Compare November 15, 2016 17:03
@mikemorris
mikemorris merged commit aeba7cc into master Nov 15, 2016
@mikemorris
mikemorris deleted the node-without-osmesa branch November 15, 2016 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants