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

Support for Android Platform #54

Open
eigenric opened this issue Nov 1, 2024 · 5 comments
Open

Support for Android Platform #54

eigenric opened this issue Nov 1, 2024 · 5 comments

Comments

@eigenric
Copy link

eigenric commented Nov 1, 2024

I was trying to compile spotify-player in Termux (Android Linux Distribution) which depends on souvlaki.
I got the following error

/src/platform/mod.rs:25:1
 | mod platform;                        
 ^^^^^^^^^^^^^ `platform` redefined here       
 = note: `platform` must be defined only once 
in the type namespace of this module
@Sinono3
Copy link
Owner

Sinono3 commented Nov 3, 2024

Hi. Can you execute the following command in spotify-player's directory while in Termux and post its result here?

cargo rustc -- --print cfg

@xronin01
Copy link

I tried to compile termusic in Termux

error[E0428]: the name `platform` is defined multiple times
  --> /data/data/com.termux/files/home/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/souvlaki-0.7.3/src/platform/mod.rs:25:1
   |
13 | mod platform;
   | ------------- previous definition of the module `platform` here
...
25 | mod platform;
   | ^^^^^^^^^^^^^ `platform` redefined here
   |
   = note: `platform` must be defined only once in the type namespace of this module

For more information about this error, try `rustc --explain E0428`.
error: could not compile `souvlaki` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `termusic v0.9.1`, intermediate artifacts can be found at `/data/data/com.termux/files/usr/tmp/cargo-install6q446v`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

@Sinono3
Copy link
Owner

Sinono3 commented Nov 30, 2024

Can you execute the command I commented above? Thanks.

@xronin01
Copy link

xronin01 commented Dec 1, 2024

error: manifest path /data/data/com.termux/files/home/termusic/Cargo.toml is a virtual manifest, but this command requires running against an actual package in this workspace

@Sinono3
Copy link
Owner

Sinono3 commented Dec 14, 2024

Can you run the command inside the tui directory of termmusic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants