Skip to content

Building for Magic Leap

Josh Matthews edited this page Mar 18, 2019 · 1 revision

Setting up build environment

After cloning the repository and installing dependencies common to all targets, you will need to obtain the Magic Leap SDK.

Build Servo

# Replace "--release" with "--dev" to create an unoptimized debug build.
# Path to the Magic Leap SDK to use when building.
$ export MAGICLEAP_SDK=~/MagicLeap/mlsdk/v0.17.0/
# Path to the local developer certificate.
$ export MLCERT=~/mlcert.cert
$ ./mach build --release --magicleap
$ ./mach package --release --magicleap
# Replace "release" with "debug" if building with --dev
$ $(MAGICLEAP_SDK)/tools/mldb/mldb install -u target/magicleap/aarch64-linux-android/release/Servo2D.mpk
Clone this wiki locally