not-jan / apex-tux

Linux support for the OLED screen of the Apex Pro, Apex 5 and Apex 7 keyboards by SteelSeries
The Unlicense
73 stars 15 forks source link

Error Installation #25

Closed Alandrias closed 1 year ago

Alandrias commented 1 year ago
apex-music v0.1.0 (/var/tmp/pamac-build-alex/apex-tux-git/src/apex-tux/apex-music) error[E0658]: impl Trait in associated types is unstable --> apex-music/src/player.rs:74:31 74 type MetadataFuture<'a> = impl Future<Output = Result> + 'a ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

= note: see issue #63063 https://github.com/rust-lang/rust/issues/63063 for more information = help: add #![feature(impl_trait_in_assoc_type)] to the crate attributes to enable

error[E0658]: impl Trait in associated types is unstable --> apex-music/src/player.rs:77:27 77 type NameFuture<'a> = impl Future ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

= note: see issue #63063 https://github.com/rust-lang/rust/issues/63063 for more information = help: add #![feature(impl_trait_in_assoc_type)] to the crate attributes to enable

error[E0658]: impl Trait in associated types is unstable --> apex-music/src/player.rs:80:37 80 type PlaybackStatusFuture<'a> = impl Future<Output = Result> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

= note: see issue #63063 https://github.com/rust-lang/rust/issues/63063 for more information = help: add #![feature(impl_trait_in_assoc_type)] to the crate attributes to enable

error[E0658]: impl Trait in associated types is unstable --> apex-music/src/player.rs:83:31 83 type PositionFuture<'a> = impl Future<Output = Result> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

= note: see issue #63063 https://github.com/rust-lang/rust/issues/63063 for more information = help: add #![feature(impl_trait_in_assoc_type)] to the crate attributes to enable

error[E0658]: impl Trait in associated types is unstable --> apex-music/src/player.rs:135:30 135 type ArtistsFuture<'a> = impl Future<Output = Result> + 'a ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable
error[E0658]: impl Trait in associated types is unstable --> apex-music/src/player.rs:138:29 138 type LengthFuture<'a> = impl Future<Output = Result> + 'a ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable
error[E0658]: impl Trait in associated types is unstable --> apex-music/src/player.rs:141:28 141 type TitleFuture<'a> = impl Future<Output = Result> + 'a ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

For more information about this error, try rustc --explain E0658. error: could not compile apex-music (lib) due to 7 previous errors warning: build failed, waiting for other jobs to finish... ==> FEHLER: Ein Fehler geschah in build(). Breche ab...

jehendeoff commented 1 year ago

Hi, I think this issue is related to #23, you might want to compile from source instead, as pamac doesn't seem to have the latest commit yet (?)

not-jan commented 1 year ago

Hi, I think this issue is related to #23, you might want to compile from source instead, as pamac doesn't seem to have the latest commit yet (?)

Yeah this seems to be the case. Please check in with the maintainer of the AUR package to have this fixed.

Alandrias commented 1 year ago

Hi, sorry in advance. My English is not the best, but I'll try.

I followed the advice and cloned apex-tux-1.0 and tried to compile it. Unfortunately without success. The error message here is:

apex-tux-1.0]$ cargo build --release Updating crates.io index error: failed to select a version for the requirementfunty = "~1.2" candidate versions found which didn't match: 2.0.0, 1.1.0, 1.0.1, ... location searched: crates.io index required by packagebitvec v0.22.3 ... which satisfies dependencybitvec = "^0.22.3"of packageapex-hardware v0.1.0 (/home/user/Downloads/apex-tux-1.0/apex-hardware) ... which satisfies path dependencyapex-hardwareof packageapex-ctl v0.1.0 (/home/user/Downloads/apex-tux-1.0/apex-ctl)

I use Manjaro as distribution, the system is freshly set up. And I am quite fresh in Manjaro. But I love the keyboard and am happy that I should be able to use the display under Linux. It would be nice to get some help.

Thanks in advance

jehendeoff commented 1 year ago

Hi, I think this is related to #16

Alandrias commented 1 year ago

thanks for the quick reply, and how do I solve the problem now? Sorry for the question, but I do not understand it. apparently my knowledge is not enough there

jehendeoff commented 1 year ago

I think the repository you downloaded is outdated, please delete what you downloaded (maybe the release version, which was last updated in 2021 I think), instead clone this repo : git clone git@github.com:not-jan/apex-tux.git and then follow the "normal" instructions

(should be :

cd apex-tux
cargo build --release

)

Alandrias commented 1 year ago

Finally! Thank you very much! Still had to compile the settings, but now it works!

Thanks

jehendeoff commented 1 year ago

you had to compile the settings ? Do you mean you had to move the settings.toml file ? if so, this is normal don't worry