open-ecosystem-development / OpenXR-SDK

Apache License 2.0
2 stars 3 forks source link

Instructions to build Firefox Reality for HVR #16

Closed MortimerGoro closed 3 years ago

MortimerGoro commented 3 years ago

I'm going to share some instructions for local builds here. To make it easier for now you can use this branch (https://github.com/MortimerGoro/FirefoxReality/tree/mortimer/hvr_prs) which contains all the PRs waiting to be landed. Once they are landed you can switch to the official Firefox Reality main branch.

Steps:

  1. Clone the repository:
git clone https://github.com/MortimerGoro/FirefoxReality.git
git checkout mortimer/hvr_prs
  1. Add the third_party SDKs into a folder named 'third_party`in the root directory. Download from here: third_party.zip

  2. Fetch git submodules:

git submodule update --init --recursive
  1. (Optional) In order to setup ASR API keys, first copy agconnect-services.json to the appfolder. Then create a user.properties file in the root folder and set the HVR_ML_API_KEY value with the Huawei ML APIKey. See the file I'm using: user.properties.zip

  2. Open the project with Android Studio, and select the `hvrArm64Debug' build variant. After that you can compile and run it on the device

That's it. In the readme https://github.com/MozillaReality/FirefoxReality you can more information about some optional values you can set in user.properties, how to inject local gecko builds and more things.

Lixming commented 3 years ago

Thanks for sharing. We are sorry to find that our demo still does not integrate 6DOF controller buttons, although we have used them in the virtual fence/border. I will make a brief plan on the sharing of demo and the solution of related problems in the next new issue. If you have any difficulties, please communicate with us at any time.