I’ve been building trunk fine until recently, Ubuntu 22.04
I get the error:
=============================================
CMake Error at src/external/rawspeed/cmake/compiler-versions.cmake:41 (message):
GNU C++ compiler version 11.3.0 is too old and is unsupported. Version 12+
is required.
Call Stack (most recent call first):
src/external/rawspeed/CMakeLists.txt:188 (include)
Make Error at cmake/compiler-versions.cmake:43 (message):
GNU C++ compiler version 11.3.0 is too old and is unsupported. Version 12+
is required.
Call Stack (most recent call first):
CMakeLists.txt:155 (include)
CMake Error at src/external/rawspeed/cmake/compiler-versions.cmake:41 (message):
GNU C++ compiler version 11.3.0 is too old and is unsupported. Version 12+
is required.
Call Stack (most recent call first):
src/external/rawspeed/CMakeLists.txt:188 (include)
I’ve been searching for where else 11.3 is cached, without success
git clone --recurse-submodules https://github.com/darktable-org/darktable.git
git submodule update --init
cd darktable
mkdir build/
cd build/
cmake -DCMAKE_INSTALL_PREFIX=<your-test-dir>/install -DCMAKE_BUILD_TYPE=Release ..
make -j8
make install
cd <your-test-dir>/install/bin
./darktable
This is mentioned here:
export CC=gcc-12
export CXX=g++-12
I built and bootstrapped my own gcc 12.2.0 from gcc source, so I am not using the package system of my distro (Debian). I do not have to set CC or CXX, however I do have to source other variables before build and runtime, because of this.