Compile from Git fails with AI Flag

I cannot compile 5.7.0 with the AI flag enabled.
fails as shown below:

– Fetching ONNX Runtime v1.24.4 release metadata from GitHub API…
CMake Warning at cmake/modules/FindONNXRuntime.cmake:240 (message):
Failed to fetch release metadata from GitHub: “HTTP response code said
error”
Call Stack (most recent call first):
src/CMakeLists.txt:3 (find_package)

CMake Warning at cmake/modules/FindONNXRuntime.cmake:266 (message):
Could not obtain integrity hash for onnxruntime-linux-x64-1.24.4.tgz from
package repository. Refusing to download without verification. Install
ONNX Runtime manually or set ONNXRUNTIME_OFFLINE=ON.
Call Stack (most recent call first):
src/CMakeLists.txt:3 (find_package)

CMake Error at src/CMakeLists.txt:5 (message):
ONNX Runtime not found

Please read the warnings and messages. They tell you what to do : install onnx runtime manually.

2 Likes

FindONNXRuntime.cmake search the onnxruntime-linux-x64-1.24.4.tgz in a github repo that doesn’t exist any more.

I’m now trying to figure out how to install it manually in a linux mint (the one-line install script provided in darktable user manual - GPU acceleration also search in that non-existent github repo).

Some onnx related repos are reported as being deliberately offline: Microsoft's official Python agent framework hijacked to distribute malware says

It’s been pointed out online that Microsoft’s repo for ONNX Runtime, an AI accelerator, is also offline.

2 Likes

Ahh… Thanks.

Circumstances beyond our control then: we will just have to wait until the rest of the world sorts itself out .

1 Like

@pehar et al …
Thanks, missed that.
Will continue to compile without AI.
:upside_down_face:

The nightly AppImages seem to be failing for the same reason since two days.

1 Like

Can’t do much honestly.

1 Like

As and when someone notices that MS has got its act together with the onnx githib, Do please post here, so we can all go back to the nightlies.

Compiling without AI is not an option for me: it quickly became indispensable. Most of my masking shapes are AI.

Wanting to update to the Flexi-Mask latest. But hey, what I have works, so no hurry.

You can install the packages of your Linux distro, hopefully those are clean. I did that, and darktable compiled fine, then.

My Linux (Mint) darktable version is still at 4.6!

I’m ok with waiting.

Oh… you mean the onnx (Duh… I’m stupid)! libonnx*? I’ll try that.

…no, I need onnxruntime. Which is not in the synaptic list.

You get get the package from nuget, too:
https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/1.24.4/microsoft.ml.onnxruntime.1.24.4.nupkg

I’ve done so a few minutes ago

Yep, libonnxruntime-dev is only available since Debian 13 and Ubuntu 26.04, and I guess Mint is even further behind… (Though there are some PPAs for older Ubuntus, maybe they work on Mint…)

It is there from the previous build in the /opt/darktable tree. How to use that?

MS have taken it down due to security issues, so I am not comfortable just grabbing it from elsewhere in the web.

Well principally there were missing the includefiles only, as the *.so files were available in my .local directory and also in the darktable/lib installation directory. It seems that the build needs the *.h files, too, otherwise it stops.

1 Like