Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.1.0 mac_czkawka_gui OSX ARM Unable to execute #689

Closed
michaelkahn opened this issue Apr 24, 2022 · 17 comments
Closed

4.1.0 mac_czkawka_gui OSX ARM Unable to execute #689

michaelkahn opened this issue Apr 24, 2022 · 17 comments
Labels
documentation Improvements or additions to documentation PR welcome The given topic has already been analyzed and you can safely create a PR implementing this functiona

Comments

@michaelkahn
Copy link

Followed instructions here: https://github.com/qarmin/czkawka/blob/master/instructions/Installation.md

Error at this step:
./mac_czkawka_gui

username@MacBook-Pro /Applications % ./mac_czkawka_gui
dyld[78755]: Library not loaded: /usr/local/opt/glib/lib/libgobject-2.0.0.dylib
Referenced from: /Applications/mac_czkawka_gui
Reason: tried: '/usr/local/opt/glib/lib/libgobject-2.0.0.dylib' (no such file), '/usr/local/lib/libgobject-2.0.0.dylib' (no such file), '/usr/lib/libgobject-2.0.0.dylib' (no such file)
zsh: abort ./mac_czkawka_gui

@qarmin
Copy link
Owner

qarmin commented Apr 24, 2022

This is instruction from x86_64 mac.

Below is additional line that says that on arm mac, this command should be executed:

arch -x86_64 /usr/local/bin/brew install gtk+3 adwaita-icon-theme ffmpeg librsvg

@michaelkahn
Copy link
Author

Oh! I misread that instruction. Well, still getting an error.

That command returns this:

username@MacBook-Pro ~ % arch -x86_64 /usr/local/bin/brew install gtk+3 adwaita-icon-theme ffmpeg librsvg

arch: /usr/local/bin/brew isn't executable

@qarmin
Copy link
Owner

qarmin commented Apr 24, 2022

I don't have such mac, so I can't test this, but looks that #637 may contains proper(but maybe a little too long) instruction how to do it

@michaelkahn
Copy link
Author

I read through those instructions, and I don't really want to change homebrew locations just for this one thing. It looks like the issue goes to one of your dependencies, so perhaps I'll just wait on that for a future install, or run it under docker.

@axe312ger
Copy link

Same here, cant run it.

@qarmin any way we can help you?

@qarmin qarmin added the PR welcome The given topic has already been analyzed and you can safely create a PR implementing this functiona label May 4, 2022
@qarmin
Copy link
Owner

qarmin commented May 4, 2022

It would be best to create a detailed(and reasonably simple) instruction how to run the program on this system.
I don't have any mac and I don't know mac ecosystem, so I can't help to create such instruction and I must rely on other people work.

@rafo
Copy link

rafo commented May 9, 2022

Compilation works for me without problems from the original instructions for Czkawka 4.0

  • Hardware: MacBookPro17,1 - Apple M1 - Cores: 8 - RAM 16 GB
  • MacOS: macOS 12.3.1 (21E258), Kernel: Darwin 21.4.0

I have a standard Homebrew installation, everything is up to date. I will try to compile the 4.1 version. @qarmin What kind of documentation do you want? Are you interested in the compiled binary?

Cheers,
Rafael

@rafo
Copy link

rafo commented May 9, 2022

Update from 4.0 to 4.1 without problems:

cd czkawka
gh pull
cargo run --release --bin czkawka_gui

BTW: My Homebrew is in the standard location and I did nothing like #637 I would never install the rosetta versions.

@michaelkahn @axe312ger @qarmin
I think the problem is not the location of Homebrew. Did you check your PATH variable?

In your Terminal do:

brew update && brew upgrade

Edit your ~/.zshrc and put this at the end of the file :

export PATH=/opt/homebrew/bin:$PATH

Restart zsh:

tap source ~/.zshrc


My output without a single error:

