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_TARGET_NUMBER=“1”
-DPROC_LABEL=“generic processor”
-DCACHE_NAME_SUFFIX=“5-dev”
-DCMAKE_C_COMPILER=“clang”
-DCMAKE_CXX_COMPILER=“clang++”
-DWITH_LTO=“OFF”
-DLENSFUNDBDIR=“share/lensfun”
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
-DLOCAL_PREFIX:STRING="/opt/homebrew"
-DCMAKE_OSX_ARCHITECTURES=arm64
…
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
Codesigning
- 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…
…completed.