pathfinder/demo/magicleap
Alan Jeffrey 9fd479d604 Expose a C API for getting pathfinder to render to an EGL surface 2019-04-15 12:43:41 -04:00
..
.cargo Add magicleap demo 2019-04-15 12:43:41 -04:00
lre Use pathfinder directly for magicleap demo cube faces rather than using pathfinder_demo 2019-04-15 12:43:41 -04:00
src Expose a C API for getting pathfinder to render to an EGL surface 2019-04-15 12:43:41 -04:00
.gitignore Add magicleap demo 2019-04-15 12:43:41 -04:00
Cargo.toml Add magicleap landscape demo 2019-04-15 12:43:41 -04:00
PathfinderDemo.mabu Add magicleap demo 2019-04-15 12:43:41 -04:00
PathfinderDemo.package Add magicleap landscape demo 2019-04-15 12:43:41 -04:00
PathfinderImmersiveDemo.mabu Add magicleap landscape demo 2019-04-15 12:43:41 -04:00
PathfinderLandscapeDemo.mabu Add magicleap landscape demo 2019-04-15 12:43:41 -04:00
README.md Reenable jemallocator 2019-04-15 12:43:41 -04:00
fake-ld.sh Add magicleap demo 2019-04-15 12:43:41 -04:00
manifest.xml Get landscape app to respond to clicks 2019-04-15 12:43:41 -04:00

README.md

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