Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (17 sloc) 0.875 kb
Building the libotr4.js
1. [Setup Emscripten + LLVM clang compilers](
2. [Setup crypto-emscripten build script](
This will be used to compile libgpg-error,libgcrypt and libotr into bitcode.
In the root directory of crypto-emscripten folder, edit **** and set *LIBOTR_VERSION* to *4.1.0*.
Then run the build script.
3. Get the source of otr4-em and make the module.
git clone
cd otr4-em/
Either run:
make -e #this will use the environement variable exported in step 2 to locate crypto-emscripten
make CRYPTO_EMSCRIPTEN=/path/to/crypto-emscripten
4. Run a test
node examples/index.js
Jump to Line
Something went wrong with that request. Please try again.