Reenable jemallocator

This commit is contained in:
Alan Jeffrey 2019-03-25 12:36:15 -05:00 committed by Josh Matthews
parent 838bf684fb
commit dd0283d848
1 changed files with 30 additions and 0 deletions

30
demo/magicleap/README.md Normal file
View File

@ -0,0 +1,30 @@
# Magic Leap demo
First, install the Magic Leap SDK. By default this is installed in `MagicLeap/mlsdk/<version>`, 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
```