Add ONNX Runtime bundling to macOS packaging#20507
Add ONNX Runtime bundling to macOS packaging#20507TurboGit merged 1 commit intodarktable-org:masterfrom
Conversation
Not yet, as this PR does not introduce any AI consumer-feature. That would be in next AI PR. |
|
During GtLab-CI we still have issue: https://github.com/darktable-org/darktable/actions/runs/23081801495/job/67052281650?pr=20506 The ONNX runtime is downloaded. Fine. But probably not installed with Darktable. And so, at the end, the test for the binary crash with: Maybe this is because my PR (#20504) is still not merged. |
|
The lib is expected to be in So the change in |
|
So we need to just revert this, I let you propose the PR? |
|
Made some more analysis: This is a real mess. The darktable binaries expect the libs to be either in the system library paths or in
At the very end of the output we get the RPATH:
During package building the load pathes are corrected, this is why running darktable from the application bundle now works fine, but all CLI executables fail. |
|
@zisoft : Hope you'll find a way to fix the mess. Maybe @andriiryzhkov can help sorting this out? |
|
I built a port file for macports and there were several sdk related issues and also an RPath issue. Maybe check the comments in https://github.com/macports/macports-ports/pull/31567/changes |

Summary
lib/(notlib/darktable/) on macOS so it lands alongside other bundled dylibs in the app bundle, consistent with howinstall_dependencieshandles homebrew libraries##Changes
src/ai/CMakeLists.txt: macOS install destination changed fromLIBDIR/darktabletoLIBDIR(Linux/Windows unchanged)packaging/macosx/3_make_hb_darktable_package.sh: fallback section to copy ONNX Runtime dylib if not already present from CMake install or homebrewFixes: #20503