Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
digama0 opened this issue Feb 28, 2024 · 2 comments
Open

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

digama0 opened this issue Feb 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@digama0
Copy link

digama0 commented Feb 28, 2024

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

@digama0 digama0 added the bug Something isn't working label Feb 28, 2024
@Baezon
Copy link

Baezon commented Feb 28, 2024

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
Copy link

kvark commented Oct 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants