alvr-org / ALVR

Stream VR games from your PC to your headset via Wi-Fi
MIT License
5.44k stars 484 forks source link

build client failed #362

Closed amirhosein5858 closed 3 years ago

amirhosein5858 commented 3 years ago

hi I`m trying to build client and get this error:

linking withC:\Users\AmirhoseinHeidari\Desktop\WORK\mobile\ALVR\alvr\client\android\build\linker-wrapper\linker-wrapper.batfailed: exit code: 9009 any sugestion??

UPDATE

i add this into build.gradle: exec = { spec, toolchain -> spec.environment("RUST_ANDROID_GRADLE_LINKER_WRAPPER_PY", "C:\\Users\\AmirhoseinHeidari\\Desktop\\WORK\\mobile\\ALVR\\alvr\\client\\android\\build\\linker-wrapper\\linker-wrapper.py") spec.environment("RUST_ANDROID_GRADLE_PYTHON_COMMAND", "C:\\Users\\AmirhoseinHeidari\\AppData\\Local\\Programs\\Python\\Python37\\python.exe") }

and build success but when i run app i get this error:

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZTVN10__cxxabiv120__si_class_type_infoE" referenced by "/data/app/~~2VdsaDKNg7AE9vjX-1Yo_A==/com.polygraphene.alvr-zl70QhHZluU-Bl9AKsTWsA==/lib/arm64/libalvr_client.so"...
zmerp commented 3 years ago

I'm not sure why you are getting those errors. The procedure for building the client is:

amirhosein5858 commented 3 years ago

I'm not sure why you are getting those errors. The procedure for building the client is:

  • Install Python and rustup
  • Run cargo xtask install-deps (for the android-rust interop). You should get a jar inside deps/
  • Open alvr/client/android with Android Studio and build.

i do this steps and yes there is a .jar file unde deps/rust-android-gradle/

build success but crash on start up

logs are:

--------- beginning of crash 2020-12-17 16:35:22.099 8227-8227/com.polygraphene.alvr E/AndroidRuntime: FATAL EXCEPTION: main Process: com.polygraphene.alvr, PID: 8227 java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZTVN10__cxxabiv120__si_class_type_infoE" referenced by "/data/app/~~6fqAuBzlta63mFruM0dcYA==/com.polygraphene.alvr-G_548nC1H4XZNLc1Vm84Qg==/lib/arm64/libalvr_client.so"... at java.lang.Runtime.loadLibrary0(Runtime.java:1087) at java.lang.Runtime.loadLibrary0(Runtime.java:1008) at java.lang.System.loadLibrary(System.java:1664) at com.polygraphene.alvr.OvrActivity.<clinit>(OvrActivity.java:39) at java.lang.Class.newInstance(Native Method) at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95) at android.app.Instrumentation.newActivity(Instrumentation.java:1253) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3353) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

zmerp commented 3 years ago

First of all remove the changes to build.gradle. I think if you invoke the linker manually you break some assumptions for rust-android-gradle. Check if you can build correctly other (native) apps with Android Studio.

amirhosein5858 commented 3 years ago

there is no success yet! i do step by step from readme error: java.lang.UnsatisfiedLinkError: dlopen failed: library "libalvr_client.so" not found

zmerp commented 3 years ago

Try deleting Android Studio cache and run cargo clean.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

wuwei-nreal commented 2 years ago

I'm still having this bug. I first added classpath "org.mozilla.rust-android-gradle:plugin:0.9.0" to the project gradle dependency to pass the gradle sync error. Then when I try to make I'm blocked by:

Executing tasks: [:app:assembleOculusGoNightlyDebug] in project C:\Users\Wei\public\ALVR-16.0.0\alvr\client\android

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
> Task :app:preBuild UP-TO-DATE
> Task :app:preOculusGoNightlyDebugBuild UP-TO-DATE
> Task :app:compileOculusGoNightlyDebugAidl NO-SOURCE
> Task :app:compileOculusGoNightlyDebugRenderscript NO-SOURCE
> Task :app:generateOculusGoNightlyDebugBuildConfig
> Task :generateLinkerWrapper

> Task :app:cargoBuildArm64
   Compiling cfg-if v1.0.0
   Compiling ahash v0.4.7
   Compiling byteorder v1.4.3
   Compiling termcolor v1.1.2
   Compiling fixedbitset v0.2.0
   Compiling unicode-width v0.1.8
   Compiling jni-sys v0.3.0
   Compiling bit-vec v0.6.3
   Compiling scopeguard v1.1.0
   Compiling bytes v1.0.1
   Compiling smallvec v1.6.1
   Compiling lazy_static v1.4.0
   Compiling ndk-sys v0.2.1
   Compiling pin-project-lite v0.2.6
   Compiling futures-sink v0.3.15
   Compiling regex-syntax v0.6.25
   Compiling cesu8 v1.1.0
   Compiling renderdoc-sys v0.7.1
   Compiling slab v0.4.3
   Compiling futures-io v0.3.15
   Compiling arrayvec v0.5.2
   Compiling pin-utils v0.1.0
   Compiling once_cell v1.7.2
   Compiling tinyvec_macros v0.1.0
   Compiling glow v0.9.0
   Compiling ahash v0.3.8
   Compiling ppv-lite86 v0.2.10
   Compiling inplace_it v0.3.3
   Compiling itoa v0.4.7
   Compiling untrusted v0.7.1
   Compiling adler v1.0.2
   Compiling rawpointer v0.2.1
   Compiling profiling v1.0.3
   Compiling spin v0.5.2
   Compiling base64 v0.13.0
   Compiling gimli v0.24.0
   Compiling copyless v0.1.5
   Compiling rustc-demangle v0.1.19
   Compiling nonzero_ext v0.2.0
   Compiling humantime v2.1.0
   Compiling object v0.24.0
   Compiling futures-timer v3.0.2
   Compiling claxon v0.4.3
   Compiling hound v3.4.0
   Compiling android_log-sys v0.2.0
   Compiling instant v0.1.9
   Compiling libloading v0.7.0
   Compiling hashbrown v0.9.1
   Compiling codespan-reporting v0.11.1
   Compiling lock_api v0.4.4
   Compiling fxhash v0.2.1
   Compiling bit-set v0.5.2
   Compiling ogg v0.8.0
   Compiling tinyvec v1.2.0
   Compiling matrixmultiply v0.3.1
   Compiling libc v0.2.94
   Compiling log v0.4.14
   Compiling memchr v2.4.0
   Compiling bitflags v1.2.1
   Compiling futures-core v0.3.15
   Compiling ash v0.32.1
   Compiling futures-task v0.3.15
   Compiling proc-macro-nested v0.1.7
   Compiling ryu v1.0.5
   Compiling encoding_rs v0.8.28
   Compiling typenum v1.13.0
   Compiling num-traits v0.2.14
   Compiling miniz_oxide v0.4.4
   Compiling hashbrown v0.8.2
   Compiling gfx-renderdoc v0.1.0
   Compiling indexmap v1.6.2
   Compiling aho-corasick v0.7.18
   Compiling combine v4.5.2
   Compiling gpu-descriptor-types v0.1.1
   Compiling gpu-alloc-types v0.2.0
   Compiling wgpu-types v0.9.0
   Compiling futures-channel v0.3.15
   Compiling lewton v0.10.2
   Compiling raw-window-handle v0.3.3
   Compiling parking_lot_core v0.8.3
   Compiling num_cpus v1.13.0
   Compiling getrandom v0.2.2
   Compiling khronos-egl v4.1.0
   Compiling slice-deque v0.3.0
   Compiling dirs-sys v0.3.6
   Compiling mio v0.7.11
   Compiling quanta v0.4.1
   Compiling atty v0.2.14
   Compiling no-std-compat v0.4.1
   Compiling addr2line v0.15.1
   Compiling petgraph v0.5.1
   Compiling oboe-sys v0.4.0
   Compiling minimp3-sys v0.3.2
   Compiling ring v0.16.20
   Compiling gpu-descriptor v0.1.1
   Compiling gpu-alloc v0.4.7
   Compiling regex v1.5.4
   Compiling spirv_headers v1.5.0
   Compiling num-integer v0.1.44
   Compiling approx v0.5.0
   Compiling dashmap v4.0.2
   Compiling parking_lot v0.11.1
   Compiling encoding_rs_io v0.1.7
   Compiling dirs v3.0.2
   Compiling rand_core v0.6.2
   Compiling backtrace v0.3.59
   Compiling serde v1.0.127
   Compiling thiserror v1.0.24
   Compiling futures-util v0.3.15
   Compiling tokio v1.6.0
   Compiling chrono v0.4.19
   Compiling num-rational v0.4.0
   Compiling alvr_filesystem-layout v15.2.1 (C:\Users\Wei\public\ALVR-16.0.0\alvr\filesystem-layout)
   Compiling rand_chacha v0.3.0
   Compiling rose_tree v0.2.0
   Compiling pem v0.8.3
   Compiling env_logger v0.8.3
   Compiling minimp3 v0.5.1
   Compiling yasna v0.4.0
   Compiling naga v0.5.0
   Compiling rand v0.8.3
   Compiling android_logger v0.10.1
   Compiling tokio-util v0.6.7
   Compiling rcgen v0.8.11
   Compiling futures-executor v0.3.15
   Compiling drm-fourcc v2.1.1
   Compiling num-complex v0.4.0
   Compiling serde_json v1.0.66
   Compiling semver v1.0.3
   Compiling bincode v1.3.3
   Compiling jni v0.18.0
   Compiling jni v0.19.0
   Compiling alvr_client v16.0.0 (C:\Users\Wei\public\ALVR-16.0.0\alvr\client)
   Compiling num_enum v0.5.1
   Compiling futures v0.3.15
   Compiling external-memory v0.0.1
   Compiling simba v0.5.1
   Compiling ndk v0.3.0
   Compiling governor v0.3.2
   Compiling settings-schema v0.3.1 (C:\Users\Wei\public\ALVR-16.0.0\alvr\settings-schema)
   Compiling ndk-glue v0.3.0
   Compiling gfx-hal v0.9.0
   Compiling winit v0.25.0
   Compiling oboe v0.4.1
   Compiling cpal v0.13.3
   Compiling gfx-backend-gl v0.9.0
   Compiling gfx-backend-empty v0.9.0
   Compiling gfx-backend-vulkan v0.9.0
   Compiling rodio v0.14.0
   Compiling nalgebra v0.28.0
   Compiling wgpu-core v0.9.2
   Compiling wgpu v0.9.0
   Compiling alvr_common v16.0.0 (C:\Users\Wei\public\ALVR-16.0.0\alvr\common)
warning: unused imports: `DerefMut`, `Deref`, `PathBuf`
  --> alvr\common\src\data\session.rs:10:11
   |
10 |     ops::{Deref, DerefMut},
   |           ^^^^^  ^^^^^^^^
11 |     path::{Path, PathBuf},
   |                  ^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: `alvr_common` (lib) generated 1 warning
warning: unused import: `semver::Version`
  --> alvr\client\src\connection.rs:21:5
   |
21 | use semver::Version;
   |     ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `str::FromStr`
  --> alvr\client\src\connection.rs:26:5
   |
26 |     str::FromStr,
   |     ^^^^^^^^^^^^

error: linking with `C:\Users\Wei\public\ALVR-16.0.0\alvr\client\android\build\linker-wrapper\linker-wrapper.bat` failed: exit code: 9009
  |
  = note: "cmd" "/c" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\alvr\\client\\android\\build\\linker-wrapper\\linker-wrapper.bat" "-Wl,--version-script=C:\\Users\\Wei\\AppData\\Local\\Temp\\rustcxQtabX\\list" "-Wl,--allow-multiple-definition" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.0.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.1.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.10.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.11.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.12.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.13.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.14.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.15.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.2.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.3.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.4.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.5.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.6.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.7.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.8.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.alvr_client.8007228f-cgu.9.rcgu.o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\alvr_client.3180mnvxx3iaqyfi.rcgu.o" "-Wl,--as-needed" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\release\\deps" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\build\\alvr_client-f235e538108708fd\\out" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\build\\alvr_client-f235e538108708fd\\out" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\alvr\\client\\android/app/src/main/jniLibs/arm64-v8a" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\build\\oboe-sys-9206f02eba509c8b\\out\\library" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\build\\oboe-sys-9206f02eba509c8b\\out\\library" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\build\\ring-feefc7039f1f7ddb\\out" "-L" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\build\\minimp3-sys-1636e4895a9c0823\\out" "-L" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-lbindings" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-lc++_static" "-Wl,-Bstatic" "-Wl,--whole-archive" "-lbindings_rs_c" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-llog" "-lvrapi" "-lGLESv3" "-lEGL" "-landroid" "-lOpenSLES" "-lovrplatformloader" "-Wl,-Bstatic" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libandroid_logger-8bc3781b47e8efa5.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libenv_logger-2ac2a93191048fd9.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libatty-cde34acb389b1021.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libtermcolor-52866c85ca041e48.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libhumantime-2eaa4d0a06564a03.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libandroid_log_sys-7d7bcefec78b1633.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libjni-ada7319e8132fa7c.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libalvr_common-ebdc6ee3a4452a08.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libbincode-5297b99ca714f7f5.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libbacktrace-3fe43162a5f58970.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libminiz_oxide-daa76fe884865b9c.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libadler-7a3230e359df3746.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libobject-74daa7698a263b3c.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libaddr2line-c54671b50573f764.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libgimli-02c25d55fd36861a.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\librustc_demangle-54715ddcb5ff0f93.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\librcgen-e1eaad240763f717.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libpem-f53f706f4eb6bdf3.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libbase64-f0ee467faeafd6f8.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libregex-5c1b202a458395a9.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libaho_corasick-941e80fd859eefc9.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libregex_syntax-92d099e4505c5e19.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libring-e05a4457053f8d42.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libspin-664ae7d0ffa5da2d.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libuntrusted-4123f35c7a949e22.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libonce_cell-6a5eac4d9d66f235.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libyasna-c23669aae32aca5b.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libchrono-fd559de00e909c18.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libgovernor-255ea5a48e70bec6.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libquanta-eab9ba8a2f6244a1.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libdashmap-725815651eda9b78.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures_timer-c0860121d6aab437.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libnonzero_ext-a4d073c34d2e6905.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\librand-73dae41bb65842d9.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\librand_chacha-146ea97dc289e000.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libppv_lite86-30d9284a36169ca7.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\librand_core-030cd9500c02a305.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libgetrandom-d2d7bcda4d27c651.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libno_std_compat-9c088974634de0a9.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libtokio_util-065e6a9cbb5b89b9.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures-d73893a9ff261f72.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures_executor-7b4dda0ecf695c84.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures_util-506c32dfae43f4f1.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures_io-b710fb22586b7daf.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libslab-cfbddfb3c63598a8.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures_channel-3ca9113f7f55445a.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures_sink-006b923fe0c78724.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures_task-8d86143302c4ce53.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libpin_utils-ecf3e92d01624742.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libfutures_core-c8e080e6d60c9fc5.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libsettings_schema-46f3c5c3fca5466e.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libserde_json-2886f18cd819286f.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libryu-a83c499403e9d33b.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libitoa-d8e06b42bc6cf463.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libsemver-2f47e7554aebf917.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libnalgebra-7a527bf68e82261b.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libnum_rational-c929f985e8afe9cf.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libnum_integer-b0d269bf7ca2c09d.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libtypenum-392b18e990bdbb11.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libsimba-cd0f9fdcdda25465.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libnum_complex-e4f74e2dcb6aa64d.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libmatrixmultiply-b36419d4c381febe.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\librawpointer-461c633b018ed96c.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libapprox-5c646e79983d8c1d.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libtokio-935f96fefff503cd.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libnum_cpus-001c8ac26fb7a0a6.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libpin_project_lite-99f2eeebddee62d4.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libmio-a721a12ec2ad28f1.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libserde-9e98d6459abe4550.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\librodio-9f46e29403ea9a78.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libhound-c72875e4d9cc2008.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\liblewton-829de7f96ff84317.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libogg-ade1fbe223744af6.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libtinyvec-4537eaa6d4184aca.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libtinyvec_macros-eb37144c355ab33f.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libbyteorder-7e45cfd48f9b469b.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libminimp3-f7a5eb033962f481.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libslice_deque-5718ba09e4ffbb9e.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libminimp3_sys-f95c6c919cfd1173.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libclaxon-dca14ab6064f8246.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libparking_lot-6f0eb3ed94854766.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libparking_lot_core-ea3c7e2a0efbf3dd.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libsmallvec-edd0a9726b0e3a6b.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\liblock_api-382c392be06e09fb.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libscopeguard-c7a4a911f1be6c59.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libinstant-da1c11a5ccc23477.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libcpal-0f21f773e29347c5.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\liboboe-4fbc5cc7958df8f4.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libndk_glue-95715ebac7b90254.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\liblibc-631b10fc90a778af.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\liblazy_static-780e686a4cd7d79a.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libndk-d02e5628c41a593c.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libndk_sys-e54d11ca53d6ff2b.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libnum_enum-d46dac0349ecf6f2.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libjni-d303763fa96cb717.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libcesu8-3fb693abbeb7a1c9.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\liblog-e89b162a7d5f9ba5.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libcfg_if-83ef6ef8511b77c3.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libcombine-2c3d3907cc684928.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libmemchr-2a4f42f55bcdbe67.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libbytes-04cb2fd6d70d0326.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libjni_sys-2a05d37cdfa2e973.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\liboboe_sys-34da36248b1dfc73.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libnum_traits-a346141ceb89ec84.rlib" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libthiserror-79a5c7d6700569b6.rlib" "-Wl,--start-group" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libstd-6fb7b48222dfdb50.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libpanic_unwind-f1ec9676fe65b4d0.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libminiz_oxide-4d4b4d29ff465768.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libadler-073f659e23b93f65.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libobject-19d755ffe5829649.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libmemchr-84d85dbcc9ba625e.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libaddr2line-c84fc9244da572a0.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libgimli-71c965f4b29cbb5b.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libstd_detect-8b9f7c7068318659.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\librustc_demangle-6968ee3b831b6828.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libhashbrown-d52d75e622c37aeb.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\librustc_std_workspace_alloc-0820198de102cdf5.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libunwind-eec74330cadf3534.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libcfg_if-effbbe02f07b733e.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\liblibc-90fbcfe226becf52.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\liballoc-ad4e861e5140982d.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\librustc_std_workspace_core-e4ea3df9dc1ec838.rlib" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libcore-7fc2ee196be10e9f.rlib" "-Wl,--end-group" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libcompiler_builtins-5234c84775810cca.rlib" "-Wl,-Bdynamic" "-llog" "-landroid" "-lc++_static" "-llog" "-lOpenSLES" "-ldl" "-llog" "-lgcc" "-lc" "-lm" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "C:\\Users\\Wei\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib" "-o" "C:\\Users\\Wei\\public\\ALVR-16.0.0\\target\\aarch64-linux-android\\release\\deps\\libalvr_client.so" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs"
  = note: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

          C:\Users\Wei\public\ALVR-16.0.0>"python" "C:\Users\Wei\public\ALVR-16.0.0\alvr\client\android\build\linker-wrapper\linker-wrapper.py" @C:\Users\Wei\AppData\Local\Temp\rustcxQtabX\linker-arguments 

warning: `alvr_client` (lib) generated 2 warnings
error: could not compile `alvr_client` due to previous error; 2 warnings emitted

> Task :app:cargoBuildArm64 FAILED
> Task :app:checkOculusGoNightlyDebugAarMetadata
> Task :app:generateOculusGoNightlyDebugResValues
> Task :app:generateOculusGoNightlyDebugResources
> Task :app:createOculusGoNightlyDebugCompatibleScreenManifests
> Task :app:extractDeepLinksOculusGoNightlyDebug
> Task :app:processOculusGoNightlyDebugMainManifest
> Task :app:processOculusGoNightlyDebugManifest
> Task :app:generateJsonModelOculusGoNightlyDebug

> Task :app:externalNativeBuildOculusGoNightlyDebug
Build native-lib_arm64-v8a
ninja: Entering directory `C:\Users\Wei\public\ALVR-16.0.0\alvr\client\android\app\.cxx\cmake\OculusGoNightlyDebug\arm64-v8a'
[1/21] Building C object CMakeFiles/native-lib.dir/C_/Users/Wei/public/ALVR-16.0.0/alvr/client/android/ALVR-common/reedsolomon/rs.c.o
[2/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/animation_curve.cpp.o
[3/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/utils.cpp.o
[4/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/gl_render_utils/texture.cpp.o
[5/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/nal.cpp.o
[6/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/latency_collector.cpp.o
[7/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/ServerConnectionNative.cpp.o
[8/21] Building CXX object CMakeFiles/native-lib.dir/C_/Users/Wei/public/ALVR-16.0.0/alvr/client/android/ALVR-common/exception.cpp.o
[9/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/ffr.cpp.o
[10/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/gl_render_utils/render_pipeline.cpp.o
[11/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/interactive_panel.cpp.o
[12/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/asset.cpp.o
[13/21] Building CXX object CMakeFiles/native-lib.dir/C_/Users/Wei/public/ALVR-16.0.0/alvr/client/android/ALVR-common/common-utils.cpp.o
[14/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/gl_render_utils/textured_quad.cpp.o
[15/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/fec.cpp.o
[16/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/vr_gui.cpp.o
[17/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/ovr_context.cpp.o
[18/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/render.cpp.o
[19/21] Building CXX object CMakeFiles/native-lib.dir/C_/Users/Wei/public/ALVR-16.0.0/alvr/client/android/ALVR-common/lodepng/lodepng.cpp.o
[20/21] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/gltf_model.cpp.o
[21/21] Linking CXX shared library libnative-lib.so

> Task :app:mergeOculusGoNightlyDebugNativeDebugMetadata NO-SOURCE
> Task :app:mergeOculusGoNightlyDebugShaders
> Task :app:compileOculusGoNightlyDebugShaders NO-SOURCE
> Task :app:generateOculusGoNightlyDebugAssets UP-TO-DATE
> Task :app:mergeOculusGoNightlyDebugAssets
> Task :app:desugarOculusGoNightlyDebugFileDependencies
> Task :app:processOculusGoNightlyDebugJavaRes NO-SOURCE
> Task :app:mergeOculusGoNightlyDebugJniLibFolders
> Task :app:validateSigningOculusGoNightlyDebug
> Task :app:compressOculusGoNightlyDebugAssets
> Task :app:checkOculusGoNightlyDebugDuplicateClasses
> Task :app:processOculusGoNightlyDebugManifestForPackage
> Task :app:mergeOculusGoNightlyDebugResources
> Task :app:processOculusGoNightlyDebugResources
> Task :app:mergeExtDexOculusGoNightlyDebug
> Task :app:mergeOculusGoNightlyDebugJavaResource
> Task :app:mergeLibDexOculusGoNightlyDebug
> Task :app:mergeOculusGoNightlyDebugNativeLibs
> Task :app:stripOculusGoNightlyDebugDebugSymbols

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:cargoBuildArm64'.
> Process 'command 'cargo'' finished with non-zero exit value 101

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 34s
26 actionable tasks: 26 executed

Can anyone help?

zmerp commented 2 years ago

It says "Python was not found". What you should do, as per build instructions, is to go to the nightly runs and download the rust gradle plugin. https://github.com/alvr-org/ALVR/wiki/Building-From-Source#troubleshooting

wuwei-nreal commented 2 years ago

Thanks, this time I did

Install rustup
Install LLVM
Latest version of Android Studio, SDK level 30, NDK v22
Environment variable JAVA_HOME set to C:\Program Files\Android\Android Studio\jre
Environment variable ANDROID_SDK_ROOT set to %LOCALAPPDATA%\Android\Sdk
For building Android dependencies (optional): Python

and

Go to the nightly CI runs list
Open the latest workflow run
Download the artifact android-deps
Create a deps folder on the project root
Unzip android-deps.zip inside the deps folder. You should have the file deps/rust-android-gradle/runst-android-0.8.3.jar

When I tried to run cargo xtask build-android-deps, I got:

C:\Users\Wei\public\ALVR-16.0.0\alvr\client\android>cargo xtask build-android-deps
   Compiling winapi v0.3.9
   Compiling alvr_xtask v1.0.0 (C:\Users\Wei\public\ALVR-16.0.0\alvr\xtask)
   Compiling lazy_static v1.4.0
   Compiling fs_extra v1.2.0
   Compiling pico-args v0.4.1
   Compiling winapi-util v0.1.5
   Compiling dirs-sys v0.3.6
   Compiling dirs v3.0.2
   Compiling alvr_filesystem-layout v15.2.1 (C:\Users\Wei\public\ALVR-16.0.0\alvr\filesystem-layout)
   Compiling same-file v1.0.6
   Compiling walkdir v2.3.2
    Finished dev [unoptimized + debuginfo] target(s) in 8.70s
     Running `C:\Users\Wei\public\ALVR-16.0.0\target\debug\alvr_xtask.exe build-android-deps`

> rustup target add aarch64-linux-android
info: component 'rust-std' for target 'aarch64-linux-android' is up to date

> curl -o C:\Users\Wei\public\ALVR-16.0.0\deps\temp_download.zip --url https://codeload.github.com/mozilla/rust-android-gradle/zip/6e553c13ef2d9bb40b58a7675b96e0757d1b0443
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  174k    0  174k    0     0   174k      0 --:--:--  0:00:01 --:--:-- 90549

> powershell Expand-Archive C:\Users\Wei\public\ALVR-16.0.0\deps\temp_download.zip C:\Users\Wei\public\ALVR-16.0.0\build\temp_gradle_plugin_build

> C:\Users\Wei\public\ALVR-16.0.0\build\temp_gradle_plugin_build\rust-android-gradle-6e553c13ef2d9bb40b58a7675b96e0757d1b0443\gradlew.bat publish

FAILURE: Build failed with an exception.

* What went wrong:
Unable to get mutable Windows environment variable map

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Command failed: "', alvr\xtask\src\dependencies.rs:52:6
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\/library\std\src\panicking.rs:517
   1: core::panicking::panic_fmt
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\/library\core\src\panicking.rs:101
   2: core::result::unwrap_failed
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\/library\core\src\result.rs:1617
   3: enum$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<std::error::Error>,alloc::alloc::Global> >, 1, 18446744073709551615, Err>::unwrap<tuple$<>,alloc::boxed::Box<dyn$<std::error::Error>,alloc::alloc::Global> >
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\library\core\src\result.rs:1299
   4: alvr_xtask::dependencies::build_rust_android_gradle
             at C:\Users\Wei\public\ALVR-16.0.0\alvr\xtask\src\dependencies.rs:48
   5: alvr_xtask::dependencies::build_deps
             at C:\Users\Wei\public\ALVR-16.0.0\alvr\xtask\src\dependencies.rs:126
   6: alvr_xtask::main
             at C:\Users\Wei\public\ALVR-16.0.0\alvr\xtask\src\main.rs:566
   7: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\library\core\src\ops\function.rs:227
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `C:\Users\Wei\public\ALVR-16.0.0\target\debug\alvr_xtask.exe build-android-deps` (exit code: 101)

Google says this might be something wrong with jdk, I tried switching it between 1.8 and 17, and switching the environment variable between the Java installed in Program Files or the jre in Android Studio, neither worked :(

zmerp commented 2 years ago

You can skip the command cargo xtask build-android-deps if you follow the troubleshooting guide I linked you. The reason I listed it in the building guide is because often there are problems building the gradle plugin. You should start from a fresh clone of the repository to avoid conflicts.

wuwei-nreal commented 2 years ago

Then I run cargo xtask build-client --release directly, tried a few jdkversions again, and got:

 Finished dev [unoptimized + debuginfo] target(s) in 0.16s
     Running `C:\Users\Wei\public\ALVR-16.0.0\target\debug\alvr_xtask.exe build-client --release`

> gradlew.bat assembleOculusQuestStablerelease
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

> Task :app:cargoBuildArm64
warning: unused imports: `DerefMut`, `Deref`, `PathBuf`
  --> alvr\common\src\data\session.rs:10:11
   |
10 |     ops::{Deref, DerefMut},
   |           ^^^^^  ^^^^^^^^
11 |     path::{Path, PathBuf},
   |                  ^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: `alvr_common` (lib) generated 1 warning
warning: unused import: `semver::Version`
  --> alvr\client\src\connection.rs:21:5
   |
21 | use semver::Version;
   |     ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `str::FromStr`
  --> alvr\client\src\connection.rs:26:5
   |
26 |     str::FromStr,
   |     ^^^^^^^^^^^^

warning: `alvr_client` (lib) generated 2 warnings
    Finished release [optimized] target(s) in 0.26s

> Task :app:processOculusQuestStableReleaseMainManifest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processOculusQuestStableReleaseMainManifest'.
> Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @b289bab

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
9 actionable tasks: 3 executed, 6 up-to-date
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Command failed: "', alvr\xtask\src\main.rs:332:63
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\/library\std\src\panicking.rs:517
   1: core::panicking::panic_fmt
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\/library\core\src\panicking.rs:101
   2: core::result::unwrap_failed
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\/library\core\src\result.rs:1617
   3: enum$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<std::error::Error>,alloc::alloc::Global> >, 1, 18446744073709551615, Err>::unwrap<tuple$<>,alloc::boxed::Box<dyn$<std::error::Error>,alloc::alloc::Global> >
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\library\core\src\result.rs:1299
   4: alvr_xtask::build_client
             at C:\Users\Wei\public\ALVR-16.0.0\alvr\xtask\src\main.rs:332
   5: alvr_xtask::main
             at C:\Users\Wei\public\ALVR-16.0.0\alvr\xtask\src\main.rs:571
   6: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
             at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35\library\core\src\ops\function.rs:227
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `C:\Users\Wei\public\ALVR-16.0.0\target\debug\alvr_xtask.exe build-client --release` (exit code: 101)

Sorry this is the first time I touched Rust and I really don't know what to expect. I tried Gradle JDK 1.8, 11 and 17.

zmerp commented 2 years ago

It seems a problem on the Java side. I don't know much about it, i suggest you to revert to default all settings in Android Studio.

wuwei-nreal commented 2 years ago

Thanks again.

Is it possible to know the preferred Java versions? File-Project Structure-SDK Location-Gradle Settings-Gradle JDK File-Project Structure-Modules-Source Compatibility File-Project Structure-Modules-Target Compatibility

I think I began with the default on my system but it doesn't work. Probably I need to install specific versions of Java.

zmerp commented 2 years ago

I always used the one that comes with Android Studio and it always worked.

wuwei-nreal commented 2 years ago

Thanks, I'm using 1.8 for those. I didn't change anything but it partially worked after ta system reboot. There are still errors from running the command or building the project, but I can now generate new viable apks that can connect to SteamVR from Quest. (:з」∠)

MysticalY commented 2 years ago
Task :app:cargoBuildArm64 Compiling proc-macro2 v1.0.36 Compiling unicode-xid v0.2.2 Compiling syn v1.0.86 Compiling libc v0.2.119 Compiling cfg-if v1.0.0 Compiling jobserver v0.1.24 Compiling log v0.4.14 Compiling winapi v0.3.9 Compiling memchr v2.4.1 Compiling autocfg v1.1.0 Compiling serde v1.0.136 Compiling serde_derive v1.0.136 Compiling regex-syntax v0.6.25 Compiling futures-core v0.3.21 Compiling lazy_static v1.4.0 Compiling strsim v0.10.0 Compiling ident_case v1.0.1 Compiling fnv v1.0.7 Compiling futures-task v0.3.21 Compiling bytes v1.1.0 Compiling futures-channel v0.3.21 Compiling jni-sys v0.3.0 Compiling pin-project-lite v0.2.8 Compiling futures-sink v0.3.21 Compiling smallvec v1.8.0 Compiling version_check v0.9.4 Compiling futures-util v0.3.21 Compiling glob v0.3.0 Compiling adler v1.0.2 Compiling semver v1.0.6 Compiling parking_lot_core v0.8.5 Compiling unicode-segmentation v1.9.0 Compiling pin-utils v0.1.0 Compiling bitflags v1.3.2 Compiling futures-io v0.3.21 Compiling serde_json v1.0.79 Compiling slab v0.4.5 Compiling scopeguard v1.1.0 Compiling gimli v0.26.1 Compiling ppv-lite86 v0.2.16 Compiling unicode-width v0.1.9 Compiling ndk-context v0.1.0 Compiling itoa v1.0.1 Compiling ryu v1.0.9 Compiling minimal-lexical v0.2.1 Compiling rustc-demangle v0.1.21 Compiling ahash v0.3.8 Compiling num_threads v0.1.3 Compiling cesu8 v1.1.0 Compiling bindgen v0.59.2 Compiling either v1.6.1 Compiling byteorder v1.4.3 Compiling parking_lot_core v0.9.1 Compiling vec_map v0.8.2 Compiling cpal v0.13.5 Compiling once_cell v1.9.0 Compiling tinyvec_macros v0.1.0 Compiling strsim v0.8.0 Compiling humantime v2.1.0 Compiling untrusted v0.7.1 Compiling base64 v0.13.0 Compiling spin v0.5.2 Compiling nonzero_ext v0.2.0 Compiling rustc-hash v1.1.0 Compiling lazycell v1.3.0 Compiling peeking_take_while v0.1.2 Compiling shlex v1.1.0 Compiling futures-timer v3.0.2 Compiling hound v3.4.0 Compiling claxon v0.4.3 Compiling nonzero_ext v0.3.0 Compiling android_log-sys v0.2.0 Compiling instant v0.1.12 Compiling cc v1.0.73 Compiling miniz_oxide v0.4.4 Compiling num-traits v0.2.14 Compiling hashbrown v0.8.2 Compiling ndk-sys v0.3.0 Compiling nom v7.1.0 Compiling clang-sys v1.3.1 Compiling heck v0.3.3 Compiling lock_api v0.4.6 Compiling textwrap v0.11.0 Compiling ogg v0.8.0 Compiling tinyvec v1.5.1 Compiling pem v1.0.2 Compiling addr2line v0.17.0 Compiling backtrace v0.3.64 Compiling oboe-sys v0.4.5 Compiling ring v0.16.20 Compiling minimp3-sys v0.3.2 Compiling num_cpus v1.13.1 Compiling getrandom v0.2.5 Compiling time v0.3.7 Compiling socket2 v0.4.4 Compiling mio v0.8.0 Compiling slice-deque v0.3.0 Compiling quanta v0.4.1 Compiling lewton v0.10.2 Compiling object v0.27.1 Compiling combine v4.6.3 Compiling aho-corasick v0.7.18 Compiling quote v1.0.15 Compiling which v4.2.4 Compiling dashmap v4.0.2 Compiling rand_core v0.6.3 Compiling winapi-util v0.1.5 Compiling atty v0.2.14 Compiling libloading v0.7.3 Compiling parking_lot v0.11.2 Compiling yasna v0.5.0 Compiling toml v0.5.8 Compiling parking_lot v0.12.0 Compiling regex v1.5.4 Compiling no-std-compat v0.4.1 Compiling rand_chacha v0.3.1 Compiling same-file v1.0.6 Compiling termcolor v1.1.2 Compiling clap v2.34.0 Compiling cexpr v0.6.0 Compiling env_logger v0.8.4 Compiling rand v0.8.5 Compiling darling_core v0.13.1 Compiling walkdir v2.3.2 Compiling alvr_session v18.0.0-dev00 (E:\ALVR\ALVR\alvr\session) Compiling env_logger v0.9.0 Compiling thiserror-impl v1.0.30 Compiling futures-macro v0.3.21 Compiling tokio-macros v1.7.0 Compiling num-derive v0.3.3 Compiling settings-schema-derive v0.3.0 (E:\ALVR\ALVR\alvr\settings-schema-derive) Compiling bytemuck_derive v1.0.1 Compiling android_logger v0.10.1 Compiling jni v0.19.0 Compiling darling_macro v0.13.1 Compiling thiserror v1.0.30 Compiling tokio v1.17.0 Compiling bytemuck v1.7.3 Compiling darling v0.13.1 Compiling proc-macro-crate v1.1.3 Compiling num_enum_derive v0.5.6 Compiling ndk-macro v0.3.0 Compiling tokio-util v0.7.0 Compiling futures-executor v0.3.21 Compiling num_enum v0.5.6 Compiling glam v0.20.2 Compiling bincode v1.3.3 Compiling futures v0.3.21 Compiling ndk v0.6.0 Compiling settings-schema v0.3.1 (E:\ALVR\ALVR\alvr\settings-schema) Compiling alvr_client v18.0.0-dev00 (E:\ALVR\ALVR\alvr\client) Compiling governor v0.3.2 Compiling ndk-glue v0.6.1 Compiling alvr_common v18.0.0-dev00 (E:\ALVR\ALVR\alvr\common) warning: unused import: alvr_common::ALVR_VERSION --> alvr\session\src\settings.rs:1:5 1 use alvr_common::ALVR_VERSION; ^^^^^^^^^^^^^^^^^^^^^^^^^

= note: #[warn(unused_imports)] on by default

warning: unused import: DictionaryDefault --> alvr\session\src\settings.rs:4:23 | 4 | use settings_schema::{DictionaryDefault, EntryData, SettingsSchema, Switch, SwitchDefault}; | ^^^^^^^^^^^^^^^^^

unused import: alvr_common::ALVR_VERSION

unused import: DictionaryDefault

Compiling minimp3 v0.5.1 Compiling rcgen v0.9.2 Compiling alvr_sockets v18.0.0-dev00 (E:\ALVR\ALVR\alvr\sockets) warning: field is never read: stream_id --> alvr\sockets\src\stream_socket\mod.rs:168:5 | field is never read: stream_id

168 stream_id: StreamId, ^^^^^^^^^^^^^^^^^^^
= note: `#[warn(dead_code)]` on by default

warning: alvr_sockets (lib) generated 1 warning alvr_sockets (lib) generated 1 warning

The following warnings were emitted during compilation:

warning: E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\ovr_context.cpp:543:18: warning: unused variable 'trackingRaw' [-Wunused-variable] warning: ovrTracking2 trackingRaw = vrapi_GetPredictedTracking2(g_ctx.Ovr, 0.); warning: ^ warning: 1 warning generated. E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\ovr_context.cpp:543:18: warning: unused variable 'trackingRaw' [-Wunused-variable]

ovrTracking2 trackingRaw = vrapi_GetPredictedTracking2(g_ctx.Ovr, 0.);

^

1 warning generated.

error: failed to run custom build command for alvr_client v18.0.0-dev00 (E:\ALVR\ALVR\alvr\client)

Caused by: process didn't exit successfully: E:\ALVR\ALVR\target\release\build\alvr_client-1f9dd67983873404\build-script-build (exit code: 101) failed to run custom build command for alvr_client v18.0.0-dev00 (E:\ALVR\ALVR\alvr\client)

--- stdout TARGET = Some("aarch64-linux-android") OPT_LEVEL = Some("3") HOST = Some("x86_64-pc-windows-msvc") CXX_aarch64-linux-android = Some("F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android24-clang++.cmd") CXXFLAGS_aarch64-linux-android = None CXXFLAGS_aarch64_linux_android = None TARGET_CXXFLAGS = None CXXFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\common-utils.o" "-c" "E:\ALVR\ALVR\alvr\client\android\ALVR-common\common-utils.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\exception.o" "-c" "E:\ALVR\ALVR\alvr\client\android\ALVR-common\exception.cpp" running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\lodepng.o" "-c" "E:\ALVR\ALVR\alvr\client\android\ALVR-common\lodepng\lodepng.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\animation_curve.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\animation_curve.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\asset.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\asset.cpp" running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\fec.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\fec.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\ffr.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\ffr.cpp" exit code: 0 exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\gltf_model.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gltf_model.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\render_pipeline.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils\render_pipeline.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\texture.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils\texture.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\textured_quad.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils\textured_quad.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\interactive_panel.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\interactive_panel.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\latency_collector.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\latency_collector.cpp" running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\nal.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\nal.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\ovr_context.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\ovr_context.cpp" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\render.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\render.cpp" running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\ServerConnectionNative.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\ServerConnectionNative.cpp" cargo:warning=E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\ovr_context.cpp:543:18: warning: unused variable 'trackingRaw' [-Wunused-variable] cargo:warning= ovrTracking2 trackingRaw = vrapi_GetPredictedTracking2(g_ctx.Ovr, 0.); cargo:warning= ^ exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\utils.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\utils.cpp" exit code: 0 cargo:warning=1 warning generated. exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-I" "E:\ALVR\ALVR\alvr\client\android\ALVR-common" "-I" "E:\ALVR\ALVR\alvr\client\android\app/include" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp" "-I" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\gl_render_utils" "-Wall" "-Wextra" "-std=c++17" "-fexceptions" "-frtti" "-DOVR_SDK" "-DALVR_CLIENT_VERSION=\"18.0.0-dev00\"" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\vr_gui.o" "-c" "E:\ALVR\ALVR\alvr\client\android\app/src/main/cpp\vr_gui.cpp" exit code: 0 exit code: 0 exit code: 0 AR_aarch64-linux-android = Some("F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar") running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar" "cq" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\libbindings.a" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\common-utils.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\exception.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\lodepng.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\animation_curve.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\asset.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\fec.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\ffr.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\gltf_model.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\render_pipeline.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\texture.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\textured_quad.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\interactive_panel.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\latency_collector.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\nal.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\ovr_context.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\render.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\ServerConnectionNative.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\utils.o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\vr_gui.o" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar" "s" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\libbindings.a" exit code: 0 cargo:rustc-link-lib=static=bindings cargo:rustc-link-search=native=E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out cargo:rustc-link-lib=c++_static TARGET = Some("aarch64-linux-android") OPT_LEVEL = Some("3") Caused by:

HOST = Some("x86_64-pc-windows-msvc") CC_aarch64-linux-android = Some("F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android24-clang.cmd") CFLAGS_aarch64-linux-android = None CFLAGS_aarch64_linux_android = None TARGET_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe" "--target=aarch64-linux-android24" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=aarch64-linux-android" "-Wall" "-Wextra" "-o" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\rs.o" "-c" "E:\ALVR\ALVR\alvr\client\android\ALVR-common\reedsolomon\rs.c" exit code: 0 AR_aarch64-linux-android = Some("F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar") running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar" "cq" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\libbindings_rs_c.a" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\rs.o" exit code: 0 running: "F:\sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar" "s" "E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out\libbindings_rs_c.a" exit code: 0 cargo:rustc-link-lib=static=bindings_rs_c cargo:rustc-link-search=native=E:\ALVR\ALVR\target\aarch64-linux-android\release\build\alvr_client-0c20be6a04046d38\out cargo:rustc-link-search=native=E:\ALVR\ALVR\alvr\client\android/app/src/main/jniLibs/arm64-v8a cargo:rustc-link-lib=log cargo:rustc-link-lib=vrapi cargo:rustc-link-lib=GLESv3 cargo:rustc-link-lib=EGL cargo:rustc-link-lib=android cargo:rustc-link-lib=OpenSLES cargo:rustc-link-lib=ovrplatformloader

--- stderr thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the LIBCLANG_PATH environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\65iuj.cargo\registry\src\github.com-1ecc6299db9ec823\bindgen-0.59.2\src/lib.rs:2144:31 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... build failed, waiting for other jobs to finish...

warning: alvr_session (lib) generated 2 warnings alvr_session (lib) generated 2 warnings

error: build failed

Task :app:cargoBuildArm64 FAILED build failed

Execution failed for task ':app:cargoBuildArm64'.

Process 'command 'cargo'' finished with non-zero exit value 101