Closed DirkSchueler closed 2 years ago
Hi @DirkSchueler, could you please try to update your version of Rust? Eruption requires the current stable version of rustc
to successfully compile. Currently this would be version 1.55.0
Quiet easy solution! Thank you!
After Pulling the current Repo
cargo build --all --release
led to
"error: failed to load manifest for workspace member /home/dirk/data/eruption/eruption
Caused by:
failed to parse manifest at /home/dirk/data/eruption/eruption/Cargo.toml
Caused by:
feature edition2021
is required
Updating Rust to version 1.56.1 solved that, but cargo build --all --release now leads to ... Compiling i18n-embed v0.13.0 The following warnings were emitted during compilation:
warning: "pkg-config" "--libs" "--cflags" "gtksourceview-4" "gtksourceview-4 >= 4"
did not exit successfully: exit status: 1
error: failed to run custom build command for sourceview4-sys v0.2.0 (https://gitlab.gnome.org/World/Rust/sourceview4-rs.git?branch=master#dd6189dc)
@DirkSchueler, thanks for reporting this issue!
The problem can be fixed by installing the packages gtksourceview4
and/or gtksourceview-4.0-dev
.
I have updated the INSTALL.md respectively.
Sorry, but
sudo apt install libusb-1.0-0-dev libhidapi-dev libevdev-dev libudev-dev libdbus-1-dev \ libpulse-dev luajit libluajit-5.1-dev libx11-dev libxrandr-dev libgtk-3-dev libgdk-pixbuf2.0-dev \ libatk1.0-dev libpango1.0-dev libcairo2-dev libgtksourceview-4.0-dev on my Ubuntu System gives E: Unable to locate package libgtksourceview-4.0-dev E: Couldn't find any package by glob 'libgtksourceview-4.0-dev'
and
sudo apt install libusb-1.0-0-dev libhidapi-dev libevdev-dev libudev-dev libdbus-1-dev libpulse-dev luajit libluajit-5.1-dev libx11-dev libxrandr-dev libgtk-3-dev libgdk-pixbuf2.0-dev libatk1.0-dev libpango1.0-dev libcairo2-dev gtksourceview4 Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package gtksourceview4
@DirkSchueler
Please try to build using the following command:
cargo build --release --all --no-default-features --features sensors-most
This will disable the syntax highlighting in the Eruption GUI since your version of Ubuntu does not provide the package required for it.
The --features sensors-most
argument will include nearly all available sensors in the eruption-process-monitor
daemon
build fails because it requires resolver which is nightly feature, but I can't get it to switch to nightly even though it's installed as default with rustup as a required dependency.
error: failed to parse manifest at `/var/tmp/pamac-build-alkaris/eruption/src/eruption/Cargo.toml`
Caused by:
feature `resolver` is required
this Cargo does not support nightly features, but if you
switch to nightly channel you can add
`cargo-features = ["resolver"]` to enable this feature
Hi @alkaris2,
could you please try to update your installation of Rust (and the cargo binary) using:
$ rustup self update
$ rustup update
$ rustup default nightly
If the build still fails, please post the output of
$ cargo -V
Introduction Building is documented as install.md begins with "cargo build --all --release", but leads to several errors on my device, although it went fine a few weeks ago.
= note: see issue #78835 https://github.com/rust-lang/rust/issues/78835 for more information
Compiling sysinfo v0.20.3 Compiling glib-sys v0.14.0 Compiling tiff v0.6.1 Compiling bitvec v0.22.3 Compiling phf v0.9.0 error[E0710]: an unknown tool name found in scoped lint:
rustdoc::broken_intra_doc_links
--> /home/dirk/.cargo/registry/src/github.com-1ecc6299db9ec823/sysinfo-0.20.3/src/lib.rs:13:9 | 13 | #![deny(rustdoc::broken_intra_doc_links)] | ^^^^^^^error[E0658]: arbitrary expressions in key-value attributes are unstable --> /home/dirk/.cargo/registry/src/github.com-1ecc6299db9ec823/sysinfo-0.20.3/src/lib.rs:10:10 | 10 | #![doc = include_str!("../README.md")] . . . .
error: aborting due to 2 previous errors
For more information about this error, try
rustc --explain E0658
. error: build failedTo Reproduce Steps to reproduce the behavior: Call cargo build --all --release ....
Expected behavior Succesfull compilation
Logs Please provide logs:
sudo journalctl -u eruption.service -b
Screenshots (optional) If applicable, add screenshots to help explain your problem.
Please complete the following information:
sudo lsusb
)Additional context Add any other context about the problem here.