Closed manu-p closed 1 year ago
maybe your libjxl is outdated (on macports it's already 0.8.2)
Thanks @MStraeten for taking care!
Maybe yes, but if you take a look at https://github.com/darktable-org/darktable#dependencies you'll find:
Optional dependencies (minimum version):
[ . . . ] libjxl 0.7.0 (for JPEG XL import & export)
And I must add that, I already have dt 4.4.2 running on this same machine, which I previously compiled following the exact same method.
The reason why I do it again (somewhere else /opt/darktable) is that I'm trying to build a deb package for this version, which is still not available at the moment, and in that process I'm facing the same issues. So I just tried to build dt back again in order to see if it was the same. And it is.
Even the latest version of Ubuntu, mantic, is using libjxl 0.7.0...
Note that it's optional dependency, so you can just disable it at configuration stage (something like ./build.sh --disable-jxl
) if you don't need JPEG XL support.
You're right @parafin and too bad for jxl ! ;-)
So I could build dt 4.4.2 with the support of many file types, and I could do something for the deb package.
The reason why I do it again is that I'm trying to build a deb package for this version, which is still not available at the moment
If the only motivation is to get a deb for the latest version, then this can be obtained from third-party PPAs such as https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/darktable
libjxl 0.7.0 (for JPEG XL import & export)
JPEGXL_NUMERIC_VERSION
and JPEGXL_COMPUTE_NUMERIC_VERSION
macros were introduced in libjxl 0.7.0. Older versions do not define this macro. But at the build environment configuration stage, we require at least version 0.7.0 for libjxl, so we can safely use these macros in the source code.
Your problem is the wrong libjxl-dev package from the xiota PPA: it doesn't actually contain the release version 0.7.0, but only some pre-release snapshot (the package name even shows from which date) that didn't contain this macro yet (otherwise the build wouldn't have the specified problems). But the bug of this package is that it seems to report itself as version 0.7.0 (otherwise it would have been rejected at the stage of configuring the darktable build environment as unsuitable).
If you want to build darktable yourself with JXL support on Ubuntu 22.04, you might consider removing the xiota PPA and adding the savoury1 PPA (https://launchpad.net/~savoury1/+archive/ubuntu/graphics) which contains the appropriate version of libjxl.
I suppose that you have your solution here @manu-p and as is also not an issue in the code, I so close. Congrats for your try to create a deb on your own.
Describe the bug
Hi,
Trying to build dt 4.4.2 from the source on a Ubuntu 22.04.3 machine, I get an error message related to JPEG XL at 51%.
When I remove the lines from the c program that causes this 1st failure, I then get another error message at 93%, also related to JPEG XL.
Steps to reproduce
More info:
Expected behavior
dt should build without error(s)
Logfile | Screenshot | Screencast
1st error message:
2nd error message:
Commit
No response
Where did you install darktable from?
darktable.org
darktable version
4.4.2
What OS are you using?
Linux
What is the version of your OS?
Ubuntu 22.04.3
Describe your system?
Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz RAM : 14GiB X11 GTK3
Are you using OpenCL GPU in darktable?
No
If yes, what is the GPU card and driver?
NVIDIA GK107GLM [Quadro K1000M] nvidia-driver-390
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response