olback / library-loader

[Unofficial] Samacsys Library Loader for all platforms!
113 stars 22 forks source link

macOS Monterey ARM64 install errors out with Package 'libjpeg', required by 'gdk-pixbuf-2.0', not found #87

Closed hmoazed closed 2 years ago

hmoazed commented 2 years ago

Running the install script macos-compile.sh results in an error message when executing the following: $CARGO build --release --target=aarch64-apple-darwin The error is:

  cargo:warning=`"pkg-config" "--libs" "--cflags" "gdk-pixbuf-2.0" "gdk-pixbuf-2.0 >= 2.32"` did not exit successfully: exit status: 1
  --- stderr
  Package libjpeg was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libjpeg.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'libjpeg', required by 'gdk-pixbuf-2.0', not found

warning: build failed, waiting for other jobs to finish...

The solution is to brew install jpeg. After manually running the following: brew install jpeg and rerunning the install script macos-compile.sh, everything works perfectly fine.