qarmin / czkawka

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

Error Compiling 6.1.0 with HEIF on M1 MacBook Pro Ventura #1125

Open nickazevedo opened 9 months ago

nickazevedo commented 9 months ago

Desktop (please complete the following information):

Bug Description Compiling 6.1.0 with HEIF or All Features results in error due to library HEIF not being found. However all requirements are installed through Homebrew. Below are the current packages installed and their respective versions:

rustup-init 1.26.0_1 gtk4 4.12.3 adwaita-icon-theme 45.0 librsvg 2.57.0 pkg-config 0.29.2_3 libheif 1.17.3

ibta commented 8 months ago

hi there.

it seems like this is a macos (or config/rust cc) issue with regards to the library not being recognized as part of the library path for clang (hence why it thinks that there is no 'heif' lib even though it is installed correctly) —

export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/libheif/1.17.5/lib/ or similarly for fish: set -x LIBRARY_PATH $LIBRARY_PATH:/opt/homebrew/Cellar/libheif/1.17.5/lib/

should fix it (for at least now — i'm sure there's a better solution; this is the stack overflow post was the most informative/helpful).