❯ cd czkawka/
❯ git pull
remote: Enumerating objects: 255, done.
remote: Counting objects: 100% (178/178), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 255 (delta 155), reused 167 (delta 151), pack-reused 77
Empfange Objekte: 100% (255/255), 129.70 KiB | 948.00 KiB/s, fertig.
Löse Unterschiede auf: 100% (173/173), abgeschlossen mit 79 lokalen Objekten.
Von https://github.com/qarmin/czkawka
   aa07d73..073ae6f  master                       -> origin/master
 * [neuer Branch]    try_fix_closing_about_dialog -> origin/try_fix_closing_about_dialog
 * [neuer Branch]    update_things                -> origin/update_things
 * [neues Tag]       4.1.0                        -> 4.1.0
Aktualisiere aa07d73..073ae6f
Fast-forward
 .gitignore                                                |   1 +
 .mailmap                                                  |   1 +
 Cargo.lock                                                | 186 +++++++++++++++++++++++++++++++++++++----------------
 Changelog.md                                              |  17 +++++
 README.md                                                 |  71 ++++++++++----------
 czkawka_cli/Cargo.toml                                    |   4 +-
 czkawka_cli/src/commands.rs                               |  37 +++++++++++
 czkawka_cli/src/main.rs                                   |  40 ++++++++++++
 czkawka_core/Cargo.toml                                   |   5 +-
 czkawka_core/i18n/cs/czkawka_core.ftl                     |   2 +
 czkawka_core/i18n/de/czkawka_core.ftl                     |  20 +++---
 czkawka_core/i18n/en/czkawka_core.ftl                     |   3 +-
 czkawka_core/i18n/es/czkawka_core.ftl                     |   2 +
 czkawka_core/i18n/fr/czkawka_core.ftl                     |   2 +
 czkawka_core/i18n/it/czkawka_core.ftl                     |   2 +
 czkawka_core/i18n/ja/czkawka_core.ftl                     |   2 +
 czkawka_core/i18n/no/czkawka_core.ftl                     |  27 ++++++++
 czkawka_core/i18n/pl/czkawka_core.ftl                     |   5 +-
 czkawka_core/i18n/pt/czkawka_core.ftl                     |   2 +
 czkawka_core/i18n/ru/czkawka_core.ftl                     |  36 ++++++-----
 czkawka_core/i18n/uk/czkawka_core.ftl                     |  34 +++++-----
 czkawka_core/i18n/zh/czkawka_core.ftl                     |   2 +
 czkawka_core/src/bad_extensions.rs                        | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 czkawka_core/src/big_file.rs                              |  16 +++++
 czkawka_core/src/broken_files.rs                          |  44 +++++++++----
 czkawka_core/src/common_dir_traversal.rs                  |  55 ++++++++++++++++
 czkawka_core/src/common_directory.rs                      |  45 +++++++++++++
 czkawka_core/src/duplicate.rs                             |  21 ++++--
 czkawka_core/src/empty_files.rs                           |   7 ++
 czkawka_core/src/empty_folder.rs                          |   5 ++
 czkawka_core/src/invalid_symlinks.rs                      |   7 ++
 czkawka_core/src/lib.rs                                   |   1 +
 czkawka_core/src/same_music.rs                            |  73 ++++++++++++++++-----
 czkawka_core/src/similar_images.rs                        |  24 ++++++-
 czkawka_core/src/similar_videos.rs                        |  22 ++++++-
 czkawka_core/src/temporary.rs                             |  16 +++++
 czkawka_gui/Cargo.toml                                    |   6 +-
 czkawka_gui/i18n/cs/czkawka_gui.ftl                       | 200 ++++++++++++++++++++++++++++++---------------------------
 czkawka_gui/i18n/de/czkawka_gui.ftl                       | 235 ++++++++++++++++++++++++++++++++++--------------------------------
 czkawka_gui/i18n/en/czkawka_gui.ftl                       |   7 +-
 czkawka_gui/i18n/es/czkawka_gui.ftl                       | 204 +++++++++++++++++++++++++++++++---------------------------
 czkawka_gui/i18n/fr/czkawka_gui.ftl                       | 200 ++++++++++++++++++++++++++++++---------------------------
 czkawka_gui/i18n/it/czkawka_gui.ftl                       | 247 +++++++++++++++++++++++++++++++++++++---------------------------------
 czkawka_gui/i18n/ja/czkawka_gui.ftl                       | 322 +++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------
 czkawka_gui/i18n/no/czkawka_gui.ftl                       | 419 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 czkawka_gui/i18n/pl/czkawka_gui.ftl                       | 224 ++++++++++++++++++++++++++++++++++-----------------------------
 czkawka_gui/i18n/pt/czkawka_gui.ftl                       | 218 +++++++++++++++++++++++++++++++++-----------------------------
 czkawka_gui/i18n/ru/czkawka_gui.ftl                       | 436 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------
 czkawka_gui/i18n/uk/czkawka_gui.ftl                       | 394 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------
 czkawka_gui/i18n/zh/czkawka_gui.ftl                       | 223 ++++++++++++++++++++++++++++++---------------------------------
 czkawka_gui/icons/icon_about.png                          | Bin 0 -> 4458 bytes
 czkawka_gui/src/compute_results.rs                        |  69 ++++++++++++++++++++
 czkawka_gui/src/connect_things/connect_button_delete.rs   |   9 ++-
 czkawka_gui/src/connect_things/connect_button_hardlink.rs |   6 +-
 czkawka_gui/src/connect_things/connect_button_move.rs     |   3 +-
 czkawka_gui/src/connect_things/connect_button_save.rs     |   6 ++
 czkawka_gui/src/connect_things/connect_button_search.rs   |  26 ++++++++
 czkawka_gui/src/connect_things/connect_progress_window.rs |  67 ++++++++++++++++---
 czkawka_gui/src/connect_things/connect_settings.rs        |   2 +-
 czkawka_gui/src/gui_structs/gui_about.rs                  |  13 +++-
 czkawka_gui/src/gui_structs/gui_data.rs                   |   6 +-
 czkawka_gui/src/gui_structs/gui_main_notebook.rs          |  23 +++++++
 czkawka_gui/src/help_functions.rs                         |  43 +++++++++++++
 czkawka_gui/src/initialize_gui.rs                         |  39 ++++++++++-
 czkawka_gui/src/language_functions.rs                     |  18 ++++--
 czkawka_gui/src/main.rs                                   | 245 +++++++++++++++++++++++++++++++++++++--------------------------------
 czkawka_gui/src/notebook_enums.rs                         |   5 +-
 czkawka_gui/src/saving_loading.rs                         |  47 +++++++++++++-
 czkawka_gui/ui/about_dialog.cmb.ui                        |   2 +-
 czkawka_gui/ui/about_dialog.ui                            |   2 +-
 czkawka_gui/ui/czkawka.cmb                                |  18 +++---
 czkawka_gui/ui/main_window.ui                             | 571 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------
 data/com.github.qarmin.czkawka.metainfo.xml               |   2 +-
 instructions/Compilation.md                               |   2 +-
 instructions/Instruction.md                               |  26 +++++++-
 misc/cargo/PublishCore.sh                                 |   2 +-
 misc/cargo/PublishOther.sh                                |  10 +--
 snap/snapcraft.yaml                                       |   2 +-
 78 files changed, 3894 insertions(+), 2020 deletions(-)
 create mode 100644 czkawka_core/i18n/no/czkawka_core.ftl
 create mode 100644 czkawka_core/src/bad_extensions.rs
 create mode 100644 czkawka_gui/i18n/no/czkawka_gui.ftl
 create mode 100644 czkawka_gui/icons/icon_about.png
