Export XR site to Magic Leap One MPK

This guide explains how to package your XR site with the Exokit Engine as an MPK for the Magic Leap One headset.

Set default site

In the Exokit main.cpp is where you will find the default site that the Exokit MPK will load into. Change the jsString to your site URL or file path.

Prerequisites

Node 11.6.0
Latest Exokit Ubuntu Windows Subsystem for Linux (WSL)

Install the Magic Leap SDK

Sign in as a Magic Leap creator: https://www.magicleap.com/creator

Download developer certificate and private key in Publish then Certificates.

Download the Package Manager: https://creator.magicleap.com/downloads/lumin-sdk/overview

Once the package manager is opened, download the 0.19.0 version of the SDK.

Build MPK

Confirm that MLSDK in version-ml.sh points to the Magic Leap SDK directory. Create the cert directory and place the renamed certificate and private key inside.

cd exokit
# edit MLSDK path in ./scripts/version-ml.sh
# place the renamed certificate in cert/app.cert and private key in cert/app.privkey

Build the MPK

# Run this inside Ubuntu WSL
./scripts/build-ml.sh

If you want to now install and run into your plugged in device using mldb

./scripts/install-ml.sh
./scripts/run-ml.sh