[Solved] Compiling RawTherapee - aborted cause can't find libgomp.so

Hello, I just installed Xubuntu 26.04. I used the existing build-rawtherapee script in programs/code-rawtherapee/tools, that I used with Xubuntu 24.04.3.

First the compilation stopped with a fatal error at 19%, saying it couldn’t find jxl/decode_cxx.h. After installing libjxl-dev:amd64 this problem was solved.
Next problem: compilation stops at 98%, saying it can’t find libgomp.so.

[ 98%] Building CXX object rtgui/CMakeFiles/rth.dir/windows/saveasdlg.cc.o
make[2]: *** Er is geen regel om doel '/usr/lib/gcc/x86_64-linux-gnu/13/libgomp.so' te maken, nodig voor 'rtgui/rawtherapee'.  Gestopt.

On my machine libgomp.so does exist, but in a different path: /usr/lib/gcc/x86_64-linux-gnu/15/libgomp.so.

Anybody knows how I can inform RT that libgomp.so is in a different place?
Or is it just faster to re-build RT from scratch?

Thanks in advance,
Paul.

Imperative in the OS (i.e. toolchain) upgrade case, not faster.

And by “scratch” we mean removing the build folder should suffice, no need to download the whole codebase all over again…

1 Like

Hmm, didn’t work, lots of warnings and an error. Retrying from scratch now. Thanks anyway.

/usr/bin/x86_64-linux-gnu-ld.bfd: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [rtgui/CMakeFiles/rth.dir/build.make:2819: rtgui/rawtherapee] Fout 1
make[1]: *** [CMakeFiles/Makefile2:350: rtgui/CMakeFiles/rth.dir/all] Fout 2
make: *** [Makefile:136: all] Fout 2
paul@graveyron:~/programs/code-rawtherapee/tools$

Hello, rebuilding RT from scratch solved everything.

1 Like