Suddenly darktable 5.5 won't build

So, for the past month or so I have been building darktable myself from master. It has been a very smooth experience, also with the AI functionality for masking and NR.

Now I messed up my source code folder, so I thought I’d just delete the folder and download the source again. I use Desktop Plus for this, which is a Linux fork of Github Desktop.

I use exactly the same command that I have been using, but now darktable just will not build. The command is

./build.sh --prefix /opt/darktable --enable-ai --build-type Release --install --sudo

The script exits with this:

-- 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

So what has changed? I built sucsessfully a couple of days ago and have changed nothing, except deleting the source code folder. And, I get the same error even when I try to build without AI. Any ideas?

And… I’m on Linux Mint 22 with Nvidia GPU if it matters.

You didn’t show (or get) the HTTP error, so not too sure about this, but occasional errors in HTTP transfers aren’t rare. A retry some time later may very well succeed (but that’s something where knowing the error code helps).

(It could be something like a repository update, which blocks downloads)

Or this, to get compilation started…?

Thanks, I’ll try again later. But I don’t understand why it complains about ONNX even when I try to build without --enable-ai.

This is the command you gave in your first post

(bold added by me)

If that’s not what you did, then my answer was probably wrong. If that was indeed the command that gave the errors you posted, then you’ll have to show the errors you get when building without --enable-ai .
(I assume you did remove the build directory created after the previous attempt? That has caught me a few times.)

Ah, no, I did not! :blush: Now at least it built without AI. So thanks for that :grinning: :+1:.

Please check that this is minusminusenable-ai: --enable-ai

When I cut&paste it it is coming as dashenable-ai

I’m sure it’s a typo in the forum post: I don’t think any keyboard makes it easy to type a dash by mistake! but still, I noticed it didn’t look right and thought to flag it.

(Sorry: this reply should, of course, be addressed to @hpbirkeland )

Yes, it is. Forum formatting messes things up, I shoould have used --enable-ai. Anyway, all is well now.

1 Like

Either I messed up when adding the bold, or the forum “translates” **--xx** to –xx.
Yep, needs to be **\--** (--, I copy/pasted the command, and then added bold, but didn’t think of the backslash)

1 Like