Skip to content

Build fails on missing libcurl4 dependency, even though it is installed #17007

@johnlb

Description

@johnlb

Describe the bug

Firstly: running Ubuntu 24.04 on wsl2.

So, I'm building DT from source for the first time and I can't seem to resolve a dependency issue with libcurl4. It seems the libcurl4 package was renamed to libcurl4t64 in Ubuntu, but they are not properly linked for some reason so cmake doesn't know it is there. I think there is a fix for this in the curl codebase (https://www.mail-archive.com/[email protected]/msg674605.html), but it is on a newer release than exists in Ubuntu's repos (I have 8.5.0, the release was 8.6.0, latest is 8.8.0), so I haven't been able to test it.

Is it possible there is a workaround along the lines of adding libcurl4t64 as an alternate for libcurl4 in the dependencies?

Here is the shell output when building:

$ scbi --deps --update c-darktable
2024/06/16 22:03:34 : c-cmake v3.18.4 using native variant
2024/06/16 22:03:34 :   ↳ cmake 3.28.3 used
2024/06/16 22:03:34 : c-libavif using native variant
2024/06/16 22:03:34 :   ↳ libavif-dev 1.0.4 used
2024/06/16 22:03:34 : c-darktable=c-libavif v0.10.1 using native variant
2024/06/16 22:03:34 :   ↳ libavif-dev 1.0.4 used
2024/06/16 22:03:34 : c-exiv2 v0.27.5 using native variant
2024/06/16 22:03:34 :   ↳ libexiv2-dev 0.27.6 used

2024/06/16 22:03:35 : Building c-cmake [native] (3.28.3)
2024/06/16 22:03:35 : native x86_64-linux-gnu
2024/06/16 22:03:35 : steps : setup config build install wrapup
2024/06/16 22:03:35 : skip global install
2024/06/16 22:03:35 : End Building c-cmake [native] (3.28.3)

error: missing dependencies for building c-darktable
error: libcurl4:(none) should be installed

Here is the shell when I try to install libcurl4:

$ sudo apt install libcurl4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcurl4t64' instead of 'libcurl4'
libcurl4t64 is already the newest version (8.5.0-2ubuntu10.1).
The following packages were automatically installed and are no longer required:
libdecor-0-0 libdecor-0-plugin-1-gtk libportmidi0 libsamplerate0 libsdl2-2.0-0 mailcap
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Steps to reproduce

  1. sudo apt install curl
  2. scbi --deps --update c-darktable

Expected behavior

DT should build correctly

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

self compiled

darktable version

latest from github

What OS are you using?

Linux

What is the version of your OS?

Ubuntu 24.04 on WSL2

Describe your system?

No response

Are you using OpenCL GPU in darktable?

None

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions