qarmin / czkawka

Multi functional app to find duplicates, empty folders, similar images etc.
Other
20.24k stars 659 forks source link

Compilation failing due to "heif" library not found even after successful homebrew installation #1228

Open jakub-sekula opened 8 months ago

jakub-sekula commented 8 months ago

I am trying to compile the app on a Macbook Pro M1 Pro, macOS 13.6.3, using the instructions provided here: https://github.com/qarmin/czkawka/blob/master/czkawka_gui/README.md

However the build fails at the last step with the following message:

jakub@kuba-mbp czkawka-new % cargo run --release --bin czkawka_gui --features "heif,libraw"
   Compiling czkawka_gui v7.0.0 (/Users/jakub/Development/czkawka-new/czkawka_gui)
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/jakub/Library/pnpm:/opt/homebrew/opt/openjdk/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/jakub/.cargo/bin:/Users/jakub/.local/bin:/Users/jakub/.local/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/ds/sgk6sj3564n2451xb3g4rsg80000gn/T/rustcLfd5uE/symbols.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.00.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.01.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.02.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.03.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.04.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.05.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.06.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.07.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.08.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.09.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.10.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.11.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.12.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.13.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.14.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.czkawka_gui.91d8c3b1c537b7e2-cgu.15.rcgu.o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009.w17iukj5rxxnny2.rcgu.o" "-L" "/Users/jakub/Development/czkawka-new/target/release/deps" "-L" "/Users/jakub/Development/czkawka-new/target/release/build/blake3-8d58f83882d36086/out" "-L" "/Users/jakub/Development/czkawka-new/target/release/build/libraw-rs-sys-609ff76ddbffe30f/out" "-L" "/Users/jakub/Development/czkawka-new/target/release/build/libraw-rs-sys-609ff76ddbffe30f/out/lib" "-L" "/Users/jakub/Development/czkawka-new/target/release/build/bzip2-sys-51e798838f71837a/out/lib" "-L" "/opt/homebrew/Cellar/cairo/1.18.0/lib" "-L" "/opt/homebrew/Cellar/cairo/1.18.0/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/gtk4/4.12.5/lib" "-L" "/opt/homebrew/Cellar/pango/1.50.14/lib" "-L" "/opt/homebrew/Cellar/harfbuzz/8.3.0/lib" "-L" "/opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1/lib" "-L" "/opt/homebrew/Cellar/cairo/1.18.0/lib" "-L" "/opt/homebrew/Cellar/graphene/1.10.8/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/pango/1.50.14/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/harfbuzz/8.3.0/lib" "-L" "/opt/homebrew/Cellar/graphene/1.10.8/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/gtk4/4.12.5/lib" "-L" "/opt/homebrew/Cellar/pango/1.50.14/lib" "-L" "/opt/homebrew/Cellar/harfbuzz/8.3.0/lib" "-L" "/opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1/lib" "-L" "/opt/homebrew/Cellar/cairo/1.18.0/lib" "-L" "/opt/homebrew/Cellar/graphene/1.10.8/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/opt/homebrew/Cellar/gtk4/4.12.5/lib" "-L" "/opt/homebrew/Cellar/pango/1.50.14/lib" "-L" "/opt/homebrew/Cellar/harfbuzz/8.3.0/lib" "-L" "/opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1/lib" "-L" "/opt/homebrew/Cellar/cairo/1.18.0/lib" "-L" "/opt/homebrew/Cellar/graphene/1.10.8/lib" "-L" "/opt/homebrew/Cellar/glib/2.78.4/lib" "-L" "/opt/homebrew/opt/gettext/lib" "-L" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/jakub/Development/czkawka-new/target/release/deps/libopen-510866c7423f0d59.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfs_extra-91ef85a674f6eff6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libchrono-97fbb0a8f6bb6f1d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libiana_time_zone-f64ee7fd8c3fba79.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcore_foundation_sys-eb540ac1adcd9e8b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libczkawka_core-4c1ece2de4108104.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtrash-cdba82eda167e465.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libos_info-f0111f8a5c409d85.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libstate-57ab96a91287fd1d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libinfer-40c1f4e03631b619.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcfb-79a6276b06a39b9e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libuuid-a19cc5b2f9cb7e55.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libhamming-71c2847b37b3a816.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libaudio_checker-7fdd223517773ce3.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libzip-35ca02b31bfd3b00.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpbkdf2-c70d707dd5488d6c.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpassword_hash-a292739717477ce5.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbase64ct-e32532a5ceba4002.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbzip2-929a88e826d81338.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbzip2_sys-73a8a4b64bff0f63.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsha1-f78b81ca59cdab3a.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libhmac-5c0fbdb6c01ec4b1.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libconstant_time_eq-d6c0a5dbb4087ed1.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libi18n_embed-33de3fa20a41fcce.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librust_embed-9bb66921e440ecef.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librust_embed_utils-60af2c118250c203.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libwalkdir-c010d76b8731187e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsame_file-94da64787a4f20fc.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libparking_lot-f00817ad5f313075.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libparking_lot_core-f484017e4daeea58.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblock_api-1c0d41303ee1ea27.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libscopeguard-b53a951a6f154d56.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfluent-2f6546c7898c15e3.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfluent_bundle-4a8da243d29c0426.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libintl_pluralrules-2df4dd7712fc66a6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libself_cell-5244153ea95dbeb8.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libself_cell-0339d55be0e9035e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libintl_memoizer-45b373425269db8d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtype_map-ef524139efec5112.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfluent_syntax-97ceb63e1e2a4ab6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librustc_hash-2c4361e829c05c31.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfluent_langneg-cd04485642a7a5dc.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libunic_langid-d80a3ac304f80526.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libunic_langid_impl-69649ae0d15894e3.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtinystr-fd86839b5cc94de9.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libarc_swap-9ff4943010473b0f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblocale_config-bd62c8111d9cb5ee.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libobjc_foundation-1a8dc9d380610b03.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libblock-ef52fec703cc65fe.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libobjc_id-640b4e6a253c5ee6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libobjc-3f51c02ecf989b1f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libmalloc_buf-97295b16ba4fdd9e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libregex-893ed5ce325a7fa7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libregex_automata-97421852a2048123.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libaho_corasick-8b5173f37b1d9b26.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libregex_syntax-6c7b2329508cda88.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblibraw-5bf772a3ab989706.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblibraw_sys-6dae62d3feceb977.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblibheif_rs-2be4893753851d20.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblibheif_sys-d7ad46e5fcbb1f7f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfour_cc-cf79d73e3a80a535.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libimagepipe-69bae07a5cf38e3d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libserde_yaml-0e828755375bf998.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libindexmap-0f00752133fe7959.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libhashbrown-d9116bfac726cc6d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libyaml_rust-b375c978e2e28ec0.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libmulticache-075d7afc6910799e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblinked_hash_map-6c5c8beed9e8e740.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbincode-60c00863c7e61393.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libblake3-f37bf9d334c447dc.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libconstant_time_eq-4c459f319afa2985.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libarrayref-430048ac916f83d4.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librawloader-07b7677aad4d6313.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtoml-c9f3a25a68ff24a7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libhandsome_logger-303622fe0ba4c514.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtz-c965676674e3ac72.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtime-ee3a9d69c421030b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libnum_threads-cb42a23e6cff432e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtime_core-8452cecffea4096b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libnum_conv-c6d037e7727c5354.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libderanged-e7286fa24a48d22a.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpowerfmt-894543f25b713b35.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtermcolor-2fad26d622ea290b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libdirectories_next-4446d4359035c6f1.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libdirs_sys_next-fb35cd8cfd69b493.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libmime_guess-81125bb0bedc2822.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libunicase-35cfdb3e083223ec.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libmime-1d8e80b132bf07c2.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libvid_dup_finder_lib-903c775c4e6168c4.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librand-70223b217c3a68a8.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librand_chacha-e76857f6062834cc.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libppv_lite86-25ef82eb7a726285.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librand_core-dc0993b33fc420cb.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgetrandom-b335ecee75c104d6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librustdct-480e02c2fffd9b1d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librustfft-04fc99f13d2471a9.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libnum_complex-d35924f2c85a03ce.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libffmpeg_cmdline_utils-a4d00e6201605d2b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libserde_json-77f8a087fb07fda4.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libitoa-4022e9e6801437b4.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libryu-b03f5ffd3753c9f7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libimage_hasher-d912f230968b5bc2.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librustdct-ce6646acc3c4e2af.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbase64-f12f543e65c7388f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libimage-8e1afa7a620a1e3f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libqoi-da742dd518d9f720.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpng-52bab590ec7f462c.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfdeflate-5286ee524823bb96.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libexr-80f15e524eee3dab.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libflume-21bdae09efce7cce.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libzune_inflate-0f2a9b63ed59ae77.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbit_field-6411107cface24dc.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblebe-6a4665b37ee8bdd6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libhalf-ae64a10fe98d8c0f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgif-add7da8c084904fa.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcolor_quant-048a529a072fd18c.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtiff-7149074b0d951c31.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbk_tree-151790e6291ea3ef.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfnv-699363ac33b543c0.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtriple_accel-1d4dfb799b4eee37.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia-b299acbc6f24d2fa.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_format_wav-d0d37e8c020af5c6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_format_ogg-b9d3dead591ff139.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_format_mkv-2c17d43d38b31a3d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_format_isomp4-37f4179d4e379ce9.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_codec_vorbis-16ef1c296bb94b7d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_codec_pcm-d34712935d93a038.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_codec_alac-211254e37b84ba06.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_codec_adpcm-0f03ebd8b11a55c9.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_codec_aac-8185ed2fb55a6a7d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_bundle_mp3-0b095bbc542e2ad5.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_bundle_flac-d08adbcc3958169d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_utils_xiph-dfcb68bfde3924b7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_metadata-b57086a956a56f43.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libencoding_rs-a0ffa2c3159f3c52.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsymphonia_core-95c02d066c94746d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbytemuck-24b42291c42b0842.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblazy_static-b325463179eeb31e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libarrayvec-e6442cce0986bf10.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librusty_chromaprint-813575dd77c197e9.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librubato-411777d8c84fb0e3.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librealfft-218170de841e8618.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librustfft-65e182c646725929.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libprimal_check-04e9aca040490356.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtranspose-b26a003cba7aec60.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libstrength_reduce-ac303b94ff3b7e1e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libnum_integer-afcd75c5b8781c33.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libnum_complex-33a6d6a451403f5b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblofty-376acea299b974f1.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libflate2-ce8168c06fe8a687.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libminiz_oxide-daea9ffab0c0717f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsimd_adler32-046850998423b45b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libdata_encoding-bf7c8139493f6640.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libogg_pager-649c7502ba290263.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbyteorder-6775b723b5f80063.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libanyhow-b892220f7b780b74.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libxxhash_rust-a873e85e84b78dac.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpdf-f861ea7edf7a0aea.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libstringprep-291e8f3774ad78ed.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libunicode_normalization-58c7422f819e9d51.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtinyvec-abe0d720cc9fb322.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtinyvec_macros-7b5f8216b4f81e0d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libunicode_bidi-bbb56c3bd2513112.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfinl_unicode-2e8ebecb2c3c17b7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libmd5-e93a8c18539324f5.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcbc-2de49346b0199668.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsha2-37ba5dc01865a65d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libdigest-cb0a0bc7e3f80fd8.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsubtle-a907ff45daf6f36f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libblock_buffer-c39aae89a7400d71.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libaes-9fd4fe09145a8d43.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcipher-cf6002a2a00691ca.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libinout-6683dfcb151fff7a.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libblock_padding-a7bd07c333f9f8c5.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcrypto_common-772ec4555678150b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgeneric_array-6d4268dd54c9f9f6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtypenum-3d8930fde7db50fe.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfax-3c3634933f13f699.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libweezl-e931606e91248f68.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libjpeg_decoder-a128f124e6f72581.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblibflate-da52f60b4413e539.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcrc32fast-a64fb8416de4d034.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libdary_heap-14918a7221f1447f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libadler32-f99fb467f54e7de2.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblibflate_lz77-b86a07074b1b7ff4.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librle_decode_fast-1a969bfc95774dc6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcore2-8cf861da26d72aaf.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbitflags-44ed563ac38cf345.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libglobalcache-577673431438486f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libtuple-d3fb581f03c22dd7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libserde-5567d232c672209b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libnum_traits-fbfa51b0f8bafaab.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libistring-363962ad77144061.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libindexmap-455edd818aa676f8.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libequivalent-36dab2910b306ad0.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libhashbrown-ab6c4fb66f52fcb4.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libahash-37c3a16f745384e7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libonce_cell-07f580ca63e70805.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libportable_atomic-d77b3e1c9ac9e861.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcfg_if-784abba769df4119.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libzerocopy-6c72755959d5e6f0.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liballocator_api2-75cd6946bbc32c36.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libitertools-082dc882e69825e7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libdatasize-255fc7a81509569b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsnafu-675ca012e0bf2be5.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libdoc_comment-a1ece81f08d0850f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librayon-70e76557bbdaa4db.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/librayon_core-fbb49b2e7fca25b5.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcrossbeam_deque-07b6287eb3bc0213.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcrossbeam_epoch-46fc9cb63694221d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libeither-4f9b2474eb7ca1e1.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libhumansize-19829493bcf734ed.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblibm-2284979a6f63bf6b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfun_time-1f11ccde5dec556d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblog-6f529a402a5e841e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgtk4-5babfc3803301030.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgsk4-0797df44e2473967.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgraphene-185919902ed497b9.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgdk4-eaa1b796439b9a03.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpango-6a2abe6e1790cf96.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgdk_pixbuf-e23531fb29496a0d.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgio-a44fc05afcec3b0e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfutures_io-29c5f57b4dbeb210.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgtk4_sys-9ef339717ca42ad1.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgsk4_sys-8d111eb95ecc62f7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgraphene_sys-17f973c252ea034b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgdk4_sys-3b34f61a487fc410.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpango_sys-696eb3a9c4205ed8.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgdk_pixbuf_sys-8ad150ce12092dca.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcairo-2a7f240ebd083df5.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libglib-476bb793e6ef80e6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfutures_executor-1d35e2fb87a7dbd0.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libmemchr-4a61c018f9cd1704.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libsmallvec-f43c8693a83569a2.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgio_sys-15fe56e8d3353f88.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libthiserror-20f141228b6e8b70.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfutures_util-8baccb58b2770d83.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libslab-587575e5e4bd8cc7.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpin_project_lite-04b2204b37074aac.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libpin_utils-374c7679fae4d1f6.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfutures_task-bab31dd8f0ce4003.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfutures_channel-0ec4fd8a85a78e2f.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfutures_core-c95d030c925d3313.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libgobject_sys-1e04152b9b508a4b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libbitflags-c838eb8ef58c48ea.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcairo_sys-884abb49e3b0cd7c.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libglib_sys-bde4f53dda71d750.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/liblibc-993cb96ad7cacabf.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libfield_offset-718c0e787e91bbbd.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libmemoffset-fdd879db3e0b367e.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcrossbeam_channel-6265a8f181ce7d5b.rlib" "/Users/jakub/Development/czkawka-new/target/release/deps/libcrossbeam_utils-7025b87e0bcf43a0.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-4f192af08beaa759.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-401344856f0fc3c5.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-9e012890a70780c2.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-60338fe528589910.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-a2e883cf5bcf6347.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-df8440ef641907f8.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-fa2288bf7728f91c.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-f39c850853dd7dfe.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-c5b1930e10569ddd.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-96bad2fc8f58f610.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-06eec439eca0e252.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-023007819562a373.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-7254491d238c3b3e.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-9f474e4309122405.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0bfd536a501ea558.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-d56621fef414e9f8.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-60d6843fd08e9533.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-62a9b4d83244cb2b.rlib" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4010f8e9d1f7f9aa.rlib" "-framework" "CoreFoundation" "-framework" "Foundation" "-framework" "Foundation" "-lSystem" "-lobjc" "-lc++" "-lheif" "-lgtk-4" "-lpangocairo-1.0" "-lpango-1.0" "-lharfbuzz" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lcairo" "-lgraphene-1.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgtk-4" "-lpangocairo-1.0" "-lpango-1.0" "-lharfbuzz" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lcairo" "-lgraphene-1.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgraphene-1.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgtk-4" "-lpangocairo-1.0" "-lpango-1.0" "-lharfbuzz" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lcairo" "-lgraphene-1.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lpango-1.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lharfbuzz" "-lgdk_pixbuf-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lcairo-gobject" "-lcairo" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/jakub/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/jakub/Development/czkawka-new/target/release/deps/czkawka_gui-7de9e5d98e331009" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: warning: ignoring duplicate libraries: '-lSystem', '-lcairo', '-lcairo-gobject', '-lgdk_pixbuf-2.0', '-lgio-2.0', '-lglib-2.0', '-lgobject-2.0', '-lgraphene-1.0', '-lgtk-4', '-lharfbuzz', '-lintl', '-lpango-1.0', '-lpangocairo-1.0'
          ld: warning: search path '/Users/jakub/Development/czkawka-new/target/release/build/libraw-rs-sys-609ff76ddbffe30f/out/lib' not found
          ld: library 'heif' not found
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here is the output of the homebrew command:

