Problem compiling RT

Hi,
Few days ago, I’ve encountered a problem in compiling RT the automatic way.

$ ./build-rawtherapee

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

-- CMAKE_BUILD_TYPE: release
-- Checking for module 'exiv2>=0.24'
--   No package 'exiv2' found
CMake Error at /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:545 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:733 (_pkg_check_modules_internal)
  CMakeLists.txt:502 (pkg_check_modules)


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

I’ve already updated exiv2 to version 0.27.3 :cry:
Is there a trick ?

Operating system?

The path names look like some kind of Linux what I have almost no idea of :upside_down_face:

Depending on your distro, you need to install either exiv2-devel or libexiv2-dev, or some such.

2 Likes

Thanks a lot!
You saved my day :wink:
I’m on Debian bullseye.
I’ve installed libexiv2-dev 0.27.3-3+deb11u2.
The script now works like a charm!

1 Like

New problem in compiling RT the manual way :cry:

/usr/bin/ld : ../rtengine/librtengine.a(rawimage.cc.o) : dans la fonction « rtengine::RawImage::loadRaw(bool, unsigned int, bool, rtengine::ProgressListener*, double) » :
rawimage.cc:(.text+0x2732) : référence indéfinie vers « LibRaw::open_buffer(void const*, unsigned long) »
/usr/bin/ld : rawimage.cc:(.text+0x2c23) : référence indéfinie vers « LibRaw::open_buffer(void const*, unsigned long) »
/usr/bin/ld : rawimage.cc:(.text+0x4599) : référence indéfinie vers « LibRaw::open_buffer(void const*, unsigned long) »
collect2: error: ld returned 1 exit status
make[2]: *** [rtgui/CMakeFiles/rth.dir/build.make:2756 : rtgui/rawtherapee] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:191 : rtgui/CMakeFiles/rth.dir/all] Erreur 2
make: *** [Makefile:136 : all] Erreur 2

libraw-bin and libraw-dev already installed (version 0.20.2-2.1) on Debian Bookworm

The documentation says
{CC432FAF-05DA-450D-A6A5-20D7BB42F0A6}

The documentation does indeed say:

• RawTherapee builds with a custom version of LibRaw by default. To use the system LibRaw, use -DWITH_SYSTEM_LIBRAW=“ON”. Requires LibRaw >= 0.21.

You could do that, BUT you should let it build the custom libraw.

Thank you for your replies!