From 3700a97aed08c862758bb3fb77cd682c2a8f9935 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 24 Nov 2023 21:06:08 +0100 Subject: [PATCH] Add build instructions for client --- README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 65dda1ae..1f6bfc6e 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,40 @@ ln --relative --symbolic --force build-server/openxr_wivrn-dev.json ~/.config/op ``` ## Client (headset) -At this early stage of development, we do not have stable releases. +### Prebuilt apk Download apk from [Releases](https://github.com/Meumeu/WiVRn/releases). -Install with adb (headset connected to PC), developer mode must be activated on Quest. +Install with adb (headset connected to PC), developer mode must be enabled. ```bash adb install WiVRn.apk ``` +### Compilation +#### Build dependencies +As Arch package names: git git-lfs pkgconf glslang cmake jre17-openjdk + +#### Android environment +Download [sdkmanager](https://developer.android.com/tools/sdkmanager) commandline tool and extract it to any directory. +Create your `ANDROID_HOME` directory, for instance `~/Android`. + +Review and accept the licenses with +```bash +sdkmanager --sdk_root="${HOME}/Android" --licenses +``` + +#### Client build +For Pico only: setup git lfs + +From the main directory. +```bash +export ANDROID_HOME=~/Android +export JAVA_HOME=/usr/lib/jvm/openjdk-bin-17/ + +./gradlew assembleStandardRelease +# Or for Pico assemblePico +``` + +Outputs will be in `build/outputs/apk/standard/release/WiVRn-standard-release-unsigned.apk` + # Usage On the computer, run `wivrn-server`, from checkout directory ```bash