❯ ls
Cargo.lock	Cargo.toml	Changelog.md	LICENSE		README.md	czkawka_cli	czkawka_core	czkawka_gui	data		i18n.toml	instructions	misc		snap		target
❯ cargo run --release --bin czkawka_gui
    Updating crates.io index
  Downloaded rayon-core v1.9.2
  Downloaded libc v0.2.124
  Downloaded exr v1.4.2
  Downloaded rustc_version v0.4.0
  Downloaded toml v0.5.9
  Downloaded uuid v0.8.2
  Downloaded spin v0.9.3
  Downloaded unicase v2.6.0
  Downloaded weezl v0.1.6
  Downloaded xxhash-rust v0.8.5
  Downloaded anyhow v1.0.57
  Downloaded cfb v0.6.1
  Downloaded quote v1.0.18
  Downloaded mime v0.3.16
  Downloaded flate2 v1.0.23
  Downloaded mime_guess v2.0.4
  Downloaded lofty v0.6.1
  Downloaded rust-embed v6.4.0
  Downloaded rust-embed-utils v7.2.0
  Downloaded semver v1.0.7
  Downloaded tiff v0.7.2
  Downloaded rayon v1.5.2
  Downloaded rawloader v0.37.1
  Downloaded infer v0.7.0
  Downloaded 24 crates (13.3 MB) in 11.85s (largest was `infer` at 9.2 MB)
   Compiling libc v0.2.124
   Compiling rayon-core v1.9.2
   Compiling anyhow v1.0.57
   Compiling weezl v0.1.6
   Compiling semver v1.0.7
   Compiling uuid v0.8.2
   Compiling mime v0.3.16
   Compiling xxhash-rust v0.8.5
   Compiling rayon v1.5.2
   Compiling unicase v2.6.0
   Compiling cfb v0.6.1
   Compiling gif v0.11.3
   Compiling quote v1.0.18
   Compiling syn v1.0.91
   Compiling infer v0.7.0
   Compiling spin v0.9.3
   Compiling proc-macro-error-attr v1.0.4
   Compiling cpufeatures v0.2.2
   Compiling malloc_buf v0.0.6
   Compiling parking_lot_core v0.9.2
   Compiling num_cpus v1.13.1
   Compiling rustc_version v0.4.0
   Compiling getrandom v0.2.6
   Compiling flate2 v1.0.23
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling num_threads v0.1.5
   Compiling dirs-sys-next v0.1.2
   Compiling time v0.1.44
   Compiling tempfile v3.3.0
   Compiling sha2 v0.9.9
   Compiling objc v0.2.7
   Compiling parking_lot v0.12.0
   Compiling threadpool v1.8.1
   Compiling mime_guess v2.0.4
   Compiling rand_core v0.6.3
   Compiling nanorand v0.7.0
   Compiling sha2 v0.10.2
   Compiling sha1 v0.10.1
   Compiling aes v0.7.5
   Compiling time v0.3.9
   Compiling bzip2 v0.4.3
   Compiling directories-next v2.0.0
   Compiling lofty v0.6.1
   Compiling chrono v0.4.19
   Compiling rust-embed-utils v7.2.0
   Compiling objc_id v0.1.1
   Compiling dashmap v5.2.0
   Compiling password-hash v0.3.2
   Compiling rand_chacha v0.3.1
   Compiling proc-macro-error v1.0.4
   Compiling objc-foundation v0.1.1
   Compiling pbkdf2 v0.10.1
   Compiling rand v0.8.5
   Compiling serde_derive v1.0.136
   Compiling thiserror-impl v1.0.30
   Compiling futures-macro v0.3.21
   Compiling rust-embed-impl v6.2.0
   Compiling pin-project-internal v1.0.10
   Compiling enumn v0.1.3
   Compiling zip v0.6.2
   Compiling locale_config v0.3.0
   Compiling jpeg-decoder v0.1.22
   Compiling jpeg-decoder v0.2.4
   Compiling futures-util v0.3.21
   Compiling thiserror v1.0.30
   Compiling rust-embed v6.4.0
   Compiling tiff v0.6.1
   Compiling pin-project v1.0.10
   Compiling tiff v0.7.2
   Compiling fluent-syntax v0.11.0
   Compiling serde v1.0.136
   Compiling image v0.23.14
   Compiling flume v0.10.12
   Compiling futures-executor v0.3.21
   Compiling futures v0.3.21
   Compiling exr v1.4.2
   Compiling toml v0.5.9
   Compiling unic-langid-impl v0.9.0
   Compiling serde_json v1.0.79
   Compiling bincode v1.3.3
   Compiling serde_yaml v0.8.23
   Compiling unic-langid v0.9.0
   Compiling system-deps v6.0.2
   Compiling proc-macro-crate v1.1.3
   Compiling find-crate v0.6.3
   Compiling image v0.24.1
   Compiling rawloader v0.37.1
   Compiling fluent-langneg v0.13.0
   Compiling intl-memoizer v0.5.1
   Compiling i18n-config v0.4.2
   Compiling intl_pluralrules v7.0.1
   Compiling ffmpeg_cmdline_utils v0.1.1
   Compiling glib-macros v0.15.10
   Compiling gtk3-macros v0.15.4
   Compiling glib-sys v0.15.10
   Compiling gobject-sys v0.15.10
   Compiling gio-sys v0.15.10
   Compiling pango-sys v0.15.10
   Compiling gdk-sys v0.15.1
   Compiling gdk-pixbuf-sys v0.15.10
   Compiling atk-sys v0.15.1
   Compiling cairo-sys-rs v0.15.1
   Compiling gtk-sys v0.15.3
   Compiling i18n-embed-impl v0.8.0
   Compiling fluent-bundle v0.15.2
   Compiling vid_dup_finder_lib v0.1.0
   Compiling image_hasher v1.0.0
   Compiling fluent v0.16.0
   Compiling i18n-embed v0.13.4
   Compiling gtk v0.15.4
   Compiling i18n-embed-fl v0.6.4
   Compiling imagepipe v0.4.0
   Compiling glib v0.15.10
   Compiling czkawka_core v4.1.0 (/Users/rafael/Czkawka/czkawka/czkawka_core)
   Compiling gio v0.15.10
   Compiling cairo-rs v0.15.10
   Compiling pango v0.15.10
   Compiling atk v0.15.1
   Compiling gdk-pixbuf v0.15.10
   Compiling gdk v0.15.4
   Compiling czkawka_gui v4.1.0 (/Users/rafael/Czkawka/czkawka/czkawka_gui)
    Finished release [optimized] target(s) in 3m 10s
     Running `target/release/czkawka_gui`

