Linux compiling *stable* (5.10) from source...

Hi all,

I’m a LMDE6 user who wants to upgrade from 5.9 to 5.10. I realise there is a flatpak and appimage, however neither seem to either work well exporting to GIMP or are limited with their configuration. No such issues appear when using 5.9.

So the only other realistic option would appear to be to build from source, and I found this very handy tutorial for building the automatic way, which landed me with the dev version which had it’s own issues. (Linux - RawPedia)

So rather than build the manual way, I thought I’d check first to see whether there is an automatic way for building the stable version, and if so, how?

Hoping someone(s) can help.

Cheers.

This is a good place to start Linux - RawPedia

Which states:

sudo apt install git build-essential cmake curl pkg-config libgtk-3-dev libgtkmm-3.0-dev liblensfun-dev librsvg2-dev liblcms2-dev libfftw3-dev libiptcdata0-dev libtiff5-dev libcanberra-gtk3-dev libexiv2-dev
cd ~
wget https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/build-rawtherapee -O build-rawtherapee
chmod +x build-rawtherapee
./build-rawtherapee

To have it build stable, you may just have to edit the script to git checkout 5.10 after cloning.

1 Like

Thank you Hiram. Giving it a shot now.

Any idea if this version will update to 5.11 when it’s released, or will I need to re-run this script?

Cheers.

It builds dev I believe. You will have to edit the script to git checkout 5.10 after the cloning, similarly for 5.11.

It’s a fail. Any ideas?

cd ~
wget https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/build-rawtherapee -O build-rawtherapee
chmod +x build-rawtherapee
./build-rawtherapee
--2024-07-22 15:55:44--  https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/tools/build-rawtherapee
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4373 (4.3K) [text/plain]
Saving to: ‘build-rawtherapee’

build-rawtherapee   100%[===================>]   4.27K  --.-KB/s    in 0s      

2024-07-22 15:55:45 (21.0 MB/s) - ‘build-rawtherapee’ saved [4373/4373]


Program name: rawtherapee
Build type: release
Build without updating: false

-- WARNING: gcc 12.2.0 is known to miscompile RawTherapee when using --ffp-contract=fast, forcing the option to be off
-- CMAKE_BUILD_TYPE: release
-- searching for library exiv2 in /usr/lib/x86_64-linux-gnu
--   result: /usr/lib/x86_64-linux-gnu/libexiv2.so
-- Checking for module 'libjxl'
--   Package 'libjxl', required by 'virtual:world', not found
-- Checking for module 'libjxl_threads'
--   Package 'libjxl_threads', required by 'virtual:world', not found
-- searching for library lensfun in /usr/lib/x86_64-linux-gnu
--   result: /usr/lib/x86_64-linux-gnu/liblensfun.so
-- Configuring LibRaw
'cp' '-p' '-R' '/home/bryan/programs/code-rawtherapee/rtengine/libraw' '.'
'/bin/bash' '-l' '-c' 'autoreconf -v --install'
/bin/bash: line 1: autoreconf: command not found
CMake Error at rtengine/LibRaw.cmake:51 (message):
  Could not generate LibRaw configuration script
Call Stack (most recent call first):
  rtengine/CMakeLists.txt:268 (include)


-- Configuring incomplete, errors occurred!
See also "/home/bryan/programs/code-rawtherapee/build/CMakeFiles/CMakeOutput.log".
See also "/home/bryan/programs/code-rawtherapee/build/CMakeFiles/CMakeError.log".

Yes, libraw was just added days ago and this script is not yet updated. You will have to apt install autoconf and possibly other things as indicated by the errors depending on your Linux flavor. Note this affects dev and not 5.10.

I’ve built the dev before by accident. I was hoping to build stable. Oh well, I’ll hang with 5.9 or see whether I can make the appimage play nice with GIMP.

Thanks for your help anyway. Much appreciated.

Ok, how about the snap version since you’re based on Debian? Install rawtherapee on Debian using the Snap Store | Snapcraft

Yeah I tried that too and while it said it had installed, It wouldn’t launch. The executable wasn’t in the snap folder (like other apps) either.

The flatpak worked in as far as it couldn’t see the GIMP executable under usr/bin even though it’s there when browsing the folder normally. There were plenty of other executables , just not GIMP.

You need to run a flatpak specific command to execute things outside the flatpak sandbox. flatpak-spawn /usr/bin/gimp or something like that.

Thanks Mica.

I’ve tried that (and lots of variations of inc. flatpak-spawn /usr/bin/gimp-2.10), but GIMP doesn’t launch using Flatpak, either with Native Command ticked or not.

I’ve decided to compile the latest 5.10 dev version to see how that runs. So far no issues resolving GIMP (2.10 & 2.99) exports or other issues faced with using appimage/flatpak/snap releases.

Thanks guys for all your help so far!

Cheers,
Baldrick

1 Like

Good choice, dev right now is considered the 5.11-beta. Thank you for testing.