- browserify main.js
- Get the OpenCV source
git clone https://github.com/opencv/opencv
cd opencv
- Install emscripten. It is LLSVM to script interpreter. Get it from Emscripten
- Fetch the latest registry of available tools.
./emsdk update
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
-
(optional) Patch emscripten & rebuild (See https://github.com/ucisysarch/opencvjs for further info)
-
In opencv directory, build js
cd opencv
python ./platforms/js/build_js.py build_js
-
Install Cura Engine CuraEngine
-
Install OpenJSCAD commanline tool OpenJSCAD
-
Install all npm/node dependencies by
npm install
If you get permission denied
message when installing any npm modules, follow the instrunction
https://docs.npmjs.com/getting-started/fixing-npm-permissions