Currently only the main lsd() function call is available.
You don't need to compile this unless you change the C code. Just use the pre-compiled index.js and index.*.js files.
First install emscripten. On a Ubuntu 14.04 the following should work:
sudo apt-get install emscripten
On Ubuntu 16.04 there appears to be an issue with emscripten. You'll need to build emscripten using emsdk:
sudo apt-get install cmake build-essential gitwget ""tar cvzf emsdk-portable.tar.gzcd emsdk-portable/./emsdk update./emsdk install latest./emsdk activate latestsource ./emsdk_env.sh
Now get the lsd source code:
cd line-segment-detector/wget ""unzip lsd_1.6.zip
License is AGPLv3