Welcome to the Zenroom documentation wiki!
This section is optional for those who want to build this software from source. The following build instructions contain generic information meant for an expert audience.
make sharedits the simpliest, builds a shared executable linked to a system-wide libc, libm and libpthread (mostly for debugging)
make staticbuilds a fully static executable linked to musl-libc (to be operated on embedded platforms)
make winbuilds a Windows 64bit executable with no DLL dependancy, containing the LUA interpreter and all crypto functions (for client side operations on windows desktops)
docs/demofolder a simple web page with a REPL and some boilerplate code to show how to use the WebAssembly binary (visible online here)
Remember that if after cloning this source code from git, one should do:
git submodule update --init --recursive
Then first build the shared executable environment:
To run tests:
To build the static environment:
make bootstrap make static make check-static
NB. for the
Build instructions for Mobile libraries
You need to have install
Xcode with the
There are 3 different targets
ios-arm64 these targets creates an static library with the correct architecture (x86_64, ARMV7, ARM64).
Finally once done all the libraries there is a final target
ios-fat that put them together creating a fat-binary that you can include into your app.
Or you can just use the
build-ios.sh that does all the steps for you!
For using the library just copy
zenroom.a somewhere in your project and include the zenroom.h file.
You need to have installed
android-sdk (if you have Android Studio installed is already there) and set the
Also you need to install NDK inside the android-sdk using the Android Studio -> Tools -> Android -> SDK Manager
Finally use the
builld-android.sh script (be sure that the ANDROID_HOME environment var is set) and you will have at the end
libzenroom-arm.so and libzenroom-x86.so
To use it in your project just drop
src/Zenroom.java inside your codebase and the put the
*.so as following:
src/ main/ java/ jniLibs/ x86/ libzenroom.so armeabi/ libzenroom.so