Bug 491040 - Unable to use Darktable for demosaicing on MacOS ARM
Summary: Unable to use Darktable for demosaicing on MacOS ARM
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-ImageEditor (show other bugs)
Version: 8.4.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-30 22:31 UTC by Michael Miller
Modified: 2024-09-17 19:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.5.0
Sentry Crash Report:


Attachments
screenshot (252.63 KB, image/png)
2024-07-30 22:31 UTC, Michael Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Miller 2024-07-30 22:31:39 UTC
Created attachment 172132 [details]
screenshot

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
All options other than LIBRAW are disabled in 

STEPS TO REPRODUCE
1. Go to Preferences->Image Editor (Settings is called Preferences on Mac)
2. Click the RAW Behavior tab
3. In the "Always open the Raw Import Tool to customize settings" option, open the drop-down list
4. All options are disabled except for "Import Raw Using Libraw (default)", even though Darktable is installed.

OBSERVED RESULT
All options are disabled except for "Import Raw Using Libraw (default)"

EXPECTED RESULT
Default option and "Raw Import using DarkTable" are enabled since DarkTable is installed.

SOFTWARE/OS VERSIONS
Windows: 
macOS: Sonoma 14.5 (23F79)
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I checked the docs, and there was no mention of this being a MacOS limitation.  If so, the bug report should be against the docs and not the code.
Comment 1 Maik Qualmann 2024-07-31 04:28:31 UTC
If the Darktable is grayed out, the executable is not found via a Qt function.
What is the exact path to the Darktable binary on macOS?

Maik
Comment 2 Michael Miller 2024-07-31 10:58:40 UTC
Using the darktable.dmg for installation puts the binaries in /Applications/darktable.app/Contents/MacOS.
Comment 3 Maik Qualmann 2024-07-31 20:45:50 UTC
Git commit 829e1313f1f4e7a844b7ca1031ed50dedf747cd3 by Maik Qualmann.
Committed on 31/07/2024 at 20:44.
Pushed by mqualmann into branch 'master'.

add path hints to RAW programs for macOS

M  +9    -1    core/dplugins/rawimport/art/rawimportartplugin.cpp
M  +9    -1    core/dplugins/rawimport/darktable/rawimportdarktableplugin.cpp
M  +9    -1    core/dplugins/rawimport/rawtherapee/rawimportrawtherapeeplugin.cpp
M  +3    -2    core/libs/threadimageio/engine/dfileoperations.cpp
M  +2    -1    core/libs/threadimageio/engine/dfileoperations.h

https://invent.kde.org/graphics/digikam/-/commit/829e1313f1f4e7a844b7ca1031ed50dedf747cd3
Comment 4 Michael Miller 2024-07-31 21:26:49 UTC
There's a minor bug in the PR.  The path for RawTherapee is:
/Applications/RawTherapee.app/Contents/MacOS  

The default MacOS file system is case sensitive.  I'll install the other raw processors and update the comments with the paths if they aren't correct.
Comment 5 Maik Qualmann 2024-08-01 05:47:04 UTC
Git commit 96b1678e7594a3b997bc1d86dfd4849591d68219 by Maik Qualmann.
Committed on 01/08/2024 at 05:46.
Pushed by mqualmann into branch 'master'.

fix path to RawTherapee.app on macOS

M  +1    -1    core/dplugins/rawimport/rawtherapee/rawimportrawtherapeeplugin.cpp

https://invent.kde.org/graphics/digikam/-/commit/96b1678e7594a3b997bc1d86dfd4849591d68219
Comment 6 Maik Qualmann 2024-08-01 05:51:19 UTC
I don't use macOS myself and only imagined it for RawTherapee. ((:-))
The executable files are in lowercase?

Maik
Comment 7 Michael Miller 2024-08-01 11:04:28 UTC
Yes, the binaries are all lower case.

I couldn't find an MacOS installation package for ART, and I don't have time to set up a build environment.  Sorry.

Thank you for doing this.  I appreciate it.

Cheers,
Mike
Comment 8 caulier.gilles 2024-09-17 11:57:44 UTC
Michael,

Problem is fixed now with the 8.5.0 pre-release installer for Apple Silicon (arm64) ?

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 9 Michael Miller 2024-09-17 16:56:16 UTC
Thanks.  I've been using it in my Homebrew build for a while now.  It works well.  Thank you.
Comment 10 Michael Miller 2024-09-17 16:57:07 UTC
I marked the issue as resolved.