How to run NW.js on Linux ARMv7 devices:
./nw --use-gl=egl --ignore-gpu-blacklist --disable-accelerated-2d-canvas --num-raster-threads=2
You can find the step-by-step guides to build NW.js bellow:
- v0.21.x in file docs/build-nwjs-v0.21.x.md
- v0.20.x in file docs/build-nwjs-v0.20.x.md
- v0.19.x in file docs/build-nwjs-v0.19.x.md
- v0.18.x in file docs/build-nwjs-v0.18.x.md
- v0.17.x in file docs/build-nwjs-v0.17.x.md
- v0.16.x in file docs/build-nwjs-v0.16.x.md
- v0.15.x in file docs/build-nwjs-v0.15.x.md
- v0.14.x in file docs/build-nwjs-v0.14.x.md
Cross compilation tutorial for v0.12.x:
Cross compilation tutorial for v0.14.x:
Chrome branding (enable proprietary codecs)
With versions v0.14.x, v0.15.x, v0.16.x the shared object files located in lib directory need to be copied to /usr/lib directory.
If you don't want NW.js to store shared objects there, as an alternative, you can add the library where you store the shared objects to LD_LIBRARY_PATH environment variable, as shown below:
export LD_LIBRARY_PATH=/path/to/nwjs/nwjs-v0.15.1-linux-arm/lib:$LD_LIBRARY_PATH
If you don't want to export the environment variable everytime you reboot you device you can add the export line to the end of .bashrc file.
Thanks @gripped, @jtg-gg!