Futsch1 / image-sieve

GUI based tool to sort and categorize images written in Rust
GNU General Public License v3.0
122 stars 8 forks source link

build failure on x86_64-unknown-linux-gnu #30

Closed Be-ing closed 2 years ago

Be-ing commented 2 years ago
> cargo install image_sieve

...

error: failed to run custom build command for `image_sieve v0.5.1`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installzuxyat/release/build/image_sieve-1f86cf25047e6df3/build-script-build` (exit status: 101)
  --- stdout
  slint  build

  --- stderr
  error: Unknown property alignment in GroupBox
    --> /home/be/.cargo/registry/src/github.com-1ecc6299db9ec823/image_sieve-0.5.1/ui/settings.slint:13:9
     |
  13 |         alignment: start;
     |         ^
  error: Unknown unqualified identifier 'start'
    --> /home/be/.cargo/registry/src/github.com-1ecc6299db9ec823/image_sieve-0.5.1/ui/settings.slint:13:20
     |
  13 |         alignment: start;
     |                    ^

  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: CompileError(["/home/be/.cargo/registry/src/github.com-1ecc6299db9ec823/image_sieve-0.5.1/ui/settings.slint:13: Unknown property alignment in GroupBox", "/home/be/.cargo/registry/src/github.com-1ecc6299db9ec823/image_sieve-0.5.1/ui/settings.slint:13: Unknown unqualified identifier 'start'"])', /home/be/.cargo/registry/src/github.com-1ecc6299db9ec823/image_sieve-0.5.1/build.rs:5:50
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `image_sieve v0.5.1`, intermediate artifacts can be found at `/tmp/cargo-installzuxyat`
enaut commented 2 years ago

I can confirm this for Fedora 35

Futsch1 commented 2 years ago

Strange one - it works both on Ubuntu and Windows. I removed the property and replaced it with a VerticalBox. I also asked in the slint-ui community about it...

mcronce commented 2 years ago

Same deal for me on Arch. Thanks for the quick fix :)

enaut commented 2 years ago

master builds fine on my fedora too! Thank you!

Futsch1 commented 2 years ago

Sounds great! Note that the latest master will also cause a different look and feel for you, since you obviously had Qt installed, which is used automatically by slint. This is changed now so that a) I will realize during CI that something's wrong and b) the look and feel will be the same independent of the system.