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

error[E0433]: failed to resolve: use of undeclared crate or module pulsectl #152

Open
yurivict opened this issue Jan 20, 2024 · 1 comment

Comments

@yurivict
Copy link

0.4.1 fails to build:

error[E0433]: failed to resolve: use of undeclared crate or module `pulsectl`
 --> src/audio_controllers/pulseaudio.rs:4:5
  |
4 | use pulsectl::controllers::{SourceController, AppControl, DeviceControl};
  |     ^^^^^^^^ use of undeclared crate or module `pulsectl`

error[E0433]: failed to resolve: use of undeclared crate or module `pulsectl`
 --> src/audio_controllers/pulseaudio.rs:5:5
  |
5 | use pulsectl::controllers::types::DeviceInfo;
  |     ^^^^^^^^ use of undeclared crate or module `pulsectl`

error[E0432]: unresolved import `mpris_player`
  --> src/cli_main.rs:12:5
   |
12 | use mpris_player::PlaybackStatus;
   |     ^^^^^^^^^^^^ use of undeclared crate or module `mpris_player`

error[E0432]: unresolved import `mpris_player`
 --> src/utils/mpris_player.rs:4:5
  |
4 | use mpris_player::{MprisPlayer, PlaybackStatus, Metadata};
  |     ^^^^^^^^^^^^ help: a similar path exists: `super::mpris_player`

error[E0432]: unresolved import `mpris_player`
  --> src/gui/main_window.rs:17:5
   |
17 | use mpris_player::PlaybackStatus;
   |     ^^^^^^^^^^^^ use of undeclared crate or module `mpris_player`

Some errors have detailed explanations: E0432, E0433.

rust-1.74.1
FreeBSD 14.0

marin-m added a commit that referenced this issue Jan 21, 2024
@marin-m
Copy link
Owner

marin-m commented Jan 21, 2024

Hello,

There was a conditional compilation rule which allowed to enable the Pulseaudio and MPRIS features only on Linux (cfg(target_os = "linux") in the Cargo.toml file). You could have built without these through passing e.g. the --no-default-features -F gui,ffmpeg flags to cargo, as described in the README md

I have edited the Cargo.toml file in the Git tree in order to replace the dependency over Linux with a dependency over BSD, so that you can use ports of libpulse and leaving MPRIS over DBus enabled on BSD if you have the corresponding ports installed and you wish to: 1ee47d8

Regards,

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

2 participants