Rawtherapee build for Mac Mini M1.

I tried to build a dev version for my Mac Mini M1 running macOS Monterey 12.4

Downloading source

mkdir -p ~/programs

git clone https://github.com/Beep6581/RawTherapee ~/programs/code-rawtherapee

cd ~/programs/code-rawtherapee

git checkout dev

Compile and make

cd ~/programs/code-rawtherapee
rm -rf build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=“release”
-DPROC_LABEL=“generic processor”

make -j$(sysctl -n hw.ncpu) install

sudo make macosx_bundle

Install the new build

  • open RawTherapee_macOS_10.15_arm64_.dmg at ~/programs/code-rawtherapee/build

  • copy Rawtherapee to /Applications


  • cd /Applications
  • sudo codesign --force --deep --timestamp --strict -v -s “Hans Nieuwenhuis” -i com.rawtherapee.RawTherapee -o runtime --entitlements /Users/hn/programs/code-rawtherapee/tools/osx/rt.entitlements RawTherapee.app

Try to start Rawtherapee

  • Start Finder window, go to /Applications and double-click RawTherapee
    Rt does not start.
    Nothing happens and no error or crash dump.

  • Start finder window, go to /Users/hn/programs/code-rawtherapee/build/release/MacOS
    double-click rawtherapee
    RawTherapee starts and seems to work fine

Crash when opening images from Rt in Photoshop

Start RT from /Users/hn/programs/code-rawtherapee/build/release/MacOS

Open image (CR3) in Rt and edit current image in external editor (Photoshop)
( open -b “com.adobe.Photoshop” )
close the image in photoshop
close the image in Rt and open another (CR3) image in Rt
open this image in photoshop
close the image in Photoshop

If you do this two to four times Rt crashes.

In the terminal window where Rt is started I see :

Last login: Wed Jun 15 20:51:28 on ttys002
/Users/hn/programs/code-rawtherapee/build/release/MacOS/rawtherapee ; exit;
hn@JhmnMac1 ~ % /Users/hn/programs/code-rawtherapee/build/release/MacOS/rawtherapee ; exit;

(rawtherapee:23045): GLib-GObject-WARNING **: 21:25:57.628: invalid cast from ‘GtkMenuBar’ to ‘GtkWindow’

(rawtherapee:23045): Gtk-CRITICAL **: 21:25:57.628: gtk_window_add_accel_group: assertion ‘GTK_IS_WINDOW (window)’ failed
OMP: Info #270: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
zsh: bus error /Users/hn/programs/code-rawtherapee/build/release/MacOS/rawtherapee

Saving session…
…copying shared history…
…saving history…truncating history files…

1 Like

Tested some more.
The crash when opening an image in Photoshop or sending to queue does only happen with certain images.
So it is not dependant on how often you open images.
If i set the processing profile to neutral for such an image, it will open in Photoshop.
If i then set Detail > Defringe to on and try to open in Photoshop or sent to queue
Rt crashes.
Here is such an image
20210608-R05_3552.CR3 (53.9 MB)

The lens is not a parameter here.
Some images from this camera and lens combination with defringe on open fine in Photoshop
others make Rt crash.
This one with opens in Photoshop without crashing Rt when defringe is on.
20210323-R05_1055.CR3 (63.8 MB)

When just double clicking on /Applications/RawTherapee, Rt crashes but gives no crashdump.
If i start rawtherapee in a terminal (/Applications/RawTherapee.app/Contents/MacOS/rawtherapee )
i get a crasdump file.

Crashdump.txt (18.1 KB)

It seems i got the code-signing fixed.
but running from /Applications still crashes.
library missing :/Applications/RawTherapee.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib
crasdump :
CrashDump.txt (10.5 KB)