servo / webxr

Bindings for WebXR
Mozilla Public License 2.0
81 stars 23 forks source link

Can't compile magicleap on macOS #52

Closed jkelleyrtp closed 4 months ago

jkelleyrtp commented 5 years ago
cargo:warning=couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
cargo:warning=set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable

macOS doesn't have llvm-config and thus can't link to the magcleap libraries. How would I go about fixing this?

asajeffrey commented 5 years ago

You need to compile using the magicleap SDK.

jkelleyrtp commented 5 years ago

Do I set this using a rustc flag to the mlsdk? Not sure which compiler I should use and where it's located.

asajeffrey commented 5 years ago

The SDK is available from https://creator.magicleap.com, once you've installed it, you should set the MAGICLEAP_SDK environment variable to point to the download, and run cargo build --features=magicleap.

msub2 commented 4 months ago

@jdm This can be closed now that the ML backend has been removed.