Skip to content

HTTPS clone URL

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](https://github.com/kripken/emscripten/wiki/Tutorial)
2. [Setup crypto-emscripten build script](https://github.com/mnaamani/crypto-emscripten).
This will be used to compile libgpg-error,libgcrypt and libotr into bitcode.
In the root directory of crypto-emscripten folder, edit **build-libs.sh** and set *LIBOTR_VERSION* to *4.1.0*.
Then run the build script.
./build-libs.sh
export CRYPTO_EMSCRIPTEN=`pwd`
3. Get the source of otr4-em and make the module.
git clone https://github.com/mnaamani/otr4-em.git
cd otr4-em/
Either run:
make -e #this will use the environement variable exported in step 2 to locate crypto-emscripten
..or
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.