-
Notifications
You must be signed in to change notification settings - Fork 24
Description
In Alpine, you must first install gcompat to get past the Could not find wrtc binary on any of the paths error others have reported [1]:
apk add gcompatThis is because the try/catch in bindings.js swallows the error (assuming it is a .node file not found) and hides the true error:
Could not open '/lib/ld-linux-aarch64.so.1': No such file or directoryAlpine doesn't include ld-linux-aarch64.so.1, but you can get it through gcompat as shown above. It may be worthwhile to put this in the README.
However, after doing this, wrtc is still not usable, as loading build-linux-x64/wrtc.node immediately segfaults. This is not uncommon, and not necessarily difficult to fix as there are a ton of people trying to make things compatible with alpine. However, this is as far as I could take it without needing to start doing an actual build to debug further. For now I am switching to bookworm linux, but it would be nice to use this on alpine instead. Hopefully this helps a bit to get it there.