From dd0283d8488f8200924a4d84cbebe7c1de20ab76 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Mon, 25 Mar 2019 12:36:15 -0500 Subject: [PATCH] Reenable jemallocator --- demo/magicleap/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 demo/magicleap/README.md diff --git a/demo/magicleap/README.md b/demo/magicleap/README.md new file mode 100644 index 00000000..9dacb8af --- /dev/null +++ b/demo/magicleap/README.md @@ -0,0 +1,30 @@ +# Magic Leap demo + +First, install the Magic Leap SDK. By default this is installed in `MagicLeap/mlsdk/`, for example: +``` + export MAGICLEAP_SDK=~/MagicLeap/mlsdk/v0.19.0 +``` + You will also need a signing certificate. +``` + export MLCERT=~/MagicLeap/cert/mycert.cert +``` + +Now build the pathfilder demo library: +``` + CFLAGS="-I${MAGICLEAP_SDK}/lumin/usr/include --sysroot=${MAGICLEAP_SDK}/lumin/usr" \ + PATH=$PATH:${MAGICLEAP_SDK}/tools/toolchains/bin/ \ + cargo build --release --target=aarch64-linux-android +``` + +Then build the `.mpk` archive: +``` + ${MAGICLEAP_SDK}/mabu PathfinderDemo.package -t release_device -s ${MLCERT} +``` +The `.mpk` can be installed: +``` + ${MAGICLEAP_SDK}/tools/mldb/mldb install -u .out/PathfinderDemo/PathfinderDemo.mpk +``` +and run: +``` + ${MAGICLEAP_SDK}/tools/mldb/mldb launch -w com.mozilla.pathfinder.demo +```