Compiled binary and filters for Intel macOS with unmodified GIMP.app 3.0.6 brew
See my gist on how I got it to work if you're on different arch or just feel bored here --> https://gist.github.com/Lampekapje/2d9e68a36a02e0c50a6773d1f07c7cbe
The things we do to cut out a few rectangles of a screenshot...
Anyways to the important bits (after some prereqs and hedging and whatnot)
- This applies to precompiled GIMP.app only.
- No modifications to GIMP.app are required.
- You only install plug-in files in the user plug-ins folder.
I specifically got this working on my machine as mentioned and although it should be fairly portable at least for Intel (and maybe Rosetta Macs) I have not tried and am not planning to. Making something work is easy and quick, making something work consistently is messy and time consuming and I do not have time.
- Architecture: Intel (x86_64). (May or may not work on Rosetta.
- GIMP: 3.0.6 app installed at /Applications/GIMP.app (brew cask is fine).
- Plug-in install path: ~/Library/Application Support/GIMP/3.0/plug-ins
- Script-Fu shebangs must point to: /Applications/GIMP.app/Contents/MacOS/gimp-script-fu-interpreter-3.0
- Homebrew glib is required unless you relink the engine: /usr/local/opt/glib/lib/libglib-2.0.0.dylib must exist.
-
Copy plug-in folders to the user plug-ins directory: cp -R "/plug-ins/." "~/Library/Application Support/GIMP/3.0/plug-ins/"
-
Fix Script-Fu shebangs (required on macOS): # may need a smidge of tweaking specifics if not successful reading source dir:
for f in "~/Library/Application Support/GIMP/3.0/plug-ins"/plug-in-/plug-in-.scm; do sed -i '' '1 s|^#!.*gimp-script-fu-interpreter-3.0$|#!/Applications/GIMP.app/Contents/MacOS/gimp-script-fu-interpreter-3.0|' "$f"
-
Restart GIMP. Probably shoud have quit GIMP first but that teaches the valuable lesson of reading the instructions in full before starting a project.
Of course I had some initial trouble after compiling this mess so don't be me and looke here first if these problems occur
If menu items are gray
- Delete plugin cache and restart: rm "~/Library/Application Support/GIMP/3.0/pluginrc"
If you see dyld errors about libgimp
- Fix rpath on the engine binary: PLUGIN="~/Library/Application Support/GIMP/3.0/plug-ins/resynthesizer/resynthesizer" install_name_tool -delete_rpath /Applications/GIMP.app/Contents/Resources/lib "$PLUGIN" install_name_tool -add_rpath /Applications/GIMP.app/Contents/Resources "$PLUGIN" otool -L "$PLUGIN"
Notes
- This bundle is built for and against and tested on (N=1) GIMP 3.0.6; other minor versions may work but are not guaranteed. Specifically because I didn't want to get caught in the trap of having to build GIMP from source with every update. Might still have to rebuild plugin with every update from either the plugin or GIMP but that's far more preferable than GIMP.
- Homebrew GIMP (non-cask) is a different layout and likely needs rebuild or adjusted paths. As are any built from source GIMP.app versions.
Maybe helpful troubleshooting bit and bobs
GIMP debug run (for when feces meet fan and hair disappears)
- Command: GIMP_DEBUG=plugin /Applications/GIMP.app/Contents/MacOS/gimp Expected: no dyld error about libgimp; plugin loads normally If gives errors they should be normal macos misery and google can help.
Plugin registration check (optional)
- Command: /usr/bin/grep -n -E "plug-in-resynthesizer|plug-in-resynth-controls|plug-in-heal-selection" "<user_plugins>/../pluginrc" Expected: entries for each procedure
- If fails fix @rpaths by deleting and relinking them (usually)
Fly safe o7