@qarmin qarmin added the documentation Improvements or additions to documentation label May 29, 2022
@bauchdj
Copy link

bauchdj commented Nov 10, 2022

5.0.2 compiled Nov 8, 2022 on Macbook Pro 16 M1 Max
czkawka_arm_gui.zip

Install Rust and Libraries
brew install rustup
rustup-init
brew install gtk4 adwaita-icon-theme librsvg libheif

Clone and Build
git clone https://github.com/qarmin/czkawka.git
cd czkawka
cargo run --release --bin czkawka_gui

@newadventure079
Copy link

@bauchdj Thanks for the build!

@newadventure079
Copy link

I followed the steps provided by @bauchdj exactly on my m1 mac studio to build 5.1.0 and it worked perfectly. These steps should be stickied or put in the documentation

@CheersBeers
Copy link

These instructions worked for me as well, granted I needed to run through some additional brew / rust install steps. This site was the last one that helped me get to the finishline fwiw

https://stackoverflow.com/questions/36657321/after-installing-homebrew-i-get-zsh-command-not-found-brew

@aioue
Copy link
Contributor

aioue commented May 3, 2023

Added Apple Silicon compilation to the docs, with attribution to @bauchdj #945

@qarmin qarmin closed this as completed May 3, 2023
@nickazevedo
Copy link

@bauchdj have you tried to compile a version with HEIF or all features? I am on MacOS Ventura with libheif installed through Homebrew and I keep getting (ld: library 'heif' not found) upon trying to.

@bauchdj
Copy link

bauchdj commented Oct 30, 2023

@nickazevedo Yes. I am currently able to compile according to the instructions. I am on Sonoma Macbook Pro 16 inch 2021 with M1 Max. I made sure everything was up to date by re-running each command per the instructions.

@nickazevedo
Copy link

nickazevedo commented Oct 30, 2023

@bauchdj Oh wow so my environment must be messed up. Can you please share a new czkawka_arm_gui.zip compiled with --all-features?

@bauchdj
Copy link

bauchdj commented Oct 31, 2023

@nickazevedo I get the same error compiling with --all-features or --features heif.
cargo run --all-features --release --bin czkawka_gui
cargo run --features heif --release --bin czkawka_gui
Error: ld: library 'heif' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My apologies for not understanding the initial question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation PR welcome The given topic has already been analyzed and you can safely create a PR implementing this functiona
Projects
None yet
Development

No branches or pull requests

9 participants