leetvr / hotham

Hotham is a tool for creating incredible standalone VR games.
Apache License 2.0
389 stars 28 forks source link

[Bug]: Building the examples don't work (cargo apk + bin = fail) #447

Open digama0 opened 8 months ago

digama0 commented 8 months ago

What happened?

Building the examples according to the instructions fails with the error Error: Invalid args.. This exceptionally bad error message comes from cargo apk, which expects the cargo project to have exactly one artifact, meaning that a [[bin]] section causes it to fail. cargo apk build also fails, for a different reason: it attempts to build all artifacts as Cdylib, which fails on any Bin target. Given that cargo apk is deprecated, I think the best way to solve this on the Hotham side (short of switching to xbuild as the readme suggests) is to remove the [[bin]] sections from these examples. (How are they meant to be used via that entry point anyway?)

Version

0.1.1 (Default)

In which Hotham component are you seeing the problem on?

Example

What VR System are you seeing the problem on?

Quest-2

What OS are you seeing the problem on?

Windows

Relevant log output

No response

Baezon commented 8 months ago

Relevant Log output

When attempting to run crab-saber:

PS C:\Users\...\hotham> .\examples\crab-saber\scripts\run_on_device.ps1
Already configuring "src/main.rs"
Using package `crab-saber` in `C:\Users\...\hotham\examples\crab-saber\Cargo.toml`
Error: Invalid args.
kvark commented 2 weeks ago

Pretty sure this happens if you don't have the right versions of Android NDK/SDK, see https://store.steampowered.com/search/?term=https%3A%2F%2Fstore.steampowered.com%2Fapp%2F2149830%2FVirtAMate__vamX%2F&ignore_preferences=1&supportedlang=english%2Crussian&ndl=1

You could check the NDK and post your sdkmanager --list_installed for more info.