Kl4rry / simp

🖼️ Simp is a fast and simple GPU-accelerated image manipulation program.
Apache License 2.0
304 stars 13 forks source link

Installation error on Intel Mac #8

Closed trickster closed 1 year ago

trickster commented 2 years ago

Environment:

rustc 1.64.0-beta.3 (82bf34178 2022-08-18)

Foundation" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-lSystem" "-lobjc" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/user/.rustup/toolchains/beta-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/var/folders/vx/_5fgc0ps1_s46k0jyf4fw2w5gn8nsx/T/cargo-install9koPEX/release/deps/simp-a748a72e178cf392" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture x86_64:
            "_VP8LDspInitSSE41", referenced from:
                _VP8LDspInit in liblibwebp_sys-2554bdf03a6f8d6b.rlib(lossless.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Install command

cargo install simp
Kl4rry commented 2 years ago

Use the --locked flag otherwise cargo will select a broken version of libwebp2.

Kl4rry commented 2 years ago

The real fix is forking libwebp2 and fixing the problem upstream.

Kl4rry commented 2 years ago

Related to qnighy/libwebp-sys2-rs#12.

bartios commented 2 years ago

You might have been aware already but running cargo install simp (without the --locked) on my m1 mac just worked without any errors.

Kl4rry commented 2 years ago

I was not aware but it does not suprise me as the compiler error relates to a missing simd function. I think the error appears any time it is built on x86.