jakub@kuba-mbp czkawka-new % brew install rustup gtk4 adwaita-icon-theme ffmpeg librsvg libheif libraw pkg-config

Warning: rustup-init 1.26.0_1 is already installed and up-to-date.
To reinstall 1.26.0_1, run:
  brew reinstall rustup-init
Warning: gtk4 4.12.5 is already installed and up-to-date.
To reinstall 4.12.5, run:
  brew reinstall gtk4
Warning: adwaita-icon-theme 45.0 is already installed and up-to-date.
To reinstall 45.0, run:
  brew reinstall adwaita-icon-theme
Warning: ffmpeg 6.1.1_3 is already installed and up-to-date.
To reinstall 6.1.1_3, run:
  brew reinstall ffmpeg
Warning: librsvg 2.57.1 is already installed and up-to-date.
To reinstall 2.57.1, run:
  brew reinstall librsvg
Warning: libheif 1.17.6 is already installed and up-to-date.
To reinstall 1.17.6, run:
  brew reinstall libheif
Warning: libraw 0.21.2 is already installed and up-to-date.
To reinstall 0.21.2, run:
  brew reinstall libraw
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
  brew reinstall pkg-config

Steps to reproduce:

  1. Clone the repository master branch
  2. run brew install rustup gtk4 adwaita-icon-theme ffmpeg librsvg libheif libraw pkg-config
  3. run cargo run --release --bin czkawka_gui --features "heif,libraw"

System

swswsws583 commented 7 months ago

I am on macOS 14.4.1 and I have the same problem, I have Xcode 15.0 beta 2 and the corresponding command line tools installed.

jimmy8633 commented 3 months ago

referenced this from #1141 and #1125 from @petko02 and @ibta reply from @petko02 run brew info libheif first to check libheif version then replace export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/libheif/<libheif version number>/lib/ with your libheif version so the installation on mac m1 is:

brew install rustup
rustup-init
brew install gtk4 adwaita-icon-theme librsvg libheif pkg-config
git clone https://github.com/qarmin/czkawka.git
cd czkawka
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/libheif/<libheif version number>/lib/ 
source "$HOME/.cargo/env"
cargo run --release --bin czkawka_gui --features "heif,libraw"
XPGeek commented 1 month ago

Thank you @jimmy8633, adding the library worked!

2021 16" M1 Max - Sequoia 15.0 (24A335)

export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/libheif/1.18.2/lib/